Igor M. Coelho
April 8, 2020
Text formatting requires a few things, such as lists (prefix -
, *
or +
):
**bold**
, LaTeX \textbf{bold}
)*italics*
, LaTeX \textit{italics}
)
***
symbol, LaTeX \textbf{\textit{...}}
)Enumeration lists can use 1.
or #.
prefix:
Use math mode as $\sum_{i=0}^{n}\sqrt{i}$
for ∑i=0ni.
For color use “--filter pandoc-latex-color
”: then use <span latex-color="green" style="color:green;">abc</span>
.
Headers can become different things (e.g,--slide-level 2
on Pandoc):
Slide | Header 1 (# ) |
Header 2 (## ) |
Header 3 (### ) |
---|---|---|---|
Level 1 | Frame | Box | |
Level 2 | Section | Frame | Box |
Level 3 | ^ | Subsection | Frame |
You just need to use standard markdown table notation:
| Slide | Header 1 (`#`) | Header 2 (`##`) | Header 3 (`###`) |
| :--- | :---- | :---: | ---: |
| Level 1 | Frame | Box ||
| Level 2 | Section | Frame | Box |
| Level 3 | ^ | Subsection | Frame |
We saw basic formatting. To insert figures, use Markdown notation: ![AltText](./filename.jpg "Title")
To resize it and visualize on Atom, Beamer and Reveal, just use Pandoc bracketed_spans
notation: {width=80%}
.
Example: ![An universe picture](./universe.jpg "An example image"){width=40%}
Let’s divide in three parts (35%, 30%, 35%):
Just an equation: i=0∑ni
To create multiple columns in a compatible way, we can use:
This code should allow organizing text into column.
Single centered column
::::::::::::: {.columns}
::::: {.column width=100%}
::: {.centered}
\centering
*Single centered column*
:::
:::::
:::::::::::::
This doesn’t work on Typora or Atom, but works on LaTeX and Reveal.
For centering, just ::: {.centered}
and \centering
would be enough.
Double column with image on side (20% and 80%):
Note that Pandoc 2.9 provides a special syntax for fenced divs, like: ::::::: {.columns}
and ::: {.column width="50%"}
. This is not recommended because Atom Preview will not understand it. For the same reason, use both max-width=50%;
and width="50%"
.
This slide will only ask you to press s
on Reveal. This will put you on Speaker Mode
and you’ll see the notes.
This is more complicated, but possible. It requires an specialized pdf
player for multiple monitors, like pdfpc
or pympress
.
%\documentclass[notes]{beamer} % frame + notes
\documentclass[notes=only]{beamer} % only notes
%\documentclass{beamer} % only frames
Never add frame breaks ------
before Level 1 headers (#
). Otherwise it will create a blank slide ;)
On Atom, install one of these plugins:
https://atom.io/packages/markdown-preview-plus
https://atom.io/packages/markdown-preview-enhanced
Comparison on syntax for Markdown-It and Pandoc: see Atom community discussion.
See more reveal.js themes on https://github.com/hakimel/reveal.js
See you next time!