PLASTEX(1)

πŸ’… plastex(1) β€” bestie edition πŸ’…

okay so you found plastex(1) and you're about to have the best time processing LaTeX, no cap. this is the manual page for the plastex command, and I'm gonna walk you through every single flag like we're texting at 2am. 🫢


πŸŽ€ NAME πŸŽ€

plastex β€” a collection of Python frameworks that allow you to process LaTeX documents ✨


🌸 SYNOPSIS 🌸

plastex mylatex.tex [--config=config-file | -c config-file]
        [--kpsewhich=program] [--renderer=renderer-name]
        [--theme=theme-name] [--copy-theme-extras | --no-theme-extras]
        [--base-url=url] [--index-columns=integer] [--title=string]
        [--toc-depth=integer] [--toc-non-files]
        [--counter=[  {counter-name} {initial-value}... ]]
        [--links=[  {key} [url] {title} ]] [--bad-filename-chars=string]
        [--bad-filename-chars-sub=string] [--dir=directory |
        -d directory] [--escape-high-chars] [--filename=filename]
        [--input-encoding=encoding] [--output-encoding=encoding]
        [--split-level=integer] [--image-base-url=url]
        [--image-compiler=program] [--enable-images | --disable-images]
        [--enable-image-cache | --disable-image-cache]
        [--imager=program] [--image-filenames=filename]
        [--vector-imager=program]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this manual page documents the plastex command. that's the whole vibe. πŸ“–

this manual page was written for the Debian(TM) distribution because the original program does not have a manual page. (we love a good community glow-up πŸ’–)

plasTeX is a collection of Python frameworks that allow you to process LaTeX documents. this processing includes, but is not limited to, conversion of LaTeX documents to various document formats. of course, it is capable of converting to HTML or XML formats such as DocBook and tBook, but it is an open framework that allows you to drive any type of rendering. meaning?? it could literally be used to drive a COM object that creates a MS Word Document. it's giving versatile. πŸ’…

the plasTeX framework allows you to control all of the processes including tokenizing, object creation, and rendering through API calls. you also have access to all of the internals such as counters, the states of β€œif” commands, locally and globally defined macros, labels and references, etc. in essence, it is a LaTeX document processor that gives you the advantages of an XML document in the context of a language as superb as Python. periodt. πŸπŸ‘‘


πŸ‘‘ OPTIONS πŸ‘‘

these programs follow the usual GNU command line syntax, with long options starting with two dashes (-). a summary of options is included below. for a complete description, see the Info files.

  • --config=config-file, -c config-file β€” specifies a configuration file to load. bestie, this should be the first option specified on the command-line. like, first first. πŸ₯‡
  • --kpsewhich=program β€” specifies the kpsewhich program to use to locate LaTeX files and packages.
  • --renderer=renderer-name β€” specifies which renderer to use.
  • --theme=theme-name β€” specifies which theme to use. 🌈
  • --copy-theme-extras, --no-theme-extras β€” indicates whether or not extra files that belong to a theme (if there are any) should be copied to the output directory.
  • --base-url=url β€” specifies a base URL to prepend to the path of all links. πŸ”—
  • --index-columns=integer β€” specifies the number of columns to group the index into.
  • --sec-num-depth=integer β€” specifies the section level depth that should appear in section numbers. this value overrides the value of the secnumdepth counter in the document. πŸ’₯
  • --title=string β€” specifies a title to use for the document instead of the title given in the LaTeX source document.
  • --toc-depth=integer β€” specifies the number of levels to include in each table of contents.
  • --toc-non-files β€” specifies that sections that do not create files should still appear in the table of contents. by default, only sections that create files will show up in the table of contents.
  • --counter=[ counter-name initial-value ... ] β€” specifies the initial counter values.
  • --links=[ key optional-url title ] β€” specifies links to be included in the navigation object. since at least two values are needed in the links (key and title, with an optional URL), the values are grouped in square brackets on the command-line ([ ]).
  • --bad-filename-chars=string β€” specifies all characters that should not be allowed in a filename. these characters will be replaced by the value in --bad-filename-chars-sub. 🚫
  • --bad-filename-chars-sub=string β€” specifies a string to use in place of invalid filename characters (specified by the --bad-chars-sub option).
  • --dir=directory, -d directory β€” specifies a directory name to use as the output directory. πŸ“
  • --escape-high-chars β€” some output types allow you to represent characters that are greater than 7-bits with an alternate representation to alleviate the issue of file encoding. this option indicates that these alternate representations should be used.
  • --filename=string β€” specifies the templates to use for generating filenames. the filename template is a list of space separated names. each name in the list is returned once.
  • --input-encoding=string β€” specifies which encoding the LaTeX source file is in.
  • --output-encoding=string β€” specifies which encoding the output files should use. Note: this depends on the output format as well. while HTML and XML use encodings, a binary format like MS Word, would not.
  • --split-level=integer β€” specifies the highest section level that generates a new file. each section in a LaTeX document has a number associated with its hierarchical level. these levels are -2 for the document, -1 for parts, 0 for chapters, 1 for sections, 2 for subsections, 3 for subsubsections, 4 for paragraphs, and 5 for subparagraphs. a new file will be generated for every section in the hierarchy with a value less than or equal to the value of this option. this means that for the value of 2, files will be generated for the document, parts, chapters, sections, and subsections. πŸ—‚οΈ
  • --image-base-url=url β€” specifies a base URL to prepend to the path of all images. πŸ–ΌοΈ
  • --image-compiler=program β€” specifies which program to use to compile the images LaTeX document.
  • --enable-images, --disable-images β€” indicates whether or not images should be generated.
  • --enable-image-cache, --disable-image-cache β€” indicates whether or not images should use a cache between runs. ⚑
  • --imager=program β€” specifies which converter will be used to take the output from the LaTeX compiler and convert it to images. you can specify a space delimited list of names as well. if a list of names is specified, each one is verified in order to see if it works on the current machine. the first one that succeeds is used.

you can use the value of β€œnone” to turn the imager off. πŸ”‡

  • --image-filenames=filename-template β€” specifies the image naming template to use to generate filenames. this template is the same as the templates used by the --filename option.
  • --vector-imager=program β€” specifies which converter will be used to take the output from the LaTeX compiler and convert it to vector images. you can specify a space delimited list of names as well. if a list of names is specified, each one is verified in order to see if it works on the current machine. the first one that succeeds is used.

you can use the value of β€œnone” to turn the vector imager off. πŸ”‡


πŸŽ€ AUTHOR πŸŽ€

Carl FΓΌrstenberg

this manual page was written for the Debian(TM) system (but may be used by others), it borrows heavily on the documentation shipped with the plastex source package. permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.

on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.

Copyright Β© 2007 Carl FΓΌrstenberg


and that's the whole page bestie, you ate it up πŸ’…βœ¨ this was plastex, dated 2007-07-19 β€” go forth and process some LaTeX, you absolute icon πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from