Nouveaux modes pour <math>
authorPatrick PIERRE
dim., 15 déc. 2013 23:42:58 +0100
changeset 272 4fc445e33c22
parent 271 d61e5d5e617c
child 273 1b4a22675865
Nouveaux modes pour <math>
RelaxNG/publidoc.rnc
--- a/RelaxNG/publidoc.rnc	dim. déc. 08 15:22:14 2013 +0100
+++ b/RelaxNG/publidoc.rnc	dim. déc. 15 23:42:58 2013 +0100
@@ -737,16 +737,23 @@
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ math ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 math = element math {
-   ( attribute notation {"tex"}, math.attributes, math.tex.content )
- | ( math.attributes, math.content)
+   ( attribute notation {"latex"}, math.latex.attributes, math.latex.content )
+ | ( math.attributes, math.content )
 }
 
 math.attributes =
    math.mode.attribute?
-math.mode.attribute = attribute mode { "wide" | "equation" }
+math.latex.attributes =
+   math.latex.mode.attribute?
+math.mode.attribute = attribute mode {
+   "wide" | "numbered" | "box"  | "numbered-box" }
+math.latex.mode.attribute = attribute mode {
+   "wide" | "numbered" | "box"  | "numbered-box"
+ | "plain" | "plain-wide" | "numbered-plain" | "plain-box"
+ | "numbered-plain-box" }
 
 math.content = mixed { sup* & sub* & var* & warning* }
-math.tex.content = text
+math.latex.content = text
 
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ date ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~