Getting started converting documents with Pandoc

I’m looking into producing my Scala/FP book as a PDF, and as part of that I have been looking into Pandoc. With the exception of converting HTML tables into other formats such as Markdown or LaTeX, Pandoc has been working well so far.

Here are a couple of Pandoc commands to show you how easy this is:

LaTeX example - enumerate and itemize line spacing

LaTeX line spacing FAQ: How can I control the line spacing in itemize and enumerate tags?

What I did was to create my own LaTeX command, and then use that command instead of the traditional enumerate tag. (This works just as well for the itemize tag.)

The LaTeX example below shows how to create your own command named packed_enum. After you define this command, just use it instead of enumerate or itemize, and your line spacing will essentially be reduced to single line spacing.

LaTeX PDF document size/length example

In the example below I'm showing how you can change a bunch of LaTeX document length parameters. The values don't really make any sense -- I've just thrown some numbers in there. I just want to remember how to do this for the next time I need to create a LaTeX PDF document.

(For what I'm trying to achieve today my goal was to get rid of all the margins on the left side of the page. Then I decided to throw in a few other values.)

I found some of these LaTeX examples on pp. 84-89 of The LaTeX Companion.

LaTeX example document - description lists and tables

Here's a sample LaTeX document where I'm experimenting with newenvironment, a definition list, and tables (the tabular environment. I don't have the output with me at the moment, but I think all of these worked correctly when using pdflatex (LaTeX PDF) and latex2html (LaTeX HTML).

LaTeX - How to create vertical fonts with LaTeX

This one may be my favorite LaTeX example yet. It shows how to create a table/grid, where the labels of the columns are rotated at a ninety degree angle, so they run straight up and down. This way, I can have very narrow columns, which is extremely helpful when trying to build a "house of quality" table for my current Six Sigma effort.

Without any further ado, here is the LaTeX code:

LaTeX examples - my super test file

This is a collection of LaTeX example tags. I'm in the process of creating one super-LaTeX example file to show how to do many things with LaTeX that work with both pdflatex and latex2html, and this is part of that super-file.

In the example content below I'm showing: