X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fheb-article.layout;h=01d2bb052084918ea56a79a36159c7c3bdb9dbf5;hb=d6fecb4aa47899ea3fe02d1699e0ffc81f364910;hp=aa1da0d93513912ed8118f815b81c4f3d74d0095;hpb=d27668841be9dffa53c7b7a6e79b14dac97f50cb;p=lyx.git diff --git a/lib/layouts/heb-article.layout b/lib/layouts/heb-article.layout index aa1da0d935..01d2bb0520 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 48 +Format 49 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