The root element of the xml2tex configuration.
Import other xml2tex configuration files. Imported character maps and templates will always have a
lower priority than those in the importing configuration. Imported preamble
, front
and back
will be replaced if they exist in the importing configuration
Place declarations such as document class, used packages and other information TeX will need to format the document correctly
Used for TeX instructions to be placed immediately after
the begin of the document (e.g. \begin{document}
).
Used for TeX instructions to be placed immediately before
the end of the document (e.g. \end{document}
).
Specify the XML namespaces used in the document.
Used to create a TeX instruction for a specified XML context.
This is a shorter but less powerful alternative for template
. You can select
elements by a specific attribute and value. The attribute name has to be declared
globally with @style-attribute
at xml2tex:set
.
Create TeX instructions where the specified regular expression pattern matches a part of text.
A collection of mapping instructions for mapping characters to specific TeX instructions.
Specify name and type of the TeX instruction and additional formatting.
You can store the evaluated context of the template
to a separate file by specifying a file reference.
Used to replace a character with a TeX instruction.
Used to add text after the TeX instruction such as \foo bar
.
There are three ways to control how the content is applied:
a) <text/>
The context which is specified by template/@content
is applied.
b) <text select="foo"/>
The context which is specified by the XPath expression in the @select
attribute is applied.
c) <text>foo</text>
The plain text string is inserted.
Used to create a parameter for a TeX instruction such as \foo{bar}
.
There are three ways to control how the content is applied:
a) <param/>
The context which is specified by template/@content
is applied.
b) <param select="foo"/>
The context which is specified by the XPath expression in the @select
attribute is applied.
c) <param>foo</text>
The plain text string is just inserted.
Used to create an option for a TeX instruction such as \foo[bar]
.
There are three ways to control how the content is applied:
a) <text/>
The context which is specified by template/@content
is applied.
b) <text select="foo"/>
The context which is specified by the XPath expression in the @select
attribute is applied.
c) <text>foo</text>
The plain text string is just inserted.
style
you can choose the attribute to be evaluated as style e.g.
role
in DocBook or rend
in TEI.
Ü =>\"U
?
tabular
, tabularx
and htmltabs
.
table-model
is
tabular
or tabularx
.
table-first-col-declaration
and table-last-col-declaration
.
Value: XPath expression
Specify an XPath expression to select a node within the selected context.
Value: 'text'
Specify if XPath expression in @select should be evaluated as text only.
Value: xs:integer
Specify the number of the regex groups to be selected.
Value: path
Import other xml2tex configuration files by specifying their relative or absolute path.
Value: xs:string
Specify the namespace prefix. The values of prefix
and
uri
are used to create an XML namespace declaration
in the generated stylesheet.
Value: xs:string
Specify the namespace URI. The values of prefix
and
uri
are used to create an XML namespace declaration
in the generated stylesheet.
Value: XPath expression
The content of this attribute is an XSLT 2 matching pattern that may contain
QNames with namespace prefixes. These prefixes and the namespaces must be declared
first in the XML and second with the ns
element.
Value: xs:string
Provides a name for the template. will be expanded to an XSLT 2 named template with the possibility to declare rule-Elements within..
Value: xs:integer
Can be used to override the internally evaluated priority of the template order.
Value: xs:string
Provides a name for the TeX instruction. The name foo will expand to
either \foo
or \begin{foo}…\end{foo}
depending on the value of the
type attribute.
Values: cmd|env
Declares whether you want to create a command (cmd)such as \foo
or
an environment env such as \begin{foo}…\end{foo}
Value: xs:integer
Specifiies the number of breaks which will be added after the TeX instruction
Value: xs:integer
Specifies the number of breaks which will be added before the TeX instruction
Values: true|false
The content will be enclosed in '$' characters which cause TeX to switch to math mode.
Value: true|false
The content will be enclosed in a protect macro with curly brackets.
Value: xs:boolean
Whether character maps from imported configurations should be
ignored (true
) or overridden (false
).
When you omit this attribute, the default is to override
imported configurations, e.g. prefer character mappings
from the importing configuration.
Value: xs:string
Character to be replaced
Value: xs:string
The value of the @character
attribute is replaced with the value of this attribute.
Value: XPath expression
The content of this attribute is an XSLT 2 matching pattern that may contain
QNames with namespace prefixes. These prefixes and the namespaces must be declared
first in the XML and second with the ns
element.
Please be aware that MathML is converted by a separate module, named
mml2tex. Please look there into
texmap/texmap.xml
Values: text
or math
Specifies the mode to which the character mapping is applied. If no mode attribute was specified, the character mapping can be applied to both modes (if applicable).
Value: XML Attribute value
Specifies the attribute value of an XML element. The attribute name has to be declared
globally with @style-attribute
at xml2tex:set
.
Value: Plain text
The value of this attribute is inserted before the selected XML element.
Value: Plain text
The value of this attribute is inserted after the selected XML element.
Value: regular expression pattern
Specifies the regular expression pattern to match certain text strings.
You can also use regular expression groups to reference them later with
the @regex-group
attribute in param
, option
or
text
Value: true|false
Wether a matching string should be normalized
Value: true|false
Restrict the scope of the regex to a specific XPath context
The value determines the order in which the regex template is applied compared to other regex templates. Specifying a regex-priority has no effect on the order in which this template is executed compared to non-regex templates, since these are handled in a different process chain.
Specifies a path on the local file system.
With this optional attribute, you can specify the file encoding. The default value is 'utf-8'
With this optional attribute, you can specify the serialization method. The default value is 'text', other permitted values are 'xml' and 'html'.