Some Misc Notes

Making Cheatsheets

Create a simple 2-column, landscape, pdf cheatsheet like so:

  1. Make sure you have installed:

    • A TeX distribution installed, such as texlive
    • Pandoc
  2. Write your cheatsheet out in pandoc markdown.

  3. Don’t let your code blocks get too wide, since output will be 2-column.

  4. Use column-breaks (\newpage) as needed.

  5. For a more readable/printable version of Computer Modern (font), install the texlive-fonts-extra package to get the mlmodern variant.

  6. 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.