summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng')
-rw-r--r--Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng514
1 files changed, 514 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng b/Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng
new file mode 100644
index 00000000000..01cb51dcae1
--- /dev/null
+++ b/Master/texmf-dist/source/latex/stex/schema/rng/LaTeXML-inline.rng
@@ -0,0 +1,514 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ /=====================================================================\
+ | LaTeXML-inline.rnc |
+ | RelaxNG model for LaTeXML generated documents |
+ |=====================================================================|
+ | Part of LaTeXML: |
+ | Public domain software, produced as part of work done by the |
+ | United States Government & not subject to copyright in the US. |
+ |=====================================================================|
+ | Bruce Miller <bruce.miller@nist.gov> #_# |
+ | http://dlmf.nist.gov/LaTeXML/ (o o) |
+ \=========================================================ooo==U==ooo=/
+-->
+<grammar ns="http://dlmf.nist.gov/LaTeXML" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
+ <define name="Inline.class" combine="interleave">
+ <a:documentation>The inline module defines basic inline elements used throughout </a:documentation>
+ <interleave>
+ <zeroOrMore>
+ <ref name="text"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="emph"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="acronym"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="rule"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="anchor"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="ref"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="cite"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="bibref"/>
+ </zeroOrMore>
+ </interleave>
+ </define>
+ <define name="Meta.class" combine="interleave">
+ <a:documentation>Additionally, it defines these meta elements. These are generally hidden,
+and can appear in inline and block contexts.</a:documentation>
+ <interleave>
+ <zeroOrMore>
+ <ref name="note"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="indexmark"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="ERROR"/>
+ </zeroOrMore>
+ </interleave>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="text">
+ <element name="text">
+ <a:documentation>General container for styled text.
+Attributes cover a variety of styling and position shifting properties.</a:documentation>
+ <interleave>
+ <ref name="text_attributes"/>
+ <ref name="text_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="text_attributes">
+ <a:documentation>Attributes for \elementref{text}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <ref name="Positionable.attributes"/>
+ <optional>
+ <attribute name="font">
+ <a:documentation>Indicates the font to use. It consists of a space separated sequence
+of values representing the
+family (\texttt{serif}, \texttt{sansserif}, \texttt{math}, \texttt{typewriter},
+ \texttt{caligraphic}, \texttt{fraktur}, \texttt{script}, \ldots),
+series (\texttt{medium}, \texttt{bold}, \ldots),
+and shape (\texttt{upright}, \texttt{italic}, \texttt{slanted}, \texttt{smallcaps}, \ldots).
+Only the values differing from the current context are given.
+Each component is open-ended, for extensibility; it is thus unclear
+whether unknown values specify family, series or shape.
+In postprocessing, these values are carried to the \attr{class} attribute,
+and can thus be effected by CSS.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="size">
+ <a:documentation>Indicates the text size to use. The values are modeled after the
+more abstract \LaTeX\ font size switches, rather than point-sizes.
+The values are open-ended for extensibility;
+In postprocessing, these values are carried to the \attr{class} attribute,
+and can thus be effected by CSS.</a:documentation>
+ <choice>
+ <value>Huge</value>
+ <value>huge</value>
+ <value>LARGE</value>
+ <value>Large</value>
+ <value>large</value>
+ <value>normal</value>
+ <value>small</value>
+ <value>footnote</value>
+ <value>tiny</value>
+ <text/>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="color">
+ <a:documentation>the color to use; any CSS compatible color specification.
+In postprocessing, these values are carried to the \attr{class} attribute,
+and can thus be effected by CSS.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="framed">
+ <a:documentation>the kind of frame or outline for the text.</a:documentation>
+ <choice>
+ <value>rectangle</value>
+ <value>underline</value>
+ <text/>
+ </choice>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="text_model">
+ <a:documentation>Content model for \elementref{text}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="emph">
+ <element name="emph">
+ <a:documentation>Emphasized text.</a:documentation>
+ <interleave>
+ <ref name="emph_attributes"/>
+ <ref name="emph_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="emph_attributes">
+ <a:documentation>Attributes for \elementref{emph}.</a:documentation>
+ <ref name="Common.attributes"/>
+ </define>
+ <define name="emph_model">
+ <a:documentation>Content model for \elementref{emph}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="acronym">
+ <element name="acronym">
+ <a:documentation>Represents an acronym.</a:documentation>
+ <interleave>
+ <ref name="acronym_attributes"/>
+ <ref name="acronym_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="acronym_attributes">
+ <a:documentation>Attributes for \elementref{acronym}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <optional>
+ <attribute name="name">
+ <a:documentation>should be used to indicate the expansion of the acronym.</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="acronym_model">
+ <a:documentation>Content model for \elementref{acronym}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="rule">
+ <element name="rule">
+ <a:documentation>A Rule.</a:documentation>
+ <interleave>
+ <ref name="rule_attributes"/>
+ <ref name="rule_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="rule_attributes">
+ <a:documentation>Attributes for \elementref{rule}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <ref name="Positionable.attributes"/>
+ </interleave>
+ </define>
+ <define name="rule_model">
+ <a:documentation>Content model for \elementref{rule}.</a:documentation>
+ <empty/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="ref">
+ <element name="ref">
+ <a:documentation>A hyperlink reference to some other object.
+When converted to HTML, the content would be the content of the anchor.
+The destination can be specified by one of the
+attributes \attr{labelref}, \attr{idref} or \attr{href};
+Missing fields will usually be filled in during postprocessing,
+based on data extracted from the document(s).</a:documentation>
+ <interleave>
+ <ref name="ref_attributes"/>
+ <ref name="ref_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="ref_attributes">
+ <a:documentation>Attributes for \elementref{ref}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <ref name="IDREF.attributes">
+ <a:documentation>reference to an internal identifier.</a:documentation>
+ </ref>
+ <optional>
+ <attribute name="labelref">
+ <a:documentation>reference to a LaTeX labelled object;
+See the \attr{labels} attribute of \patternref{Labelled.attributes}.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="href">
+ <a:documentation>reference to an arbitrary url.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="show">
+ <a:documentation>a pattern encoding how the text content should be filled in during
+postprocessing, if it is empty.
+It consists of the words
+ \texttt{type} (standing for the object type, eg. Ch.),
+ \texttt{refnum} and \texttt{title}
+mixed with arbitrary characters. The
+It can also be \texttt{fulltitle}, which indicates the title
+with prefix and type if section numbering is enabled.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="title">
+ <a:documentation>gives a longer form description of the target,
+this would typically appear as a tooltip in HTML.
+Typically filled in by postprocessor.</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="ref_model">
+ <a:documentation>Content model for \elementref{ref}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="anchor">
+ <element name="anchor">
+ <a:documentation>Inline anchor.</a:documentation>
+ <interleave>
+ <ref name="anchor_attributes"/>
+ <ref name="anchor_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="anchor_attributes">
+ <a:documentation>Attributes for \elementref{anchor}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <ref name="ID.attributes"/>
+ </interleave>
+ </define>
+ <define name="anchor_model">
+ <a:documentation>Content model for \elementref{anchor}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="cite">
+ <element name="cite">
+ <a:documentation>A container for a bibliographic citation. The model is inline to
+allow arbitrary comments before and after the expected \elementref{bibref}(s)
+which are the specific citation.</a:documentation>
+ <interleave>
+ <ref name="cite_attributes"/>
+ <ref name="cite_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="cite_attributes">
+ <a:documentation>Attributes for \elementref{cite}.</a:documentation>
+ <ref name="Common.attributes"/>
+ </define>
+ <define name="cite_model">
+ <a:documentation>Content model for \elementref{cite}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="bibref">
+ <element name="bibref">
+ <a:documentation>A bibliographic citation refering to a specific bibliographic item.</a:documentation>
+ <interleave>
+ <ref name="bibref_attributes"/>
+ <ref name="bibref_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="bibref_attributes">
+ <a:documentation>Attributes for \elementref{bibref}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <ref name="IDREF.attributes"/>
+ <optional>
+ <attribute name="bibrefs">
+ <a:documentation>a comma separated list of bibliographic keys.
+(See the \attr{key} attribute of \elementref{bibitem} and \elementref{bibentry})</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="show">
+ <a:documentation>a pattern encoding how the text content (of an empty bibref) will be filled in.
+Consists of strings \texttt{author}, \texttt{fullauthor}, \texttt{year},
+\texttt{number} and \texttt{title}
+(to be replaced by data from the bibliographic item)
+mixed with arbitrary characters.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="separator">
+ <a:documentation>separator between formatted references</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="yyseparator">
+ <a:documentation>separator between formatted years when duplicate authors are combined.</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="bibref_model">
+ <a:documentation>Content model for \elementref{bibref}.</a:documentation>
+ <zeroOrMore>
+ <ref name="bibrefphrase"/>
+ </zeroOrMore>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="bibrefphrase">
+ <element name="bibrefphrase">
+ <a:documentation>A preceding or following phrase used in composing a bibliographic reference,
+such as listing pages or chapter.</a:documentation>
+ <interleave>
+ <ref name="bibrefphrase_attributes"/>
+ <ref name="bibrefphrase_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="bibrefphrase_attributes">
+ <a:documentation>Attributes for \elementref{bibrefphrase}</a:documentation>
+ <ref name="Common.attributes"/>
+ </define>
+ <define name="bibrefphrase_model">
+ <a:documentation>Content model for \elementref{bibrefphrase}</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="note">
+ <element name="note">
+ <a:documentation>Metadata that covers several `out of band' annotations.
+It's content allows both inline and block-level content.</a:documentation>
+ <interleave>
+ <ref name="note_attributes"/>
+ <ref name="note_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="note_attributes">
+ <a:documentation>Attributes for \elementref{note}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <optional>
+ <attribute name="mark">
+ <a:documentation>indicates the desired visible marker to be linked to the note.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="role">
+ <a:documentation>indicates the kind of note</a:documentation>
+ <choice>
+ <value>footnote</value>
+ <text/>
+ </choice>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="note_model">
+ <a:documentation>Content model for \elementref{note}.</a:documentation>
+ <ref name="Flow.model"/>
+ </define>
+ <!-- should mark be more like label/refnum ? -->
+ <!-- ====================================================================== -->
+ <define name="ERROR">
+ <element name="ERROR">
+ <a:documentation>error object for undefined control sequences, or whatever</a:documentation>
+ <interleave>
+ <ref name="ERROR_attributes"/>
+ <ref name="ERROR_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="ERROR_attributes">
+ <a:documentation>Attributes for \elementref{ERROR}.</a:documentation>
+ <ref name="Common.attributes"/>
+ </define>
+ <define name="ERROR_model">
+ <a:documentation>Content model for \elementref{ERROR}.</a:documentation>
+ <zeroOrMore>
+ <text/>
+ </zeroOrMore>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="indexmark">
+ <element name="indexmark">
+ <a:documentation>Metadata to record an indexing position. The content is
+a sequence of \elementref{indexphrase}, each representing a level in
+a multilevel indexing entry.</a:documentation>
+ <interleave>
+ <ref name="indexmark_attributes"/>
+ <ref name="indexmark_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="indexmark_attributes">
+ <a:documentation>Attributes for \elementref{indexmark}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <optional>
+ <attribute name="see_also">
+ <a:documentation>a flattened form (like \attr{key}) of another \elementref{indexmark},
+used to crossreference.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="style">
+ <a:documentation>NOTE: describe this.</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="indexmark_model">
+ <a:documentation>Content model for \elementref{indexmark}.</a:documentation>
+ <zeroOrMore>
+ <ref name="indexphrase"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="indexsee"/>
+ </zeroOrMore>
+ </define>
+ <!-- ====================================================================== -->
+ <define name="indexphrase">
+ <element name="indexphrase">
+ <a:documentation>A phrase within an \elementref{indexmark}</a:documentation>
+ <interleave>
+ <ref name="indexphrase_attributes"/>
+ <ref name="indexphrase_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="indexphrase_attributes">
+ <a:documentation>Attributes for \elementref{indexphrase}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <optional>
+ <attribute name="key">
+ <a:documentation>a flattened form of the phrase for generating an \attr{ID}.</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="indexphrase_model">
+ <a:documentation>Content model for \elementref{indexphrase}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+ <define name="indexsee">
+ <element name="indexsee">
+ <a:documentation>A see-also phrase within an \elementref{indexmark}</a:documentation>
+ <interleave>
+ <ref name="indexsee_attributes"/>
+ <ref name="indexsee_model"/>
+ </interleave>
+ </element>
+ </define>
+ <define name="indexsee_attributes">
+ <a:documentation>Attributes for \elementref{indexsee}.</a:documentation>
+ <interleave>
+ <ref name="Common.attributes"/>
+ <optional>
+ <attribute name="key">
+ <a:documentation>a flattened form of the phrase for generating an \attr{ID}.</a:documentation>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="name">
+ <a:documentation>a name for the see phrase, such as "see also".</a:documentation>
+ </attribute>
+ </optional>
+ </interleave>
+ </define>
+ <define name="indexsee_model">
+ <a:documentation>Content model for \elementref{indexsee}.</a:documentation>
+ <ref name="Inline.model"/>
+ </define>
+</grammar>
+<!-- ====================================================================== -->