]> 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 2261601a3ffe3280af7bebb506d106a52d82b30d..77eee6858e65c9f881251694a6c37872e93a1eea 100644 (file)
@@ -1,25 +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}
+% 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 Abstract
-       LabelString           "øéö÷ú"
-End
-
-
 Style Theorem
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             theorem
@@ -34,7 +41,7 @@ Style Theorem
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Static
-       LabelString           ".# èôùî"
+       LabelString           "Theorem #."
        Font
          Shape               Up
          Size                Normal
@@ -49,9 +56,9 @@ End
 Style Lemma
        CopyStyle             Theorem
        LatexName             lemma
-       LabelString           ".# äîì"
+       LabelString           "Lemma #."
        Preamble
-\newtheorem{lemma}[theorem]{\R{ìîä}}
+               \newtheorem{lemma}[theorem]{{\beginR למה}}
        EndPreamble
 End
 
@@ -59,9 +66,9 @@ End
 Style Corollary
        CopyStyle             Theorem
        LatexName             corollary
-       LabelString           ".# äð÷ñî"
+       LabelString           "Corollary #."
        Preamble
-\newtheorem{corollary}[theorem]{\R{îñ÷ðä}}
+               \newtheorem{corollary}[theorem]{{\beginR מסקנה}}
        EndPreamble
 End
 
@@ -69,9 +76,9 @@ End
 Style Claim
        CopyStyle             Theorem
        LatexName             claim
-       LabelString           ".# äðòè"
+       LabelString           "Claim #."
        Preamble
-\newtheorem{claim}[theorem]{\R{èòðä}}
+               \newtheorem{claim}[theorem]{{\beginR טענה}}
        EndPreamble
 End
 
@@ -79,9 +86,9 @@ End
 Style Definition
        CopyStyle             Theorem
        LatexName             definition
-       LabelString           ".# äøãâä"
+       LabelString           "Definition #."
        Preamble
-\newtheorem{definition}[theorem]{\R{äâãøä}}
+               \newtheorem{definition}[theorem]{{\beginR הגדרה}}
        EndPreamble
 End
 
@@ -89,14 +96,15 @@ End
 Style Remarks
        CopyStyle             Theorem
        LatexName             remark
-       LabelString           ".# äøòä"
+       LabelString           "Remarks #."
        Preamble
-\newtheorem{remark}[theorem]{\R{äòøä}}
+            \newtheorem{remark}[theorem]{{\beginR הערה}}
        EndPreamble
 End
 
 
 Style Proof
+       Category              Reasoning
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             proof
@@ -111,7 +119,7 @@ Style Proof
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Static
-       LabelString           ":äçëåä"
+       LabelString           "Proof:"
        EndLabelType          Filled_Box
        Font
          Shape               Up
@@ -122,6 +130,10 @@ Style Proof
          Series              Bold
        EndFont
        Preamble
-\newenvironment{proof}{\R{\textbf{äåëçä:}}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
+               \newenvironment{proof}%
+                       {{\beginR \textbf{הוכחה:}}}%
+                       {\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
        EndPreamble
 End
+
+Input theorems-refprefix.inc