blob: 7311a2a1e056cccef6b5c54a9f95a0ec3a13b58e [file]
@subsection pod2texi
@anchor{pod2texi}
@subsubheading pod2texi NAME
@anchor{pod2texi NAME}
pod2texi - convert Pod to Texinfo
@subsubheading pod2texi SYNOPSIS
@anchor{pod2texi SYNOPSIS}
@verbatim
pod2texi [OPTION]... POD...
@end verbatim
@subsubheading pod2texi DESCRIPTION
@anchor{pod2texi DESCRIPTION}
Translate Pod file(s) to Texinfo. There are two basic modes of
operation. First, by default, each Pod is translated to a standalone
Texinfo document.
Second, if @code{--base-level} is set higher than 0, each Pod is translated
to a file suitable for @code{@@include}, and one more file with a main menu
and all the @code{@@include} is generated.
@subsubheading pod2texi OPTIONS
@anchor{pod2texi OPTIONS}
@table @asis
@item @strong{@asis{}-@asis{}-@asis{}appendix-sections}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}appendix-sections}}
Use appendix sectioning commands (@code{@@appendix}, ...) instead of the
default numbered sectioning Texinfo @@-commands (@code{@@chapter},
@code{@@section}, ...).
@item @strong{@asis{}-@asis{}-@asis{}base-level}=@emph{NUM|NAME}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}base-level}=@emph{NUM|NAME}}
The default is 0, meaning that @code{head1} commands are output as chapters and the
output is arranged as a standalone Texinfo document.
If the level is not 0, the Pod file is rendered as a fragment of a
Texinfo document suitable for @code{@@include}. In that case, the
option argument sets the level of the @code{head1} commands. It may be an
integer or a Texinfo sectioning command (without the @code{@@}): 1 corresponds to
the @code{@@chapter}/@code{@@unnumbered} level, 2 to the @code{@@section} level, and so on.
Each included Pod file has an additional sectioning command covering the
entire file, one level above the @code{--base-level} value. Therefore, to make
each Pod file a chapter in a large document, you should use @code{section} as the
base level.
@item @strong{@asis{}-@asis{}-@asis{}debug}=@emph{NUM}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}debug}=@emph{NUM}}
Set debugging level to @emph{NUM}.
@item @strong{@asis{}-@asis{}-@asis{}generate-setfilename}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}generate-setfilename}}
Generate a @code{@@setfilename} line for standalone Texinfo documents. Can be
negated with @code{--no-generate-setfilename}. Ignored unless @code{--base-level} is
0.
@item @strong{@asis{}-@asis{}-@asis{}headings-as-sections}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}headings-as-sections}}
Use headings commands (@code{@@heading}, ...) instead of the
default numbered sectioning Texinfo @@-commands (@code{@@chapter},
@code{@@section}, ...). The sectioning command covering the entire
file output for each Pod file if @code{--base-level} is not 0 is a
numbered command.
@item @strong{@asis{}-@asis{}-@asis{}help}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}help}}
Display help and exit.
@item @strong{@asis{}-@asis{}-@asis{}menus}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}menus}}
Output node menus. If there is a main Texinfo document, its Top node menu
is always output, since a master menu is generated. Other nodes
menus are not output in the default case.
@item @strong{@asis{}-@asis{}-@asis{}outdir}=@emph{NAME}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}outdir}=@emph{NAME}}
If there is a main Texinfo document with include files (each corresponding to
an input Pod file), then the generated Texinfo files are put in
directory @emph{NAME}. Default is based on @code{--subdir}.
@item @strong{@asis{}-@asis{}-@asis{}output}=@emph{NAME}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}output}=@emph{NAME}}
Name for the first Texinfo document output, or for the main Texinfo
document if there is a main Texinfo document.
Default is to write to standard output.
@item @strong{@asis{}-@asis{}-@asis{}no-section-nodes}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}no-section-nodes}}
Use anchors for sections instead of nodes.
@item @strong{@asis{}-@asis{}-@asis{}no-fill-section-gaps}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}no-fill-section-gaps}}
Do not fill sectioning gaps with empty @code{@@unnumbered}.
Ordinarily, it's good to keep the sectioning hierarchy intact.
@item @strong{@asis{}-@asis{}-@asis{}preamble}=@emph{STR}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}preamble}=@emph{STR}}
Insert @emph{STR} as top boilerplate before menu and includes. If @emph{STR} is
set to @code{-}, read the top boilerplate from the standard input. The default top
boilerplate is a minimal beginning for a Texinfo document.
@item @strong{@asis{}-@asis{}-@asis{}setfilename}=@emph{STR}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}setfilename}=@emph{STR}}
Use @emph{STR} in top boilerplate before menu and includes for @code{@@setfilename}
for the main Texinfo document, if @code{--base-level} is not set to 0. Ignored if
@code{--base-level} is 0. No @code{@@setfilename} is output in the default case
for the main Texinfo document.
@item @strong{@asis{}-@asis{}-@asis{}subdir}=@emph{NAME}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}subdir}=@emph{NAME}}
If there is a main Texinfo document with include files (each corresponding to
an input Pod file), then those include files are included from @emph{NAME}.
If @code{--outdir} is set, @emph{NAME} should in general be set to the relative
directory between the main Texinfo document and @code{--outdir} argument.
@item @strong{@asis{}-@asis{}-@asis{}unnumbered-sections}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}unnumbered-sections}}
Use unnumbered sectioning commands (@code{@@unnumbered}, ...) instead of the
default numbered sectioning Texinfo @@-commands (@code{@@chapter},
@code{@@section}, ...).
@item @strong{@asis{}-@asis{}-@asis{}top}=@emph{TOP}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}top}=@emph{TOP}}
Name of the @code{@@top} element for the main Texinfo document. Also used for
the title. May contain Texinfo code. Ignored if @code{--base-level} is 0.
@item @strong{@asis{}-@asis{}-@asis{}version}
@anchor{pod2texi @strong{@asis{}-@asis{}-@asis{}version}}
Display version information and exit.
@end table
@subsubheading pod2texi SEE ALSO
@anchor{pod2texi SEE ALSO}
@url{https://www.gnu.org/software/texinfo/manual/Pod/Simple/Texinfo.html, Pod::Simple::Texinfo}. @url{https://metacpan.org/pod/perlpod, perlpod}. The Texinfo manual.
Texinfo home page: @url{https://www.gnu.org/software/texinfo/}
@subsubheading pod2texi COPYRIGHT AND LICENSE
@anchor{pod2texi COPYRIGHT AND LICENSE}
Copyright 2012-2026 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
There is NO WARRANTY, to the extent permitted by law.
@subsubheading pod2texi AUTHOR
@anchor{pod2texi AUTHOR}
Patrice Dumas <bug-texinfo@@gnu.org>.