]> git.lyx.org Git - lyx.git/blob - lib/layouts/slides.layout
Change LFUN_FONT_CODE to LFUN_FONT_TYPEWERITER, possibly in preparation for a move...
[lyx.git] / lib / layouts / slides.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{presentation (slides)}
3 # Slides textclass definition file.
4 # Author : John Weiss <jpweiss@idsi.net>
5 #
6 # Based on the Article textclass "article.layout"
7 #
8
9
10 Format 5
11 Columns        1
12 Sides          1
13 PageStyle      Plain
14
15
16 DefaultFont
17         Family       Sans
18         Series       Medium
19         Shape        Up
20         Size         Largest
21         Color        None
22 EndFont
23
24
25 ClassOptions
26         FontSize   |
27         Pagestyle  plain|headings|empty
28         Other      "dvips"
29 End
30
31
32 Preamble
33         \newcounter{slidetype}
34         \setcounter{slidetype}{0}
35         \newif\ifLyXsNoCenter
36         \LyXsNoCenterfalse
37         \newcommand{\noslidecentering}{
38            \LyXsNoCentertrue%
39         }
40         \newcommand{\slidecentering}{
41            \LyXsNoCenterfalse%
42         }
43         \newcommand{\lyxendslide}[1]{
44            \ifLyXsNoCenter%
45                 \vfill%
46            \fi%
47            \ifcase \value{slidetype}%
48                 \or % no action for 0
49                 \end{slide} \or%
50                 \end{overlay} \or%
51                 \end{note}%
52            \fi%
53            \setcounter{slidetype}{0}
54               \visible
55         }
56         \AtEndDocument{\lyxendslide{.}}
57 EndPreamble
58
59
60 Style Standard
61         Margin            Static
62         LatexType         Paragraph
63         LatexName         dummy
64         ParIndent         M
65         ParSkip           0.4
66         Align             Block
67         AlignPossible     Block, Left, Right, Center
68         LabelType         No_Label
69 End
70
71
72 #  Note that the "Section" family of environments is missing, as is
73 #  "Title" "Bibliograpy" "LaTeX-Title" "Author" "Abstract" and "Date".
74 #  I may choose to reintroduce these and/or remove others at a later
75 #  date.
76 #  -jw 10/2/96
77
78 Input stdinsets.inc
79 Input stdlists.inc
80 Input stdlayouts.inc
81 Input lyxmacros.inc
82 Input stdcounters.inc
83 Input stdfloats.inc
84
85 NoStyle Address
86 NoStyle Right_Address
87
88
89 Style Slide
90         LatexType         Command
91         LatexName         lyxnewslide
92         KeepEmpty         1
93         Margin            Static
94         NextNoIndent      1
95         ParSkip           0.4
96         TopSep            1.0
97         BottomSep         1.0
98         ParSep            0.5
99         Align             Left
100         AlignPossible     Left
101         LabelType         Static
102         LabelBottomSep    0.5
103         LabelSep          xx
104         LeftMargin        "New Slide:xx"
105         LabelString       "New Slide:"
106         Font
107           Family          Typewriter
108           Series          Bold
109           Size            Large
110           Color           Blue
111         EndFont
112         LabelFont
113           Family          Typewriter
114           Size            Large
115           Color           Blue
116         EndFont
117         Preamble
118                 \newcommand{\lyxnewslide}[1]{
119                          \lyxendslide{.}
120                          \setcounter{slidetype}{1}
121                          \begin{slide}
122                 }
123         EndPreamble
124 End
125
126
127 Style Overlay
128         LatexType         Command
129         LatexName         lyxnewoverlay
130         KeepEmpty         1
131         Margin            Static
132         NextNoIndent      1
133         ParSkip           0.4
134         TopSep            1.0
135         BottomSep         1.0
136         ParSep            0.5
137         Align             Left
138         AlignPossible     Left
139         LabelType         Static
140         LabelBottomSep    0.5
141         LabelSep          xx
142         LeftMargin        "New Overlay:xx"
143         LabelString       "New Overlay:"
144         Font
145           Family          Typewriter
146           Series          Bold
147           Size            Large
148           Shape                       SmallCaps
149           Color           Magenta
150         EndFont
151         LabelFont
152           Family          Typewriter
153           Series          Bold
154           Size            Large
155           Shape                       SmallCaps
156           Color           Magenta
157         EndFont
158         Preamble
159                 \newcommand{\lyxnewoverlay}[1]{
160                          \lyxendslide{.}
161                          \setcounter{slidetype}{2}
162                          \begin{overlay}
163                 }
164         EndPreamble
165 End
166
167
168 Style Note
169         LatexType         Command
170         LatexName         lyxnewnote
171         KeepEmpty         1
172         Margin            Static
173         NextNoIndent      1
174         ParSkip           0.4
175         TopSep            1.0
176         BottomSep         1.0
177         ParSep            0.5
178         Align             Left
179         AlignPossible     Left
180         LabelType         Static
181         LabelBottomSep    0.5
182         LabelSep          xx
183         LeftMargin        "New Note:xx"
184         LabelString       "New Note:"
185         Font
186           Family          Typewriter
187           Series          Bold
188           Size            Large
189           Shape                       Italic
190           Color           Magenta
191         EndFont
192         LabelFont
193           Family          Typewriter
194           Series          Bold
195           Size            Large
196           Shape                       Italic
197           Color           Magenta
198         EndFont
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         Font
219           Family          Roman
220           Size            Normal
221           Color           Cyan
222         EndFont
223         LabelFont
224           Family          Roman
225           Size            Normal
226           Color           Cyan
227         EndFont
228         Preamble
229                 \newcommand{\lyxinvisible}[1]{\invisible}
230         EndPreamble
231 End
232
233
234 Style VisibleText
235         LatexType         Command
236         LatexName         lyxvisible
237         KeepEmpty         1
238         Margin            Static
239         Align             Center
240         AlignPossible     Center
241         LabelType         Static
242         LabelString       "<Visible Text Follows>"
243         Font
244           Family          Roman
245           Size            Normal
246           Color           Green
247         EndFont
248         LabelFont
249           Family          Roman
250           Size            Normal
251           Color           Green
252         EndFont
253         Preamble
254                 \newcommand{\lyxvisible}[1]{\visible}
255         EndPreamble
256 End