@@ -2,7 +2,8 @@
3pandoc \- general markup converter
3pandoc \- general markup converter
4.SH SYNOPSIS
4.SH SYNOPSIS
8.I input-files
9.I input-files
@@ -19,8 +20,8 @@ If no
19are specified, input is read from STDIN. Otherwise, the
20are specified, input is read from STDIN. Otherwise, the
20.I input-files
21.I input-files
21are concatenated (with a blank line between each) and used
22are concatenated (with a blank line between each) and used
22−as input. Output goes to STDOUT. Use redirection to produce
23+as input. Output goes to STDOUT. If you want output to a file,
23−a file:
24+use shell redirection:
25.B pandoc input.txt > output.html
26.B pandoc input.txt > output.html
@@ -29,14 +30,20 @@ The default behavior of
29is to convert the
30is to convert the
30input from markdown-formatted plain text to HTML. Different
31input from markdown-formatted plain text to HTML. Different
31input and output formats can be specified using command-line
32input and output formats can be specified using command-line
32−options.
33+options. For example,
35+.B pandoc -f latex -t markdown chap1.tex > chap1.txt
39+from LaTeX to markdown-formatted plain text.
40+See below for a detailed list of command-line options.
35uses the UTF-8 character encoding for both input and output.
43uses the UTF-8 character encoding for both input and output.
36If your local character encoding is not UTF-8, you should pipe
44If your local character encoding is not UTF-8, you should pipe
37input and output through
45input and output through
38−.B iconv
46+.BR iconv :
41.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
48.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
@@ -119,7 +126,7 @@ is the pathname of the style sheet.
119Include contents of
126Include contents of
120.I FILENAME
127.I FILENAME
121at the end of the header. Implies
128at the end of the header. Implies
124.B \-B FILENAME, \-\-include-before-body=FILENAME
131.B \-B FILENAME, \-\-include-before-body=FILENAME
125Include contents of
132Include contents of
@@ -138,7 +145,7 @@ as the document header (overriding the default header, which can be
138printed by using the
145printed by using the
140option). Implies
147option). Implies
143.B \-D FORMAT, \-\-print-default-header=FORMAT
150.B \-D FORMAT, \-\-print-default-header=FORMAT
144Print the default header for
151Print the default header for
@@ -156,13 +163,11 @@ as a prefix to the HTML window title.
156John MacFarlane
163John MacFarlane
158.SH "SEE ALSO"
165.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)
162−.B README
169+.I README
163file distributed with Pandoc contains full documentation.
170file distributed with Pandoc contains full documentation.
165The Pandoc source code and all documentation may be downloaded from
172The Pandoc source code and all documentation may be downloaded from
166−.B http://sophos.berkeley.edu/macfarlane/pandoc/
173+<http://sophos.berkeley.edu/macfarlane/pandoc/>.