pod2latex - filters perl pod documents to LaTeX documents
pod2latex perl_doc.pod
Filters perl pod documents, which have a .pod extension, to LaTeX documents, which have a .tex extension. For example, the command pod2latex perl_doc.pod produces the document perl_doc.tex.
Below is a description of how pod2latex(1) makes translations from pod to LaTeX.
Indented paragraphs are translated into \begin{verbatim}
...\end{verbatim}
.
The command =head1 heading
is translated into
\section{heading}
.
=head2 heading
is translated into
\subsection*{heading}
.The command =over N
is dependent on the following
=item
. If the following =item
starts with
*, =over N
is translated into
\begin{itemize}
. If the following =item
starts with 1., =over N
is translated into
\begin{enumerate}
. If there is anything else,
=over N
is translated into
\begin{description}
. Also, the indentation level N is
ignored.
The =item * heading
command is translated into
\item heading
. The =item 1. heading
command is translated into \item heading
. The
=item heading
command is translated into
\item[heading]
.
If it starts with \begin{itemize}
, the
=back
command is translated into
\end{itemize}
. If it starts with
\begin{enumerate}
, the =back
command is
translated into \end{enumerate}
. If it starts with
\begin{description}
, the =back
command is
translated into \end{description}
.
pod | Translation |
---|---|
I<text>
|
{\em text\/}
|
BI<text>
|
{\bf text}
|
SI<text>
|
text1
(Where |
CI<text>
|
{\tt text2}
(Where |
EI<text> (HTML escape)
|
TeX escaped string. |
LI<text>
|
Referencing string.
(As done by pod2man.) |
F<file>
|
{\em file\/}
|
Z<> | A null string. |
pod | Translation |
---|---|
=head1 heading
|
\section{heading}\index{heading}
|
=head2 heading
|
\subsection*{heading}\index{heading}
|
=item heading
|
\item{heading}\index{heading}
|
=item heading
|
\item{heading}\index{heading}
|
If HTML escapes E<text> other than E<amp>, E<lt>, E<gt>, E<quot> are used in C<>, translation will produce wrong character strings. Translation of HTML escapes of various European accents might be wrong.