Last active
September 3, 2018 19:17
-
-
Save dougcooper/785baa89ee7f8a81a0bb954b49f5ebf2 to your computer and use it in GitHub Desktop.
Pandoc Tips and Tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newpage | |
\centering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
header-includes: | |
- \newcommand{\bfigure}{\begin{figure}} | |
- \newcommand{\efigure}{\end{figure}} | |
- \newcommand\mycaption[1]{\caption{#1}} | |
--- | |
\bfigure | |
\mycaption{Architecture} | |
\efigure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
include-before: | |
- '`\newpage{}`{=latex}' | |
output: | |
custom_document: | |
path: some_doc_name.pdf | |
pandoc_args: [ | |
"--template","path_to_template/template.latex", | |
"--dpi","300", | |
"--toc" | |
] | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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