Skip to content

Instantly share code, notes, and snippets.

@dougcooper
Last active September 3, 2018 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougcooper/785baa89ee7f8a81a0bb954b49f5ebf2 to your computer and use it in GitHub Desktop.
Save dougcooper/785baa89ee7f8a81a0bb954b49f5ebf2 to your computer and use it in GitHub Desktop.
Pandoc Tips and Tricks
\newpage
\centering
---
header-includes:
- \newcommand{\bfigure}{\begin{figure}}
- \newcommand{\efigure}{\end{figure}}
- \newcommand\mycaption[1]{\caption{#1}}
---
\bfigure
\mycaption{Architecture}
\efigure
---
include-before:
- '`\newpage{}`{=latex}'
output:
custom_document:
path: some_doc_name.pdf
pandoc_args: [
"--template","path_to_template/template.latex",
"--dpi","300",
"--toc"
]
---
---
title: |
one line \
two lines \
three lines
author: some author
date: \today
geometry: margin=1in
output: pdf_document
abstract: 'some text'
toc: true
toc-depth: 4
dpi: 300
header-includes:
- \usepackage{draftwatermark}
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment