@@ -2,48 +2,33 @@
22.SH NAME
33pandoc \- general markup converter
44.SH SYNOPSIS
5−.B pandoc
6−[
7−.I options
8−] [
9−.I input-files
10−]
5+\fBpandoc\fR [ \fIoptions\fR ] [ \fIinput-files\fR ]
116
127.SH DESCRIPTION
13−.I Pandoc
14−converts files from one markup format to another. It can read markdown
15−and (subsets of) reStructuredText, HTML, and LaTeX, and it can write
16−markdown, reStructuredText, HTML, LaTeX, RTF, and S5 HTML slide shows.
8+\fIPandoc\fR converts files from one markup format to another. It can
9+read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and
10+it can write markdown, reStructuredText, HTML, LaTeX, RTF, and S5 HTML
11+slide shows.
1712.PP
18−If no
19−.I input-files
20−are specified, input is read from STDIN. Otherwise, the
21−.I input-files
22−are concatenated (with a blank line between each) and used
23−as input. Output goes to STDOUT. If you want output to a file,
13+If no \fIinput-files\fR are specified, input is read from STDIN. Otherwise,
14+the \fIinput-files\fR are concatenated (with a blank line between each)
15+and used as input. Output goes to STDOUT. If you want output to a file,
2416use shell redirection:
2517.IP
2618.B pandoc input.txt > output.html
2719.PP
28−The default behavior of
29−.I Pandoc
30−is to convert the
31−input from markdown-formatted plain text to HTML. Different
32−input and output formats can be specified using command-line
33−options. For example,
20+The default behavior of \fIPandoc\fR is to convert the input from
21+markdown-formatted plain text to HTML. Different input and output
22+formats can be specified using command-line options. For example,
3423.IP
3524.B pandoc -f latex -t markdown chap1.tex > chap1.txt
3625.PP
37−converts
38−.I chap1.tex
39−from LaTeX to markdown-formatted plain text.
26+converts \fIchap1.tex\fR from LaTeX to markdown-formatted plain text.
4027See below for a detailed list of command-line options.
4128.PP
42−.I Pandoc
43−uses the UTF-8 character encoding for both input and output.
44−If your local character encoding is not UTF-8, you should pipe
45−input and output through
46−.BR iconv :
29+\fIPandoc\fR uses the UTF-8 character encoding for both input and output.
30+If your local character encoding is not UTF-8, you should pipe input
31+and output through \fBiconv\fR:
4732.IP
4833.B iconv -t utf-8 input.txt | pandoc | iconv -f utf-8
4934
@@ -123,41 +108,27 @@ Link to a CSS style sheet.
123108is the pathname of the style sheet.
124109.TP
125110.B \-H FILENAME, \-\-include-in-header=FILENAME
126−Include contents of
127−.I FILENAME
128−at the end of the header. Implies
129−.BR \-s .
111+Include contents of \fIFILENAME\fR at the end of the header. Implies
112+\fB\-s\fR.
130113.TP
131114.B \-B FILENAME, \-\-include-before-body=FILENAME
132−Include contents of
133−.I FILENAME
134−at the beginning of the document body.
115+Include contents of \fIFILENAME\fR at the beginning of the document body.
135116.TP
136117.B \-A FILENAME, \-\-include-after-body=FILENAME
137−Include contents of
138−.I FILENAME
139−at the end of the document body.
118+Include contents of \fIFILENAME\fR at the end of the document body.
140119.TP
141120.B \-\-custom-header=FILENAME
142−Use contents of
143−.I FILENAME
121+Use contents of \fIFILENAME\fR
144122as the document header (overriding the default header, which can be
145−printed by using the
146−.B \-D
147−option). Implies
148−.BR \-s .
123+printed by using the \fB\-D\fR option). Implies
124+\fB-s\fR.
149125.TP
150126.B \-D FORMAT, \-\-print-default-header=FORMAT
151−Print the default header for
152−.I FORMAT
153−(
154−.I html, s5, latex, markdown, rst, rtf
155−).
127+Print the default header for \fIFORMAT\fR
128+(\fIhtml, s5, latex, markdown, rst, rtf\fR).
156129.TP
157130.B \-T STRING, \-\-title-prefix=STRING
158−Specify
159−.I STRING
160−as a prefix to the HTML window title.
131+Specify \fISTRING\fR as a prefix to the HTML window title.
161132
162133.SH "SEE ALSO"
163134\fBmarkdown2html\fR(1),