@@ -2,7 +2,8 @@
22.SH NAME
33pandoc \- general markup converter
44.SH SYNOPSIS
5−.B pandoc [
5+.B pandoc
6+[
67.I options
78] [
89.I input-files
@@ -19,8 +20,8 @@ If no
1920are specified, input is read from STDIN. Otherwise, the
2021.I input-files
2122are concatenated (with a blank line between each) and used
22−as input. Output goes to STDOUT. Use redirection to produce
23−a file:
23+as input. Output goes to STDOUT. If you want output to a file,
24+use shell redirection:
2425.IP
2526.B pandoc input.txt > output.html
2627.PP
@@ -29,14 +30,20 @@ The default behavior of
2930is to convert the
3031input from markdown-formatted plain text to HTML. Different
3132input and output formats can be specified using command-line
32−options.
33+options. For example,
34+.IP
35+.B pandoc -f latex -t markdown chap1.tex > chap1.txt
36+.PP
37+converts
38+.I chap1.tex
39+from LaTeX to markdown-formatted plain text.
40+See below for a detailed list of command-line options.
3341.PP
3442.I Pandoc
3543uses the UTF-8 character encoding for both input and output.
3644If your local character encoding is not UTF-8, you should pipe
3745input and output through
38−.B iconv
39−:
46+.BR iconv :
4047.IP
4148.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
4249
@@ -119,7 +126,7 @@ is the pathname of the style sheet.
119126Include contents of
120127.I FILENAME
121128at the end of the header. Implies
122−.B \-s.
129+.BR \-s .
123130.TP
124131.B \-B FILENAME, \-\-include-before-body=FILENAME
125132Include contents of
@@ -138,7 +145,7 @@ as the document header (overriding the default header, which can be
138145printed by using the
139146.B \-D
140147option). Implies
141−.B \-s.
148+.BR \-s .
142149.TP
143150.B \-D FORMAT, \-\-print-default-header=FORMAT
144151Print the default header for
@@ -156,13 +163,11 @@ as a prefix to the HTML window title.
156163John MacFarlane
157164
158165.SH "SEE ALSO"
159−markdown2html (1), html2markdown (1), markdown2latex (1), latex2markdown (1), markdown2pdf (1), iconv (1)
166+.BR markdown2html (1), html2markdown (1), markdown2latex (1), latex2markdown (1), markdown2pdf (1), iconv (1)
160167
161168The
162−.B README
169+.I README
163170file distributed with Pandoc contains full documentation.
164171
165172The Pandoc source code and all documentation may be downloaded from
166−.B http://sophos.berkeley.edu/macfarlane/pandoc/
167−.
168−
173+<http://sophos.berkeley.edu/macfarlane/pandoc/>.