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 thekpsewhichprogram 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 thesecnumdepthcounter 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-suboption).--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-2for the document,-1for parts,0for chapters,1for sections,2for subsections,3for subsubsections,4for paragraphs, and5for 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 of2, 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--filenameoption.--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 π
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
- debian bookworm: plastex 2.1-4 Β· MIT
- debian trixie: plastex 3.1-2 Β· MIT
- ubuntu jammy: plastex 2.1-2 Β· MIT
- ubuntu noble: plastex 3.0-3 Β· MIT
- ubuntu questing: plastex 3.1-2
- ubuntu resolute: plastex 3.1-4 Β· MIT
- ubuntu stonking: plastex 3.1-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms