Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

latexml::parameters(3pm) [debian man page]

LaTeXML::Parameters(3pm)				User Contributed Perl Documentation				  LaTeXML::Parameters(3pm)

NAME
"LaTeXML::Parameters" - formal parameters, including "LaTeXML::Parameter". DESCRIPTION
Provides a representation for the formal parameters of LaTeXML::Definitions: "LaTeXML::Parameter" represents an individual parameter. Parameters Methods "$parameters = parseParameters($prototype,$for);" Parses a string for a sequence of parameter specifications. Each specification should be of the form {} reads a regular TeX argument, a sequence of tokens delimited by braces, or a single token. {spec} reads a regular TeX argument, then reparses it to match the given spec. The spec is parsed recursively, but usually should correspond to a single argument. [spec] reads an LaTeX-style optional argument. If the spec is of the form Default:stuff, then stuff would be the default value. Type Reads an argument of the given type, where either Type has been declared, or there exists a ReadType function accessible from LaTeXML::Package::Pool. Type:value, or Type:value1:value2... These forms pass additional Tokens to the reader function. OptionalType Similar to Type, but it is not considered an error if the reader returns undef. SkipType Similar to OptionalType, but the value returned from the reader is ignored, and does not occupy a position in the arguments list. "@parameters = $parameters->getParameters;" Return the list of "LaTeXML::Parameter" contained in $parameters. "@tokens = $parameters->revertArguments(@args);" Return a list of LaTeXML::Token that would represent the arguments such that they can be parsed by the Gullet. "@args = $parameters->readArguments($gullet,$fordefn);" Read the arguments according to this $parameters from the $gullet. This takes into account any special forms of arguments, such as optional, delimited, etc. "@args = $parameters->readArgumentsAndDigest($stomach,$fordefn);" Reads and digests the arguments according to this $parameters, in sequence. this method is used by Constructors. AUTHOR
Bruce Miller <bruce.miller@nist.gov> COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. perl v5.10.1 2009-06-11 LaTeXML::Parameters(3pm)

Check Out this Related Man Page

LaTeXML(3pm)						User Contributed Perl Documentation					      LaTeXML(3pm)

NAME
"LaTeXML" - transforms TeX into XML. SYNOPSIS
use LaTeXML; my $latexml = LaTeXML->new(); $latexml->convertAndWrite("adocument"); But also see the convenient command line script latexml which suffices for most purposes. DESCRIPTION
METHODS "my $latexml = LaTeXML->new(%options);" Creates a new LaTeXML object for transforming TeX files into XML. 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::State object) "$latexml->convertAndWriteFile($file);" Reads the TeX file $file.tex, digests and converts it to XML, and saves it in $file.xml. "$doc = $latexml->convertFile($file);" Reads the TeX file $file, digests and converts it to XML and returns the resulting XML::LibXML::Document. "$doc = $latexml->convertString($string);" Digests $string, presumably containing TeX markup, converts it to XML and returns the XML::LibXML::Document. "$latexml->writeDOM($doc,$name);" Writes the XML document to $name.xml. "$box = $latexml->digestFile($file);" Reads the TeX file $file, and digests it returning the LaTeXML::Box representation. "$box = $latexml->digestString($string);" Digests $string, which presumably contains TeX markup, returning the LaTeXML::Box representation. "$doc = $latexml->convertDocument($digested);" Converts $digested (the LaTeXML::Box reprentation) into XML, returning the XML::LibXML::Document. Customization 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 ALSO
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 LaTeXML::State maintains the current state of processing, bindings or variables, definitions, etc. LaTeXML::Token, LaTeXML::Mouth and LaTeXML::Gullet deal with tokens, tokenization of strings and files, and basic TeX sequences such as arguments, dimensions and so forth. LaTeXML::Box and LaTeXML::Stomach deal with digestion of tokens into boxes. LaTeXML::Document, LaTeXML::Model, LaTeXML::Rewrite dealing with conversion of the digested boxes into XML. LaTeXML::Definition and LaTeXML::Parameters representation of LaTeX macros, primitives, registers and constructors. LaTeXML::MathParser the math parser. LaTeXML::Global, LaTeXML::Error, LaTeXML::Object other random modules. AUTHOR
Bruce Miller <bruce.miller@nist.gov> COPYRIGHT
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. perl v5.10.1 2009-06-11 LaTeXML(3pm)
Man Page