]> git.lyx.org Git - wiki-uploads.git/blob - Examples/Prosper/prosper.layout
Import uploads from wiki
[wiki-uploads.git] / Examples / Prosper / prosper.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[prosper]{slides (prosper)}
3 # Slides textclass definition file (originally slides.layout).
4 # By:   John Weiss <jpweiss@frontiernet.net>
5 # Modified by:  Christian Ridderström <christian.ridderstrom@home.se>
6 # jw:   Based on the Article textclass "article.layout"
7 # Chr:  Added paragraph style 'institution'
8 # Chr:  Added paragrpah style 'email'
9 # Chr:  Formatted to facilitate side-by-side comparison with prosper-by-Dekel.layout
10 #
11 #
12 # Structure, use the command:
13 #       grep '\(^Style\)\|\(^Input\)\|\(^NoStyle\)' prosper-by-Weiss.layout | sed "  s/^/#      /"
14 # Paragraph styles, no-styles and input-statements:
15 #       Style Standard
16 #       Style Slide
17 #       Input embedMovies.inc
18 #       Input theorem.inc
19 #       Input stdtitle.inc
20 #       Input stdlists.inc
21 #       Input stdcounters.inc
22 #       Input stdlayouts.inc
23 #       Style Overlay
24 #       Style Note
25 #       Style InvisibleText
26 #       Style VisibleText
27 #       Style Institution
28 #       Style E-mail
29 #       Input lyxmacros.inc
30 #       NoStyle Address
31 #       NoStyle Right_Address
32 #       Style Subtitle
33 #       Style End_All_Slides
34 #
35 #
36
37 # General textclass parameters
38
39 ClassOptions
40   FontSize   |
41   Pagestyle  plain|headings|empty
42   Other      "dvips"
43 End
44
45 Columns        1
46 Sides          1
47 PageStyle      Plain
48 MaxCounter     Counter_EnumI
49
50 DefaultFont
51   Family       Sans
52   Series       Medium
53   Shape        Up
54   Size         Normal
55   Color        None
56 EndFont
57
58
59 #####################################
60 #
61 #  Layout-specific preamble
62 #
63 #####################################
64
65
66 Preamble
67   \newtheorem{theorem}{Theorem}% Hack, define theorem, needed by theorem.inc
68   \newtheorem{proof}{Proof}% Hack, define proof, needed by theorem.inc
69
70   \newcounter{slidetype}
71   \setcounter{slidetype}{0}
72   \newcommand{\lyxendslide}[1]{
73      \ifcase \value{slidetype}%
74           \or % no action for 0
75           \end{slide} \or%
76           \end{overlay} \or%
77           \end{note}%
78      \fi%
79      \setcounter{slidetype}{0}
80   }
81   \AtEndDocument{\lyxendslide{.}}
82
83   \newcommand{\ov}[2]{\lyxendslide{.}\overlays{#1}{#2\lyxendslide{.}}}
84
85   % Dekel uses package amsthm
86   % and does some additional stuff related to that
87   %
88
89
90
91
92
93
94 EndPreamble
95
96
97 ############################
98 #
99 # Standard style definition
100 # Always comes first.
101 #
102 ############################
103
104 Style Standard
105   Margin            Static
106   LatexType         Paragraph
107   LatexName         dummy
108   ParIndent         M
109   ParSkip           0.4
110   Align             Block
111   AlignPossible     Block, Left, Right, Center
112   LabelType         No_Label
113 End
114
115 ##############################
116 #
117 # New Definitions for Slides
118 #
119 ##############################
120
121 Style Slide
122   LatexType         Command
123   LatexName         lyxnewslide
124   Margin            Static
125   NextNoIndent      1
126   KeepEmpty         1
127
128   ParSkip           0.4
129   TopSep            1.0
130   BottomSep         1.0
131   ParSep            0.5
132   Align             Left
133   AlignPossible     Left
134   LabelType         Static
135   LabelBottomSep    0.5
136   LeftMargin        Slide:
137   LabelString       "Slide: "
138
139   Font 
140     Family          Sans
141     Series          Bold
142     Size            Large
143     Color           Blue
144   EndFont
145   LabelFont 
146     Family          Sans
147     Size            Normal
148     Color           Blue
149   EndFont
150
151   Preamble
152   \newcommand{\lyxnewslide}[1]{
153      \lyxendslide{.}
154      \setcounter{slidetype}{1}
155      \begin{slide}{{#1}}
156   }
157   EndPreamble
158 End
159
160 Input embedMovies.inc
161 Input theorem.inc
162
163 Input stdtitle.inc
164 Input stdlists.inc
165 Input stdcounters.inc
166 Input stdlayouts.inc
167
168
169 Style Overlay
170   LatexType         Command
171   LatexName         lyxnewoverlay
172   KeepEmpty         1
173   Margin            Static
174   NextNoIndent      1
175   ParSkip           0.4
176   TopSep            1.0
177   BottomSep         1.0
178   ParSep            0.5
179   Align             Left
180   AlignPossible     Left
181   LabelType         Static
182   LabelBottomSep    0.5
183   LeftMargin        MMMMxNewOverlay
184   LabelString       "- - - - - - - - - - NewOverlay: "
185
186   Font 
187     Family          Typewriter
188     Series          Bold
189     Size            Large
190     Shape                       SmallCaps
191     Color           Magenta
192   EndFont
193   LabelFont 
194     Family          Typewriter
195     Series          Bold
196     Size            Normal
197     Shape           SmallCaps
198     Color           Magenta
199   EndFont
200
201   Preamble
202   \newcommand{\lyxnewoverlay}[1]{
203      \lyxendslide{.}
204      \setcounter{slidetype}{2}
205      \begin{overlay}{#1}
206   }
207   EndPreamble
208 End
209
210
211 Style Note
212   LatexType         Command
213   LatexName         lyxnewnote
214   KeepEmpty         1
215   Margin            Static
216   NextNoIndent      1
217   ParSkip           0.4
218   TopSep            1.0
219   BottomSep         1.0
220   ParSep            0.5
221   Align             Left
222   AlignPossible     Left
223   LabelType         Static
224   LabelBottomSep    0.5
225   LeftMargin        MMMMxMMxxNote
226   LabelString       "........................Note: "
227
228   Font 
229     Family          Typewriter
230     Series          Bold
231     Size            Large
232     Shape                       Italic
233     Color           Magenta
234   EndFont
235   LabelFont 
236     Family          Typewriter
237     Series          Bold
238     Size            Normal
239     Shape                       Italic
240     Color           Magenta
241   EndFont
242
243   Preamble
244   \newcommand{\lyxnewnote}[1]{
245      \lyxendslide{.}
246      \setcounter{slidetype}{3}
247      \begin{note}{#1}
248   }
249   EndPreamble
250 End
251
252
253 Style InvisibleText
254   LatexType         Command
255   LatexName         lyxinvisible
256   KeepEmpty         1
257   Margin            Static
258   Align             Center
259   AlignPossible     Center
260   LabelType         Static
261   LabelString       "<Invisible Text Follows>"
262
263   Font 
264     Family          Roman
265     Size            Normal
266     Color           Cyan
267   EndFont
268   LabelFont 
269     Family          Roman
270     Size            Normal
271     Color           Cyan
272   EndFont
273
274   Preamble
275   \newcommand{\lyxinvisible}[1]{
276      \invisible
277   }
278   EndPreamble
279 End
280
281
282 Style VisibleText
283   LatexType         Command
284   LatexName         lyxvisible
285   KeepEmpty         1
286   Margin            Static
287   Align             Center
288   AlignPossible     Center
289   LabelType         Static
290   LabelString       "<Visible Text Follows>"
291
292   Font 
293     Family          Roman
294     Size            Normal
295     Color           Green
296   EndFont
297   LabelFont 
298     Family          Roman
299     Size            Normal
300     Color           Green
301   EndFont
302
303   Preamble
304   \newcommand{\lyxvisible}[1]{
305      \visible
306   }
307   EndPreamble
308 End
309
310
311 Style Institution
312   CopyStyle Author
313   LatexName institution
314 End
315
316
317 Style E-mail
318   CopyStyle Author
319   LatexName email
320   Font 
321     Family          Roman
322     Size            normal
323   EndFont
324 End
325
326
327 Input lyxmacros.inc
328 NoStyle Address
329 NoStyle Right_Address
330
331
332 Style Subtitle
333   Margin                Static
334   LatexType             Command
335   InTitle               1
336   LatexName             subtitle
337   ParSkip               0.4
338   ItemSep               0
339   TopSep                0
340   BottomSep             1
341   ParSep                1
342   Align                 Center
343   AlignPossible         Center
344   LabelType             No_Label
345
346   # standard font definition
347   Font 
348     Size                Large
349   EndFont
350 End
351
352
353 Style End_All_Slides
354   ObsoletedBy       Comment
355 End
356