]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/heb-article.layout
Honor trailing spaces in LabelString and friends
[lyx.git] / lib / layouts / heb-article.layout
index 13adb5fb83430d66002dba74495a821c0c8cb6fa..71f11ec942c50a8591eb7692f70ac5ffc4ca05c8 100644 (file)
@@ -5,7 +5,7 @@
 # Author: Dekel Tsur <dekel@math.tau.ac.il>
 # Few changes by Baruch Even <baruch.even@writeme.com>
 
-Format 41
+Format 64
 Input article
 
 Preamble
@@ -13,10 +13,21 @@ Preamble
        \theorembodyfont{\upshape}
        \newtheorem{theorem}{\R{משפט}}[section]
        \AtBeginDocument{\make@lr\thetheorem}
+
+       % The following chunk fixes export with XeTeX.
+       % It is needed because polyglossia is used by default
+       % and \make@lr is only defined by babel.
+       \@ifundefined{make@lr}
+       {\def\make@lr#1{\begingroup
+           \toks@=\expandafter{#1}%
+           \edef\x{\endgroup
+         \def\noexpand#1{\noexpand\@number{\the\toks@}}}%
+         \x}}{\relax}
 EndPreamble
 
 
 Style Theorem
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             theorem
@@ -94,6 +105,7 @@ End
 
 
 Style Proof
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             proof