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