| LaTeXML::Core(3pm) | User Contributed Perl Documentation | LaTeXML::Core(3pm) |
"LaTeXML" - transforms TeX into XML.
use LaTeXML::Core;
my $latexml = LaTeXML::Core->new();
$latexml->convertAndWrite("adocument");
But also see the convenient command line script latexml which suffices for most purposes.
verbosity : Controls verbosity; higher is more verbose,
smaller is quieter. 0 is the default.
strict : If true, undefined control sequences and
invalid document constructs give fatal
errors, instead of warnings.
includecomments : If false, comments will be excluded
from the result document.
preload : an array of modules to preload
searchpath : an array of paths to be searched for Packages
and style files.
(these generally set config variables in the LaTeXML::Core::State object)
In the simplest case, LaTeXML will understand your source file and convert it automatically. With more complicated (realistic) documents, you will likely need to make document specific declarations for it to understand local macros, your mathematical notations, and so forth. Before processing a file doc.tex, LaTeXML reads the file doc.latexml, if present. Likewise, the LaTeXML implementation of a TeX style file, say style.sty is provided by a file style.ltxml.
See LaTeXML::Package for documentation of these customization and implementation files.
See latexml for a simple command line script.
See LaTeXML::Package for documentation of these customization and implementation files.
For cases when the high-level declarations described in LaTeXML::Package are not enough, or for understanding more of LaTeXML's internals, see
Bruce Miller <bruce.miller@nist.gov>
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
| 2024-02-27 | perl v5.38.2 |