- \usepackage{theorem}
- \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}
+\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}
+}
LatexName lemma
LabelString "Lemma #."
Preamble
LatexName lemma
LabelString "Lemma #."
Preamble
- \newtheorem{lemma}[theorem]{\R{למה}}
+ \newtheorem{lemma}[theorem]{{\beginR למה}}
LatexName corollary
LabelString "Corollary #."
Preamble
LatexName corollary
LabelString "Corollary #."
Preamble
- \newtheorem{corollary}[theorem]{\R{מסקנה}}
+ \newtheorem{corollary}[theorem]{{\beginR מסקנה}}
LatexName claim
LabelString "Claim #."
Preamble
LatexName claim
LabelString "Claim #."
Preamble
- \newtheorem{claim}[theorem]{\R{טענה}}
+ \newtheorem{claim}[theorem]{{\beginR טענה}}
LatexName definition
LabelString "Definition #."
Preamble
LatexName definition
LabelString "Definition #."
Preamble
- \newtheorem{definition}[theorem]{\R{הגדרה}}
+ \newtheorem{definition}[theorem]{{\beginR הגדרה}}
LatexName remark
LabelString "Remarks #."
Preamble
LatexName remark
LabelString "Remarks #."
Preamble
- \newtheorem{remark}[theorem]{\R{הערה}}
+ \newtheorem{remark}[theorem]{{\beginR הערה}}
EndFont
Preamble
\newenvironment{proof}%
EndFont
Preamble
\newenvironment{proof}%
+ {{\beginR \textbf{הוכחה:}}}%
{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
EndPreamble
End
{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
EndPreamble
End
- Fix interplay of the memoir class and custom page size/geometry (bug 10970).
- Fix interplay of the memoir class and custom page size/geometry (bug 10970).
+- Fix compilation of Hebrew Article with XeTeX and LuaTeX (bug 10525).
+