X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fheb-article.layout;h=c9122bdcbd5426945b0b94bf8a70480ec0838f6c;hb=625e7609f0bb4087f0cd91ae3853beee6c6ba402;hp=f94d6fdc0bf3a644bf4f475f05821e4818c6d630;hpb=4b95c7b2a35a9f52adefe0fd17da8d2fea38650a;p=lyx.git diff --git a/lib/layouts/heb-article.layout b/lib/layouts/heb-article.layout index f94d6fdc0b..c9122bdcbd 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 43 +Format 60 Input article Preamble @@ -13,6 +13,16 @@ 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