mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fixes to heb-article, by Udi Fogiel (#12735)
For some reason theorems titles has \beginR without a \endR, and since this is basically inside restricted horizontal mode, TeX complains about a missing \endR. I could not figure out why were they there in the first place so I removed them and the output did not change, and the warnings are gone. Beside that the numbering of the theorems is wrong (e.g. 1.0 instead of 0.1), the \@makelr thing should happen after babel is loaded. The theorems layouts did not have a counter (in LyX) so I added one.
This commit is contained in:
parent
b42e978080
commit
d0a83d33fc
@ -4,26 +4,14 @@
|
|||||||
# Hebrew article textclass definition file.
|
# Hebrew article textclass definition file.
|
||||||
# Author: Dekel Tsur <dekel@math.tau.ac.il>
|
# Author: Dekel Tsur <dekel@math.tau.ac.il>
|
||||||
# Few changes by Baruch Even <baruch.even@writeme.com>
|
# Few changes by Baruch Even <baruch.even@writeme.com>
|
||||||
|
# Edited by Udi Fogiel <udifoglle@gmail.com>
|
||||||
|
|
||||||
Format 99
|
Format 99
|
||||||
Input article
|
Input article
|
||||||
|
|
||||||
Preamble
|
Counter theorem
|
||||||
\usepackage{theorem}
|
Within section
|
||||||
\theorembodyfont{\upshape}
|
End
|
||||||
% 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
|
Style Theorem
|
||||||
Category Reasoning
|
Category Reasoning
|
||||||
@ -41,7 +29,8 @@ Style Theorem
|
|||||||
Align Block
|
Align Block
|
||||||
AlignPossible Block, Left
|
AlignPossible Block, Left
|
||||||
LabelType Static
|
LabelType Static
|
||||||
LabelString "Theorem #."
|
LabelString "Theorem \thetheorem."
|
||||||
|
LabelCounter theorem
|
||||||
Font
|
Font
|
||||||
Shape Up
|
Shape Up
|
||||||
Size Normal
|
Size Normal
|
||||||
@ -50,56 +39,70 @@ Style Theorem
|
|||||||
Shape Up
|
Shape Up
|
||||||
Series Bold
|
Series Bold
|
||||||
EndFont
|
EndFont
|
||||||
|
Preamble
|
||||||
|
\usepackage{theorem}
|
||||||
|
\theorembodyfont{\upshape}
|
||||||
|
\newtheorem{theorem}{משפט}[section]
|
||||||
|
% Only needed by babel-hebrew
|
||||||
|
\AtBeginDocument{\@ifundefined{make@lr}{}{%
|
||||||
|
\make@lr\thetheorem
|
||||||
|
}}
|
||||||
|
EndPreamble
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Lemma
|
Style Lemma
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
LatexName lemma
|
LatexName lemma
|
||||||
LabelString "Lemma #."
|
LabelString "Lemma \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
\newtheorem{lemma}[theorem]{{\beginR למה}}
|
\newtheorem{lemma}[theorem]{למה}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
DependsOn Theorem
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Corollary
|
Style Corollary
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
LatexName corollary
|
LatexName corollary
|
||||||
LabelString "Corollary #."
|
LabelString "Corollary \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
\newtheorem{corollary}[theorem]{{\beginR מסקנה}}
|
\newtheorem{corollary}[theorem]{מסקנה}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
DependsOn Theorem
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Claim
|
Style Claim
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
LatexName claim
|
LatexName claim
|
||||||
LabelString "Claim #."
|
LabelString "Claim \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
\newtheorem{claim}[theorem]{{\beginR טענה}}
|
\newtheorem{claim}[theorem]{טענה}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
DependsOn Theorem
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Definition
|
Style Definition
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
LatexName definition
|
LatexName definition
|
||||||
LabelString "Definition #."
|
LabelString "Definition \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
\newtheorem{definition}[theorem]{{\beginR הגדרה}}
|
\newtheorem{definition}[theorem]{הגדרה}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
DependsOn Theorem
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
Style Remarks
|
Style Remarks
|
||||||
CopyStyle Theorem
|
CopyStyle Theorem
|
||||||
LatexName remark
|
LatexName remark
|
||||||
LabelString "Remarks #."
|
LabelString "הערות \thetheorem."
|
||||||
Preamble
|
Preamble
|
||||||
\newtheorem{remark}[theorem]{{\beginR הערה}}
|
\newtheorem{remark}[theorem]{הערה}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
DependsOn Theorem
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
@ -131,7 +134,7 @@ Style Proof
|
|||||||
EndFont
|
EndFont
|
||||||
Preamble
|
Preamble
|
||||||
\newenvironment{proof}%
|
\newenvironment{proof}%
|
||||||
{{\beginR \textbf{הוכחה:}}}%
|
{\textbf{הוכחה:}}%
|
||||||
{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
|
{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user