Making Cheatsheets
Create a simple 2-column, landscape, pdf cheatsheet like so:
Make sure you have installed:
- A TeX distribution installed, such as texlive
- Pandoc
Write your cheatsheet out in pandoc markdown.
Don’t let your code blocks get too wide, since output will be 2-column.
Use column-breaks (
\newpage
) as needed.For a more readable/printable version of Computer Modern (font), install the texlive-fonts-extra package to get the mlmodern variant.
Process the doc:
pandoc -s \ -o cheatsheet.pdf \ -V fontfamily:mlmodern \ -V geometry:"margin=0.5in,twocolumn,landscape" \ cheatsheet.md
Note, if you want to include a table in twocolumn mode, it won’t work — you’ll need to instead write in a raw table.