1 <!ENTITY % nomath "#PCDATA|TeXML|cmd|env|group|ctrl|spec|pdf">
3 <!ENTITY % content "%nomath;|math|dmath">
5 <!ELEMENT TeXML (%content;)*>
8 mode (text|math) #IMPLIED
10 emptylines (0|1) #IMPLIED
11 ligatures (0|1) #IMPLIED
15 <!ELEMENT env (%content;|opt|parm)*>
30 <!ELEMENT group (%content;)*>
32 <!ELEMENT math (%nomath;)*>
34 <!ELEMENT dmath (%nomath;)*>
36 <!ELEMENT cmd (opt|parm)*>
45 <!ENTITY % inopt "%content;">
47 <!ELEMENT opt (%inopt;)*>
49 <!ELEMENT parm (%inopt;)*>
59 <!ELEMENT pdf (#PCDATA)>
65 ; cat (esc|bg|eg|mshift|align|parm|sup|sub|tilde|comment|vert|lt|gt|nl|nl?|space|nil) #REQUIRED
68 ; but 'nl?' is not valid in NmToken. So I use CDATA