SnabbCo/snabbswitch — pull request #54 by pkazmier (2013-04-22 13:27:10+00:00)
Title: Tweaked the PDF output a bit ...

Give this a try Luke. I changed the latex rendering engine that pandoc uses to lualatex which allows you to change the fonts. In addition, to fix some of the other stuff, I use three other latex packages: enumitem, setspace, and etoolbox. I think the full texlive distribution included these as I didn't have to do anything in terms of installing anything. I'm also trying to get colored code listings to work as the docs suggest pandoc supports them, but it's still generating the blocks using the verbatim environment instead of the listing environment. I'll keep playing around though.

Pete

---

* Changed the fonts (Inconsolata for mono, Droid sans for main)
* Scaled down the code listing font and line spacing to be more proportionate with main text
* Ditched extra spacing in bulleted lists
* Tweaked the margins a bit
* Fixed the merging of code with the prior comment if there was no newline
separating (see the register object section of Luke's original PDF)

Here is a sample:
http://www.kazmier.com/~kaz/snabbswitch.pdf

I created a separate Latex template for use with pandoc that I imagine a Latex
expert could make even better. I also parameterized the scaling of the
monospace font as well as the line spacing used within code listings.