]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/heb-article.layout
hebarticle: fix compilation with XeTeX (bug #10525)
[lyx.git] / lib / layouts / heb-article.layout
index 07333dfc628d087bd0be2f2bcd4ae040c7f2910c..77eee6858e65c9f881251694a6c37872e93a1eea 100644 (file)
@@ -1,20 +1,32 @@
 #% 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 <dekel@math.tau.ac.il>
 # Few changes by Baruch Even <baruch.even@writeme.com>
 
+Format 66
 Input article
 
 Preamble
-       \usepackage{theorem}
-       \theorembodyfont{\upshape}
-       \newtheorem{theorem}{\R{îùôè}}[section]
-       \AtBeginDocument{\make@lr\thetheorem}
+\usepackage{theorem}
+\theorembodyfont{\upshape}
+% LuaTeX/luabidi does not know \beginR
+% FIXME LuaTeX/luabidi does not get the order right
+\AtBeginDocument{
+\@ifundefined{setRTL}{}{\providecommand\beginR{\setRTL}}
+}
+\newtheorem{theorem}{{\beginR משפט}}[section]
+% Only needed by babel, not polyglossia (which does
+% not have \make@lr defined)
+\@ifundefined{make@lr}{}{%
+   \AtBeginDocument{\make@lr\thetheorem}
+}
 EndPreamble
 
 
 Style Theorem
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             theorem
@@ -46,7 +58,7 @@ Style Lemma
        LatexName             lemma
        LabelString           "Lemma #."
        Preamble
-               \newtheorem{lemma}[theorem]{\R{ìîä}}
+               \newtheorem{lemma}[theorem]{{\beginR למה}}
        EndPreamble
 End
 
@@ -56,7 +68,7 @@ Style Corollary
        LatexName             corollary
        LabelString           "Corollary #."
        Preamble
-               \newtheorem{corollary}[theorem]{\R{îñ÷ðä}}
+               \newtheorem{corollary}[theorem]{{\beginR מסקנה}}
        EndPreamble
 End
 
@@ -66,7 +78,7 @@ Style Claim
        LatexName             claim
        LabelString           "Claim #."
        Preamble
-               \newtheorem{claim}[theorem]{\R{èòðä}}
+               \newtheorem{claim}[theorem]{{\beginR טענה}}
        EndPreamble
 End
 
@@ -76,7 +88,7 @@ Style Definition
        LatexName             definition
        LabelString           "Definition #."
        Preamble
-               \newtheorem{definition}[theorem]{\R{äâãøä}}
+               \newtheorem{definition}[theorem]{{\beginR הגדרה}}
        EndPreamble
 End
 
@@ -86,12 +98,13 @@ Style Remarks
        LatexName             remark
        LabelString           "Remarks #."
        Preamble
-               \newtheorem{remark}[theorem]{\R{äòøä}}
+            \newtheorem{remark}[theorem]{{\beginR הערה}}
        EndPreamble
 End
 
 
 Style Proof
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             proof
@@ -118,7 +131,9 @@ Style Proof
        EndFont
        Preamble
                \newenvironment{proof}%
-                       {\R{\textbf{äåëçä:}}}%
+                       {{\beginR \textbf{הוכחה:}}}%
                        {\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
        EndPreamble
 End
+
+Input theorems-refprefix.inc