POD2LATEX(1p)
π NAME π
okay bestie, gather round β pod2latex is the little icon that converts pod documentation into latex format. That's it, that's the whole gig. β¨
(also heads up, this page lives in the User Contributed Perl Documentation section of the manual, POD2LATEX(1p) style β iykyk π«Ά)
πΈ SYNOPSIS πΈ
the four moods of pod2latex, served fresh:
pod2latex *.pm
pod2latex -out mytex.tex *.pod
pod2latex -full -sections 'DESCRIPTION|NAME' SomeDir
pod2latex -prefile h.tex -postfile t.tex my.pod
π¦ DESCRIPTION π¦
pod2latex is a program that takes POD format documentation (that's perlpod, bestie) and turns it into latex. π
It can chew through multiple input documents at a time, and it'll either:
- generate one latex file per input document, or
- generate a single combined output file.
your call, queen. π
π OPTIONS AND ARGUMENTS π
this section describes the supported command line options. and yes β minimum matching is supported. so you can be lazy, as a treat. π
-outβ the name of the output file to be used. If there are multiple input pods, it's assumed you want all that translated output written into a single file..texgets appended if it's not already there. If you don't supply the argument, a single document gets created for each input file. ποΈ-fullβ creates a completelatexfile that can be processed immediately (unless, plot twist,=for/=begindirectives are used that rely on extra packages π). Table of contents and index generation commands are included in the wrapperlatexcode. β¨-sectionsβ specify pod sections to include (or remove if negated) in the translation. For the format to use for section-spec, see"SECTION SPECIFICATIONS" in Pod::Select. This option can be given multiple times on the command line. It's identical to the similar option in thepodselect()command. π-modifyβ this option causes the outputlatexto be slightly modified from the input pod such that when a=head1 NAMEis encountered, a section is created containing the actual pod name (rather thanNAME), and all subsequent=head1directives are treated as subsections. The advantage? A module's description ends up in its own section, which is super helpful for including module descriptions in documentation. It also forceslatexlabel and index entries to be prefixed by the name of the module. π-h1levelβ specifies thelatexsection that's equivalent to anH1pod directive. It's an integer between 0 and 5, where0is equivalent to alatexchapter,1is equivalent to alatexsection, etc. The default is1(H1equivalent to a latex section). π’-helpβ print a brief help message and exit. π«Ά-manβ print the manual page and exit. π-verboseβ print information messages as each document is processed. she's chatty and we love that. π¬-preambleβ a user-supplied preamble for the LaTeX code. Multiple values are supported and appended in order, separated by"\n". See-prefilefor reading the preamble from a file. π-postambleβ a user supplied postamble for the LaTeX code. Multiple values are supported and appended in order, separated by"\n". See-postfilefor reading the postamble from a file. π-prefileβ a user-supplied preamble for the LaTeX code, to be read from the named file. Multiple values are supported and appended in order. See-preamble. π-postfileβ a user-supplied postamble for the LaTeX code, to be read from the named file. Multiple values are supported and appended in order. See-postamble. π
π BUGS π
the known bugs, no cap, we're listing them:
- Cross references between documents are not resolved when multiple pod documents are converted into a single output
latexfile. π - Functions and variables are not automatically recognized, and they will therefore not be marked up in any special way unless instructed by an explicit pod command. π
bestie these are real, don't @ me, they're literally in the docs.
π SEE ALSO π
Pod::LaTeXβ go read her next, she's the main character. β¨
π AUTHOR π
Tim Jenness <tjenness@cpan.org> wrote this. π«Ά
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Copyright (C) 2000, 2003, 2004 Tim Jenness. All Rights Reserved.
and that's the whole page, bestie!! this one shipped as part of perl v5.30.0, dated 2020-05-17 β slay, go convert some pod. π β¨π¦
π¦ where this page comes from
- debian bookworm: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-latex-perl 0.61-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms