1MARKDOWN2PDF(1)             General Commands Manual            MARKDOWN2PDF(1)
2
3
4

NAME

6       markdown2pdf - converts markdown-formatted text to PDF, using pdflatex
7

SYNOPSIS

9       markdown2pdf [options] [input-file]...
10

DESCRIPTION

12       markdown2pdf  converts  input-file  (or  text from standard input) from
13       markdown-formatted plain text to PDF, using pandoc and pdflatex.  If no
14       output  filename  is  specified  (using the -o option), the name of the
15       output file is derived from the input file; thus, for example,  if  the
16       input  file  is  hello.txt,  the output file will be hello.pdf.  If the
17       input is read from STDIN and no output filename is specified, the  out‐
18       put  file  will be named stdin.pdf.  If multiple input files are speci‐
19       fied, they will be concatenated before conversion, and the name of  the
20       output file will be derived from the first input file.
21
22       Input  is assumed to be in the UTF-8 character encoding.  If your local
23       character encoding is not UTF-8, you should pipe input through iconv:
24
25              iconv -t utf-8 input.txt | markdown2pdf
26
27       markdown2pdf assumes that the unicode, array, fancyvrb,  graphicx,  and
28       ulem  packages  are  in latex's search path.  If these packages are not
29       included  in  your   latex   setup,   they   can   be   obtained   from
30       http://ctan.org.
31

OPTIONS

33       -o FILE, --output=FILE
34              Write output to FILE.
35
36       --strict
37              Use strict markdown syntax, with no extensions or variants.
38
39       --xetex
40              Use xelatex instead of pdflatex to create the PDF.
41
42       -N, --number-sections
43              Number  section  headings  in  LaTeX output.  (Default is not to
44              number them.)
45
46       --listings
47              Use listings package for LaTeX code blocks
48
49       --template=FILE
50              Use FILE as  a  custom  template  for  the  generated  document.
51              Implies -s.  See the section TEMPLATES in pandoc(1) for informa‐
52              tion about template syntax.  Use pandoc -D latex  to  print  the
53              default LaTeX template.
54
55       -V KEY=VAL, --variable=KEY:VAL
56              Set  the  template  variable KEY to the value VAL when rendering
57              the document in standalone mode.  Use this to set the font  size
58              when using the default LaTeX template: -V fontsize=12pt.
59
60       -H FILE, --include-in-header=FILE
61              Include  (LaTeX)  contents  of  FILE  at  the end of the header.
62              Implies -s.
63
64       -B FILE, --include-before-body=FILE
65              Include (LaTeX) contents of FILE at the beginning of  the  docu‐
66              ment body.
67
68       -A FILE, --include-after-body=FILE
69              Include  (LaTeX)  contents  of  FILE  at the end of the document
70              body.
71
72       --bibliography=FILE
73              Specify bibliography database to be used in resolving citations.
74              The database type will be determined from the extension of FILE,
75              which may be .xml (MODS format), .bib (BibTeX format), or  .json
76              (citeproc JSON).
77
78       --csl=FILE
79              Specify  CSL  style  to  be used in formatting citations and the
80              bibliography.  If FILE is not found, pandoc will look for it in
81
82                     $HOME/.csl
83
84              in unix and
85
86                     C:\Documents And Settings\USERNAME\Application Data\csl
87
88              in Windows.  If the --csl option is not specified,  pandoc  will
89              use  a default style: either default.csl in the user data direc‐
90              tory (see --data-dir), or, if that is not present,  the  Chicago
91              author-date style.
92
93       --data-dir=DIRECTORY
94              Specify the user data directory to search for pandoc data files.
95              If this option is not specified, the default user data directory
96              will be used:
97
98                     $HOME/.pandoc
99
100              in unix and
101
102                     C:\Documents And Settings\USERNAME\Application Data\pandoc
103
104              in  Windows.  A reference.odt, epub.css, templates directory, or
105              s5 directory placed in this  directory  will  override  pandoc's
106              normal defaults.
107

SEE ALSO

109       pandoc(1), pdflatex(1)
110

AUTHORS

112       John MacFarlane, Paulo Tanimoto, and Recai Oktas.
113
114
115
116Pandoc User Manuals            January 29, 2011                MARKDOWN2PDF(1)
Impressum