@@ -2,48 +2,33 @@
3pandoc \- general markup converter
3pandoc \- general markup converter
4.SH SYNOPSIS
4.SH SYNOPSIS
5−.B pandoc
5+\fBpandoc\fR [ \fIoptions\fR ] [ \fIinput-files\fR ]
12.SH DESCRIPTION
7.SH DESCRIPTION
14−converts files from one markup format to another. It can read markdown
8+\fIPandoc\fR converts files from one markup format to another. It can
15−and (subsets of) reStructuredText, HTML, and LaTeX, and it can write
9+read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and
16−markdown, reStructuredText, HTML, LaTeX, RTF, and S5 HTML slide shows.
10+it can write markdown, reStructuredText, HTML, LaTeX, RTF, and S5 HTML
20−are specified, input is read from STDIN. Otherwise, the
13+If no \fIinput-files\fR are specified, input is read from STDIN. Otherwise,
22−are concatenated (with a blank line between each) and used
14+the \fIinput-files\fR are concatenated (with a blank line between each)
23−as input. Output goes to STDOUT. If you want output to a file,
15+and used as input. Output goes to STDOUT. If you want output to a file,
24use shell redirection:
16use shell redirection:
26.B pandoc input.txt > output.html
18.B pandoc input.txt > output.html
28−The default behavior of
20+The default behavior of \fIPandoc\fR is to convert the input from
31−input from markdown-formatted plain text to HTML. Different
21+markdown-formatted plain text to HTML. Different input and output
32−input and output formats can be specified using command-line
22+formats can be specified using command-line options. For example,
35.B pandoc -f latex -t markdown chap1.tex > chap1.txt
24.B pandoc -f latex -t markdown chap1.tex > chap1.txt
39−from LaTeX to markdown-formatted plain text.
26+converts \fIchap1.tex\fR from LaTeX to markdown-formatted plain text.
40See below for a detailed list of command-line options.
27See below for a detailed list of command-line options.
43−uses the UTF-8 character encoding for both input and output.
29+\fIPandoc\fR uses the UTF-8 character encoding for both input and output.
44−If your local character encoding is not UTF-8, you should pipe
30+If your local character encoding is not UTF-8, you should pipe input
45−input and output through
31+and output through \fBiconv\fR:
48.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
33.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
@@ -123,41 +108,27 @@ Link to a CSS style sheet.
123is the pathname of the style sheet.
108is the pathname of the style sheet.
125.B \-H FILENAME, \-\-include-in-header=FILENAME
110.B \-H FILENAME, \-\-include-in-header=FILENAME
128−at the end of the header. Implies
111+Include contents of \fIFILENAME\fR at the end of the header. Implies
129−.BR \-s .
112+\fB\-s\fR.
131.B \-B FILENAME, \-\-include-before-body=FILENAME
114.B \-B FILENAME, \-\-include-before-body=FILENAME
134−at the beginning of the document body.
115+Include contents of \fIFILENAME\fR at the beginning of the document body.
136.B \-A FILENAME, \-\-include-after-body=FILENAME
117.B \-A FILENAME, \-\-include-after-body=FILENAME
139−at the end of the document body.
118+Include contents of \fIFILENAME\fR at the end of the document body.
141.B \-\-custom-header=FILENAME
120.B \-\-custom-header=FILENAME
142−Use contents of
121+Use contents of \fIFILENAME\fR
144as the document header (overriding the default header, which can be
122as the document header (overriding the default header, which can be
145−printed by using the
123+printed by using the \fB\-D\fR option). Implies
150.B \-D FORMAT, \-\-print-default-header=FORMAT
126.B \-D FORMAT, \-\-print-default-header=FORMAT
151−Print the default header for
127+Print the default header for \fIFORMAT\fR
154−.I html, s5, latex, markdown, rst, rtf
128+(\fIhtml, s5, latex, markdown, rst, rtf\fR).
157.B \-T STRING, \-\-title-prefix=STRING
130.B \-T STRING, \-\-title-prefix=STRING
160−as a prefix to the HTML window title.
131+Specify \fISTRING\fR as a prefix to the HTML window title.
162.SH "SEE ALSO"
133.SH "SEE ALSO"
163\fBmarkdown2html\fR(1),
134\fBmarkdown2html\fR(1),