POD2LATEX(1)

πŸ“¦
version 0.61 Β· 3 versions
, in fedora 43

✨ POD2LATEX(1) ✨

User Contributed Perl Documentation β€” and bestie, it's about to convert your whole POD situation into LaTeX πŸ’…


🌸 NAME 🌸

pod2latex</purl> β€” ok so this is the girl that converts pod documentation into latex format ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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 converts POD format documentation (perlpod, iykyk) into latex. It can handle multiple input documents at a time and it'll either generate one latex file per input document, or one single combined output file β€” your call, main character 🌈


πŸ‘‘ OPTIONS AND ARGUMENTS πŸ‘‘

This section describes the supported command line options. Minimum matching is supported β€” so yes, you can be lazy, it gets you 🫢

  • -out β€” Name of the output file to be used. If there's multiple input pods, it's assumed that the intention is to write all the translated output into a single file. .tex gets appended if it's not already there. If you don't supply the argument, a single document will be created for each input file πŸ’«
  • -full β€” Creates a complete latex file that can be processed immediately (unless =for/=begin directives are used that rely on extra packages, in which case, rip πŸ™ˆ). Table of contents and index generation commands are included in the wrapper latex code.
  • -sections β€” Specify pod sections to include (or remove if negated) in the translation. See SECTION SPECIFICATIONS in Pod::Select for the format to use for section-spec. This option may be given multiple times on the command line. This is identical to the similar option in the podselect() command. Literally the same thing, no cap πŸŽ€
  • -modify β€” This option causes the output latex to be slightly modified from the input pod such that when a =head1 NAME is encountered, a section is created containing the actual pod name (rather than NAME) and all subsequent =head1 directives are treated as subsections. The advantage here? The description of a module will be in its own section, which is super helpful for including module descriptions in documentation. Also forces latex label and index entries to be prefixed by the name of the module. Obsessed with the structure honestly ✨
  • -h1level β€” Specifies the latex section that is equivalent to a H1 pod directive. This is an integer between 0 and 5, where 0 is equivalent to a latex chapter, 1 is equivalent to a latex section, etc. The default is 1 (H1 equivalent to a latex section).
  • -help β€” Print a brief help message and exit. Short and sweet πŸ’…
  • -man β€” Print the manual page and exit.
  • -verbose β€” Print information messages as each document is processed. She's chatty, she's keeping you in the loop πŸ—£οΈ
  • -preamble β€” A user-supplied preamble for the LaTeX code. Multiple values are supported and appended in order separated by \n. See -prefile for 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 -postfile for 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 πŸ’€

Known bugs are, unfortunately, a thing:

  • Cross references between documents are not resolved when multiple pod documents are converted into a single output latex file. 😭
  • 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. She needs instructions bestie, she's not psychic πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

Pod::LaTeX β€” go read it, it's giving lore πŸ¦‹


πŸ’œ AUTHOR πŸ’œ

Tim Jenness <tjenness@cpan.org>

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 was perl v5.42.0, dated 2025-07-25, straight from POD2LATEX(1) 🌟 slay, go convert something πŸ’…βœ¨

πŸ“¦ where this page comes from