#% Do not delete the line below; configure depends on this
-# \DeclareLaTeXClass[article,theorem.sty]{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 36
+Format 85
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
LatexName lemma
LabelString "Lemma #."
Preamble
- \newtheorem{lemma}[theorem]{\R{למה}}
+ \newtheorem{lemma}[theorem]{{\beginR למה}}
EndPreamble
End
LatexName corollary
LabelString "Corollary #."
Preamble
- \newtheorem{corollary}[theorem]{\R{מסקנה}}
+ \newtheorem{corollary}[theorem]{{\beginR מסקנה}}
EndPreamble
End
LatexName claim
LabelString "Claim #."
Preamble
- \newtheorem{claim}[theorem]{\R{טענה}}
+ \newtheorem{claim}[theorem]{{\beginR טענה}}
EndPreamble
End
LatexName definition
LabelString "Definition #."
Preamble
- \newtheorem{definition}[theorem]{\R{הגדרה}}
+ \newtheorem{definition}[theorem]{{\beginR הגדרה}}
EndPreamble
End
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
EndFont
Preamble
\newenvironment{proof}%
- {\R{\textbf{הוכחה:}}}%
+ {{\beginR \textbf{הוכחה:}}}%
{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
EndPreamble
End