X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fheb-article.layout;h=71f11ec942c50a8591eb7692f70ac5ffc4ca05c8;hb=5c545573507bbf55f78c294188537c6aff959bc0;hp=7c70f6f65a600ec9500c400727a7126d7a43ed6b;hpb=c48c33cf3a291432568f13947ec4025bac2e39ac;p=lyx.git diff --git a/lib/layouts/heb-article.layout b/lib/layouts/heb-article.layout index 7c70f6f65a..71f11ec942 100644 --- a/lib/layouts/heb-article.layout +++ b/lib/layouts/heb-article.layout @@ -1,10 +1,11 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[article]{article (Hebrew)} +# \DeclareLaTeXClass[article,theorem.sty]{Hebrew Article} +# \DeclareCategory{Articles} # Hebrew article textclass definition file. # Author: Dekel Tsur # Few changes by Baruch Even -Format 19 +Format 64 Input article Preamble @@ -12,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 @@ -93,6 +105,7 @@ End Style Proof + Category Reasoning Margin First_Dynamic LatexType Environment LatexName proof @@ -123,3 +136,5 @@ Style Proof {\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End + +Input theorems-refprefix.inc