summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rnc/LaTeXML/LaTeXML-common.rnc
blob: 6beb53b14b67a3ac3124056f6edeb98d14f9d755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# /=====================================================================\ 
# |  LaTeXML-classes.rnc                                                |
# | Document Type 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=/

default namespace = "http://dlmf.nist.gov/LaTeXML"


# Basic element classes:

## All strictly inline elements.
Inline.class = empty

## All `physical' block elements. 
## A physical block is typically displayed as a block, but
## may not constitute a complete logical unit.
Block.class = empty

## Additional miscellaneous elements that can appear in
## both inline and block contexts.
Misc.class = empty

## All logical block level elements.
## A logical block typically contains one or more physical block elements.
## For example, a common situation might be \elementref{p},\elementref{equation},\elementref{p},
## where the entire sequence comprises a single sentence.
Para.class = empty

## All metadata elements, typically representing hidden data.
Meta.class = empty

# ======================================================================
# Attribute types

## The type for attributes specifying a length.
## Should be a number followed by a length, typically px.
## NOTE: To be narrowed later.
Length.type = text

## The type for attributes specifying a color.
## NOTE: To be narrowed later.
Color.type = text

# ======================================================================
## Attributes shared by ALL elements.
Common.attributes =

#  ## provides for namespace declaration.
#  attribute xmlns { text }? &

  ## a space separated list of tokens, as in CSS.
  ## The \attr{class} can be used to add differentiate different instances of elements
  ## without introducing new element declarations.
  ## However, this generally shouldn't be used for deep semantic distinctions.
  ## This attribute is carried over to HTML and can be used for CSS selection.
  ## [Note that the default XSLT stylesheets for html and xhtml
  ## add the latexml element names to the class of html elements
  ## for more convenience in using CSS.]
  attribute class { xsd:NMTOKENS }?

## Attributes for elements that can be cross-referenced
## from inside or outside the document.
ID.attributes = 

  ## the unique identifier of the element, 
  ## usually generated automatically by the latexml.
  attribute xml:id { xsd:ID }?

## Attributes for elements that can cross-reference other elements.
IDREF.attributes =

  ## the identifier of the referred-to element.
  attribute idref { xsd:IDREF }?

## Attributes for elements that can be labelled from within LaTeX.
## These attributes deal with assigning a label and generating cross references.
Labelled.attributes =
  ID.attributes & 

  ## Records the various labels that LaTeX uses for crossreferencing.
  ## (note that \cs{label} can associate more than one label with an object!)
  ## It consists of space separated labels for the element.
  ## The \cs{label} macro provides the label prefixed by \texttt{LABEL:};
  ## Spaces in a label are replaced by underscore.
  ## Other mechanisms (like acro?) might use other prefixes (but \texttt{ID:} is reserved!)
  attribute labels { text }? &

  ## the reference number (ie. section number, equation number, etc) of the object.
  attribute refnum { text }? &

  ## the formatted reference number of the object, typically this is the refnum with
  ## the object type prepended, such as "Chapter 2"
  attribute frefnum { text }?

## Attributes shared by low-level, generic inline and block elements
## that can be sized or shifted.
Positionable.attributes =

  ## the desired width of the box
  attribute width { Length.type }? &

  ## the desired height of the box
  attribute height { Length.type }? &

  ## the desired depth of the box
  attribute depth { Length.type }? &

  ## extra width beyond the boxes natural size.
  attribute pad-width { Length.type }? &

  ## extra height beyond the boxes natural size.
  attribute pad-height { Length.type }? &

  ## horizontal shift the position of the box.
  attribute xoffset { Length.type }? &

  ## vertical shift the position of the box.
  attribute yoffset { Length.type }? &

  ## alignment of material within the box.
  attribute align { "left" | "center" | "right" | "justified" }? &

  ## specifies which line of the box is aligned to the baseline of the containing object.
  attribute vattach { "top" | "middle" | "bottom" }? &

  ## the horizontal floating placement parameter that determines where the object is displayed.
  attribute float { ( "right" | "left" | text) }?

## Attributes for elements that may be converted to image form
## during postprocessing, such as math, graphics, pictures, etc.
Imageable.attributes =

  ## the file, possibly generated from other data.
  attribute imagesrc { xsd:anyURI }? &

  ## the width in pixels of \attr{imagesrc}.
  attribute imagewidth { xsd:nonNegativeInteger}? &

  ## the height in pixels of \attr{imagesrc}.
  attribute imageheight { xsd:nonNegativeInteger }? &

  ## a description of the image
  attribute description { text }?