Skip to content

Instantly share code, notes, and snippets.

@domvwt
Last active January 5, 2022 18:56
Show Gist options
  • Save domvwt/62b21a0f32417c0f6cf7f7011d459095 to your computer and use it in GitHub Desktop.
Save domvwt/62b21a0f32417c0f6cf7f7011d459095 to your computer and use it in GitHub Desktop.
Markdown to Latex Starter File
---
# Using https://github.com/Wandmalfarbe/pandoc-latex-template
# wget https://github.com/Wandmalfarbe/pandoc-latex-template/releases/download/v2.0.0/Eisvogel-2.0.0.tar.gz
# mkdir Eisvogel-2.0.0 && tar -xf Eisvogel-2.0.0.tar.gz -C Eisvogel-2.0.0
# pandoc report.md -t latex -o report.pdf --template Eisvogel-2.0.0/eisvogel.latex
title: Document Title
author: Author Name
date: 2022-01-01
titlepage: true
toc: true
toc-own-page: true
toc-depth: 3
lot: false # List of tables
lof: false # List of figures
listings: true
geometry:
- margin=2cm
fontfamily: noto
fontfamilyoptions: sfdefault
...
# Introduction
Markdown **text** is rendered *nicely* to latex.
> Here is a quote, for example.
## Nested Lists
Pay attention to indentation size when using a nested list:
1. Numbered
2. Lists
1. With
3. Nesting
* Same
* Works
* For
* Bulletpoints
## Code Blocks
Code blocks are syntax highlighted:
```python
for i in range(10):
print(i)
```
## Images
Images can be referenced and resized like so:
![The Eisvogel.](Eisvogel-2.0.0/icon.png){ width=100px }
## Mathematical Notation
$$
P(x) = \frac{1}
{{\sigma \sqrt {2\pi } }}e^{{{ - \left( {x - \mu } \right)^2 }
\mathord{\left/ {\vphantom {{ - \left( {x - \mu } \right)^2 } {2\sigma ^2 }}} \right. \kern-\nulldelimiterspace} {2\sigma ^2 }}}
$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment