]> git.lyx.org Git - lyx.git/blob - lib/layouts/heb-article.layout
Fix display of counters for included listings.
[lyx.git] / lib / layouts / heb-article.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[article,theorem.sty]{Hebrew Article}
3 #  \DeclareCategory{Articles}
4 # Hebrew article textclass definition file.
5 # Author: Dekel Tsur <dekel@math.tau.ac.il>
6 # Few changes by Baruch Even <baruch.even@writeme.com>
7 # Edited by Udi Fogiel <udifoglle@gmail.com>
8
9 Format 104
10 Input article
11
12 Counter theorem
13         Within  section
14         RefFormat thm "Theorem \thesection.\arabic{theorem}"
15         RefFormat cor "Corollary \thesection.\arabic{theorem}"
16         RefFormat lem "Lemma \thesection.\arabic{theorem}"
17         RefFormat claim "Claim \thesection.\arabic{theorem}"
18         RefFormat def "Definition \thesection.\arabic{theorem}"
19         RefFormat rem "Remark \thesection.\arabic{theorem}"
20 End
21
22 Style Theorem
23         Category              Reasoning
24         Margin                First_Dynamic
25         LatexType             Environment
26         LatexName             theorem
27         NextNoIndent          1
28         LabelSep              xx
29         ParIndent             MMM
30         ParSkip               0.4
31         ItemSep               0.2
32         TopSep                0.7
33         BottomSep             0.7
34         ParSep                0.3
35         Align                 Block
36         AlignPossible         Block, Left
37         LabelType             Static
38         LabelString           "Theorem \thetheorem."
39         LabelCounter            theorem
40         Font
41           Shape               Up
42           Size                Normal
43         EndFont
44         LabelFont
45           Shape               Up
46           Series              Bold
47         EndFont
48         Preamble
49                 \usepackage{theorem}
50                 \theorembodyfont{\upshape}
51                 \newtheorem{theorem}{משפט}[section]
52                 % Only needed by babel-hebrew
53                 \AtBeginDocument{\@ifundefined{make@lr}{}{%
54                   \make@lr\thetheorem
55                 }}
56         EndPreamble
57 End
58
59
60 Style Lemma
61         CopyStyle             Theorem
62         LatexName             lemma
63         LabelString           "Lemma \thetheorem."
64         Preamble
65                 \newtheorem{lemma}[theorem]{למה}
66         EndPreamble
67         DependsOn Theorem
68 End
69
70
71 Style Corollary
72         CopyStyle             Theorem
73         LatexName             corollary
74         LabelString           "Corollary \thetheorem."
75         Preamble
76                 \newtheorem{corollary}[theorem]{מסקנה}
77         EndPreamble
78         DependsOn Theorem
79 End
80
81
82 Style Claim
83         CopyStyle             Theorem
84         LatexName             claim
85         LabelString           "Claim \thetheorem."
86         Preamble
87                 \newtheorem{claim}[theorem]{טענה}
88         EndPreamble
89         DependsOn Theorem
90 End
91
92
93 Style Definition
94         CopyStyle             Theorem
95         LatexName             definition
96         LabelString           "Definition \thetheorem."
97         Preamble
98                 \newtheorem{definition}[theorem]{הגדרה}
99         EndPreamble
100         DependsOn Theorem
101 End
102
103
104 Style Remarks
105         CopyStyle             Theorem
106         LatexName             remark
107         LabelString           "Remarks \thetheorem."
108         Preamble
109             \newtheorem{remark}[theorem]{הערה}
110         EndPreamble
111         DependsOn Theorem
112 End
113
114
115 Style Proof
116         Category              Reasoning
117         Margin                First_Dynamic
118         LatexType             Environment
119         LatexName             proof
120         NextNoIndent          1
121         LabelSep              xx
122         ParIndent             MMM
123         ParSkip               0.4
124         ItemSep               0.2
125         TopSep                0.7
126         BottomSep             0.7
127         ParSep                0.3
128         Align                 Block
129         AlignPossible         Block, Left
130         LabelType             Static
131         LabelString           "Proof:"
132         EndLabelType          Filled_Box
133         Font
134           Shape               Up
135           Size                Normal
136         EndFont
137         LabelFont
138           Shape               Up
139           Series              Bold
140         EndFont
141         Preamble
142                 \newenvironment{proof}%
143                         {\textbf{הוכחה:}}%
144                         {\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
145         EndPreamble
146 End
147
148 Input theorems-refprefix.inc