X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fheb-article.layout;h=f9ca52d93e7b70956eb3ede0c966fa04167fb466;hb=b474aa5d4d8437eef35c751c7cfb9b6a30e7ee97;hp=be59328b8d1e33ca1d2ae0ee5150871538630905;hpb=b0aa0db10aae4a51d48f060e642f05542e89f370;p=lyx.git diff --git a/lib/layouts/heb-article.layout b/lib/layouts/heb-article.layout index be59328b8d..f9ca52d93e 100644 --- a/lib/layouts/heb-article.layout +++ b/lib/layouts/heb-article.layout @@ -5,7 +5,7 @@ # Author: Dekel Tsur # Few changes by Baruch Even -Format 42 +Format 63 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