]> git.lyx.org Git - lyx.git/blob - lib/layouts/slides.layout
0e59c32fc24be6f8cc4c42cd0782463443f36ebf
[lyx.git] / lib / layouts / slides.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{slides (default)}
3 # Slides textclass definition file.
4 # Author : John Weiss <jpweiss@idsi.net>
5 #
6 # Based on the Article textclass "article.layout"
7 #
8
9 # General textclass parameters
10 Columns        1
11 Sides          1
12 PageStyle      Plain
13 MaxCounter     Counter_EnumI
14
15 DefaultFont
16   Family       Sans
17   Series       Medium
18   Shape        Up
19   Size         Largest
20   Color        None
21 EndFont
22
23 ClassOptions
24   FontSize   |
25   Pagestyle  plain|headings|empty
26   Other      "dvips"
27 End
28
29
30 #####################################
31 #
32 #  Layout-specific preamble
33 #
34 #####################################
35
36
37 Preamble
38   \newcounter{slidetype}
39   \setcounter{slidetype}{0}
40   \newif\ifLyXsNoCenter
41   \LyXsNoCenterfalse
42   \newcommand{\noslidecentering}{
43      \LyXsNoCentertrue%
44   }
45   \newcommand{\slidecentering}{
46      \LyXsNoCenterfalse%
47   }
48   \newcommand{\lyxendslide}[1]{
49      \ifLyXsNoCenter%
50           \vfill%
51      \fi%
52      \ifcase \value{slidetype}%
53           \or % no action for 0
54           \end{slide} \or%
55           \end{overlay} \or%
56           \end{note}%
57      \fi%
58      \setcounter{slidetype}{0}
59         \visible
60   }
61   \AtEndDocument{\lyxendslide{.}}
62 EndPreamble
63
64
65 ############################
66 #
67 # Standard style definition
68 # Always comes first.
69 #
70 ############################
71
72 Style Standard
73   Margin            Static
74   LatexType         Paragraph
75   LatexName         dummy
76   ParIndent         M
77   ParSkip           0.4
78   Align             Block
79   AlignPossible     Block, Left, Right, Center
80   LabelType         No_Label
81 End
82
83
84
85 ##############################
86 #
87 # New Definitions for Slides
88 #
89 ##############################
90
91 # Slide style definition
92 Style Slide
93   LatexType         Command
94   LatexName         lyxnewslide
95   KeepEmpty         1
96   Margin            Static
97   NextNoIndent      1
98   ParSkip           0.4
99   TopSep            1.0
100   BottomSep         1.0
101   ParSep            0.5
102   Align             Left
103   AlignPossible     Left
104   LabelType         Static
105   LabelBottomSep    0.5
106   LeftMargin        MMMMxMMMMxxxNewSlide
107   LabelString       "_____________________________NewSlide: "
108
109   Font 
110     Family          Typewriter
111     Series          Bold
112     Size            Large
113     Color           Blue
114   EndFont
115   LabelFont 
116     Family          Typewriter
117     Size            Large
118     Color           Blue
119   EndFont
120
121   Preamble
122   \newcommand{\lyxnewslide}[1]{
123      \lyxendslide{.}
124      \setcounter{slidetype}{1}
125      \begin{slide}
126   }
127   EndPreamble
128 End
129
130 # Overlay style definition
131 Style Overlay
132   LatexType         Command
133   LatexName         lyxnewoverlay
134   KeepEmpty         1
135   Margin            Static
136   NextNoIndent      1
137   ParSkip           0.4
138   TopSep            1.0
139   BottomSep         1.0
140   ParSep            0.5
141   Align             Left
142   AlignPossible     Left
143   LabelType         Static
144   LabelBottomSep    0.5
145   LeftMargin        MMMMxNewOverlay
146   LabelString       "- - - - - - - - - - NewOverlay: "
147
148   Font 
149     Family          Typewriter
150     Series          Bold
151     Size            Large
152     Shape                       SmallCaps
153     Color           Magenta
154   EndFont
155   LabelFont 
156     Family          Typewriter
157     Series          Bold
158     Size            Large
159     Shape                       SmallCaps
160     Color           Magenta
161   EndFont
162
163   Preamble
164   \newcommand{\lyxnewoverlay}[1]{
165      \lyxendslide{.}
166      \setcounter{slidetype}{2}
167      \begin{overlay}
168   }
169   EndPreamble
170 End
171
172 ## Note style definition
173 Style Note
174   LatexType         Command
175   LatexName         lyxnewnote
176   KeepEmpty         1
177   Margin            Static
178   NextNoIndent      1
179   ParSkip           0.4
180   TopSep            1.0
181   BottomSep         1.0
182   ParSep            0.5
183   Align             Left
184   AlignPossible     Left
185   LabelType         Static
186   LabelBottomSep    0.5
187   LeftMargin        MMMMxMMxxNewNote
188   LabelString       "........................NewNote: "
189
190   Font 
191     Family          Typewriter
192     Series          Bold
193     Size            Large
194     Shape                       Italic
195     Color           Magenta
196   EndFont
197   LabelFont 
198     Family          Typewriter
199     Series          Bold
200     Size            Large
201     Shape                       Italic
202     Color           Magenta
203   EndFont
204
205   Preamble
206   \newcommand{\lyxnewnote}[1]{
207      \lyxendslide{.}
208      \setcounter{slidetype}{3}
209      \begin{note}
210   }
211   EndPreamble
212 End
213
214 ## Invisible environment
215 Style InvisibleText
216   LatexType         Command
217   LatexName         lyxinvisible
218   KeepEmpty         1
219   Margin            Static
220   Align             Center
221   AlignPossible     Center
222   LabelType         Static
223   LabelString       "<Invisible Text Follows>"
224
225   Font 
226     Family          Roman
227     Size            Normal
228     Color           Cyan
229   EndFont
230   LabelFont 
231     Family          Roman
232     Size            Normal
233     Color           Cyan
234   EndFont
235
236   Preamble
237   \newcommand{\lyxinvisible}[1]{
238      \invisible
239   }
240   EndPreamble
241 End
242
243 ## Visible environment
244 Style VisibleText
245   LatexType         Command
246   LatexName         lyxvisible
247   KeepEmpty         1
248   Margin            Static
249   Align             Center
250   AlignPossible     Center
251   LabelType         Static
252   LabelString       "<Visible Text Follows>"
253
254   Font 
255     Family          Roman
256     Size            Normal
257     Color           Green
258   EndFont
259   LabelFont 
260     Family          Roman
261     Size            Normal
262     Color           Green
263   EndFont
264
265   Preamble
266   \newcommand{\lyxvisible}[1]{
267      \visible
268   }
269   EndPreamble
270 End
271
272 ########################################################################
273 #
274 # Definitions taken from article.layout.
275 #
276 #  Note that the "Section" family of environments is missing, as is
277 #  "Title" "Bibliograpy" "LaTeX-Title" "Author" "Abstract" and "Date".
278 #
279 #  I may choose to reintroduce these and/or remove others at a later
280 #  date.
281
282 #  -jw 10/2/96
283 #
284 ########################################################################
285
286 Input stdlists.inc
287 Input stdlayouts.inc
288 Input lyxmacros.inc
289 #Input obsolete.inc
290
291 # Style definition for end of a slide
292 Style End_All_Slides
293   ObsoletedBy       Comment
294 End
295
296 NoStyle Address
297 NoStyle Right_Address
298
299
300
301
302 #############
303 #
304 # End  File