# HG changeset patch # User Patrick PIERRE # Date 1387147378 -3600 # Node ID 4fc445e33c221467adab1951136fd46e48d8eebb # Parent d61e5d5e617c2c8d80991dc34385be32e02e313a Nouveaux modes pour diff -r d61e5d5e617c -r 4fc445e33c22 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~