Usage

To produce a PDF, specify an output file with a .pdf extension (Creating PDF)

Topic

  1. Margins
  2. Newpage
  3. Font
    1. Font Size
  4. Table of Contents

Margins

By default the margins are pretty large. To optionally change the margin. -V geometry:margin=1in

pandoc input.md -o output.pdf -V geometry:margin=1in

Newpage

Newpage between each markdown files. \break

sed -se '$a\\\break'  *.md | pandoc -o output.pdf -V geometry: margin=1in  --pdf-engine=xelatex

Font

Change font to match missing Unicode character. -V mainfont=

pandoc -o output.pdf -V geometry: margin=1in --pdf-engine=xelatex -V mainfont='DejaVuSerif' *.md

Size

Change font size. --variable fontsize=

```bash
pandoc nov_26.md -o output.pdf -V geometry:margin=1in --variable fontsize=10pt --variable fontfamily=utopia --variable linkcolor=blue --pdf-engine=xelatex -f markdown-implicit_figures -s

Table of contents

Include table of contents from heading. --toc

pandoc nov_26.md -o output.pdf --toc -V geometry:margin=1in pdf-engine=xelatex

Example

Run sample format to generate a pdf file (ex.sample.pdf) from input file (ex: input_sample.md)

pandoc -o sample.pdf -V geometry:margin=1in \
--toc --pdf-engine=xelatex \
--variable fontsize=10pt --variable fontfamily=utopia --variable linkcolor=blue \
-f markdown-implicit_figures -s -V mainfont='' input_sample.md