![]() | ![]() | ![]() | Adding raw XML | Contents | Index |
XML
Hyperlatex provides a number of ways to access the XML-tag level.
The \xmlent{
entity}
command creates the XML entity
description &
entity;
. It is useful if you
need symbols from the ISO Latin 1 alphabet which are not
predefined in Hyperlatex. You could, for instance, define a macro for
the fraction ¼ as follows:
\T \newcommand{\onequarter}{$1/4$} \W \newcommand{\onequarter}{\xmlent{##188}}
The most basic command is \xml{
tag}
, which creates
the XML tag <
tag>
. This command is used
in the definition of most of Hyperlatex's commands and environments,
and you can use it yourself to achieve effects that are not available
in Hyperlatex directly. Note that \xml
looks up any attributes for
the tag that may have been set with
\xmlattributes
. If you want to avoid
this, use the starred version \xml*
.
Finally, the rawxml
environment allows you to write plain XML, if
you so desire. Everything between \begin{rawxml}
and
\end{rawxml}
will simply be included literally in the XML output. Alternatively, you can include a file of XML literally using
\xmlinclude
.
![]() | ![]() | ![]() | Adding raw XML | Contents | Index |