]> git.lyx.org Git - lyx.git/blob - lib/layouts/svcommon.inc
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / svcommon.inc
1 # svcommon (article) textclass definition file for inclusion.
2 # for Springer Verlag publications
3 # based on sjour.inc:
4 #     --------
5 #     Taken from initial LyX source code
6 #     Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
7 #     Transposed by Pascal André <andre@via.ecp.fr>
8 #     Heavily modified and enhanced by several developers.
9 #     --------
10 #     ejour2 made originally by Martin Vermeer based on article.layout.
11 #     Modified for LyX 1.2 by Jean-Marc Lasgouttes and MV.
12 #     Minor change for LyX 1.3.3 by Cengiz Gunay.
13 #
14 #     Adapted for new svjour LaTeX2e classes published by Springer in 1999;
15 #     work done by MV in 2000.
16 #
17 # Adapted for svmono, svmult, and svjour3 2011
18 # by Marcus Kriele (mkriele@mac.com) and Uwe Stöhr
19 # see http://www.springer.com/authors for class files and further instructions
20
21
22 Format 99
23 PageStyle               Plain
24
25
26 Style Standard
27         Category        MainText
28         Margin          Static
29         LatexType       Paragraph
30         LatexName       dummy
31         ParIndent       MM
32         ParSkip         0.4
33         Align           Block
34         AlignPossible   Block, Left, Right, Center
35         LabelType       No_Label
36         DocBookTag             para
37 End
38
39 Input stdcounters.inc
40 Input stdfloats.inc
41 Input stdlists.inc
42 Input stdinsets.inc
43 Input stdsections.inc
44 Input stdstarsections.inc
45 Input stdlayouts.inc
46 Input stdtitle.inc
47 Input numreport.inc
48
49 ProvidesModule theorems-std
50 Input theorems-without-preamble.inc
51 NoStyle Fact
52 NoStyle Prop
53
54 NoCounter subparagraph
55 NoStyle Subparagraph*
56
57
58 Style Title
59         Align           Left
60         AlignPossible   Block, Center, Left, Right
61         Font
62           Family        Sans
63           Series        Bold
64         EndFont
65         DocBookTag            title
66         DocBookTagType        paragraph
67         DocBookInInfo         maybe
68 End
69
70
71
72 Style Front_Matter
73         Category        Structure
74         LatexType       Command
75         LatexName       frontmatter
76         KeepEmpty       1
77         ResetArgs       1
78         Margin          First_Dynamic
79         NextNoIndent    1
80         ParSkip         0
81         TopSep          2.5
82         BottomSep       0.5
83         ParSep          0
84         Align           Center
85         LabelType       Static
86         LabelBottomSep  0
87         LeftMargin      M
88         LabelString     "--- Front Matter ---"
89
90         Font
91           Family        Sans
92           Series        Bold
93           Size          Largest
94           Color         textlabel1
95         EndFont
96 End
97
98 Style Main_Matter
99         CopyStyle       Front_Matter
100         Category        Structure
101         LatexName       mainmatter
102         LabelString     "--- Main Matter ---"
103 End
104
105 Style Back_Matter
106         CopyStyle       Front_Matter
107         Category        Structure
108         LatexName       backmatter
109         LabelString     "--- Back Matter ---"
110 End
111
112 Style Part
113         Margin          Static
114         Align           Right
115         DocBookTag            title
116         DocBookTagType        paragraph
117         DocBookSectionTag     part
118         DocBookInInfo         maybe
119         DocBookForceAbstractTag partintro
120 End
121
122 ## The following is a variant of style Part.  It allows to place some
123 ## text on the following page which would otherwise be blank.  
124
125 Style PartBacktext
126         Category        Sectioning
127         Margin          First_Dynamic
128         LabelString     "Part \thepart"
129         LabelType       Static
130         TocLevel        0
131         LabelCounter    part
132         Labelsep        xx
133         NeedProtect     1
134         ParIndent       MM
135         TopSep          4
136         BottomSep       4
137         LaTexType       Environment
138         LatexName       svmultpartbacktext
139         LabelFont
140           Series        Bold
141           Size          Huge
142         EndFont
143         TextFont
144           Series        Medium
145           Shape         Up
146           Size          normal
147         EndFont
148         Argument 1
149           Mandatory     1
150           LabelString   "Part Title"
151           Tooltip           "Title of this part"
152           IsTocCaption  1
153           DocBookTag    title
154         EndArgument
155         Preamble
156           \newenvironment{svmultpartbacktext}[1]{\begin{partbacktext}
157           \part{#1}}{\end{partbacktext}}
158         EndPreamble
159         HTMLTag         h1
160         DocBookTag            NONE
161         DocBookSection        true
162         DocBookSectionTag     part
163         # A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement). This ought to be enough for now, even though the document cannot be valid.
164 End
165
166 Style Chapter
167         Align           Left
168         DocBookTag            title
169         DocBookTagType        paragraph
170         DocBookInInfo         maybe
171         DocBookSectionTag     chapter
172         TocLevel 0
173 End
174
175 Style ChapSubtitle
176         LatexName       chapsubtitle
177         LatexType       Command
178         Category        Sectioning
179         TopSep          0.7
180         Font
181           Series        Bold
182           Shape         Up
183           Size          large
184         EndFont
185         DocBookTag            subtitle
186
187 End
188
189 Style ChapAuthor
190         LatexName       chapauthor
191         LatexType       Command
192         Category        Sectioning
193         TopSep          0.7
194         Font
195           Series        Bold
196           Shape         Up
197           Size          normal
198         EndFont
199         DocBookTag            personname
200         DocBookTagType        paragraph
201         DocBookWrapperTag     author
202         DocBookInInfo         always
203 End
204
205 Style ChapMotto
206         LatexName       motto
207         LatexType       Command
208         Category        Sectioning
209         TopSep          0.7
210         BottomSep       0.7
211         Align           Left
212         LeftMargin      MMMMMMMMMMMM
213         Font
214           Series        Medium
215           Shape         Italic
216           Size          normal
217         EndFont
218 End
219
220 Style Section
221         Font
222           Series        Bold
223           Shape         Up
224           Size          large
225         EndFont
226         TocLevel        1
227 End
228
229 Style Subsection
230         Font
231           Series        Bold
232           Shape         Italic
233           Size          large
234         EndFont
235         TocLevel        2
236 End
237
238 Style Subsubsection
239         Font
240           Series        Bold
241           Shape         Up
242           Size          Normal
243         EndFont
244         TocLevel        3
245 End
246
247 Style Paragraph
248         Font
249           Series        Medium
250           Shape         Up
251           Size          Normal
252         EndFont
253         TopSep          0.7
254         BottomSep       0.4
255         TocLevel        4
256 End
257
258 Style Subparagraph
259         LeftMargin      ""
260         Font
261           Series        Medium
262           Shape         Italic
263           Size          Normal
264         EndFont
265         TopSep          0.7
266         BottomSep       0.4
267         TocLevel        4
268 End
269
270 Style Part*
271       Margin            Static
272       Align             Right
273 End
274
275 Style Chapter*
276         Align           Left
277 End
278
279 Style Section*
280         Font
281           Series        Bold
282           Shape         Up
283           Size          large
284         EndFont
285 End
286
287 Style Subsection*
288         Font
289           Series        Bold
290           Shape         Italic
291           Size          large
292         EndFont
293 End
294
295 Style Subsubsection*
296         Font
297           Series        Bold
298           Shape         Up
299           Size          Normal
300         EndFont
301 End
302
303 Style Paragraph*
304         Font
305           Series        Medium
306           Shape         Up
307           Size          Normal
308         EndFont
309         TopSep          0.7
310         BottomSep       0.4
311 End
312
313 Style Run-in_headings
314         Category        Unnumbered
315         LabelType       No_Label
316         LabelSep        xx
317         TopSep          0.7
318         Font
319           Series        Bold
320           Shape         Up
321           Size          Normal
322         EndFont
323         Margin          Static
324         LatexType       Command
325         LatexName       runinhead
326 End
327
328 Style Sub-run-in_headings
329         CopyStyle       Run-in_headings
330         Font 
331           Series        Medium
332           Shape         Italic
333           Size          Normal
334         EndFont
335         LatexName       subruninhead
336 End
337
338 Style Extrachap
339         CopyStyle       Chapter*
340         LatexName       Extrachap
341 End
342
343 Style extrachap
344         CopyStyle       Chapter*
345         LatexName       extrachap
346 End
347
348 Style Title
349         Align           Left
350         AlignPossible   Block, Center, Left, Right, Center
351         Font
352           Family        Sans
353           Series        Bold
354         EndFont
355 End
356
357 Style Subtitle
358         CopyStyle       Title
359         LatexName       subtitle
360         NextNoIndent    1
361         BottomSep       0
362         ParSep          0
363         Font
364           Size          Large
365         EndFont
366         DocBookTag            subtitle
367         DocBookTagType        paragraph
368         DocBookInInfo         maybe
369 End
370
371 Style Author
372         NextNoIndent    1
373         Align           Left
374         Font
375           Series        Bold
376           Shape         Italic
377         EndFont
378         DocBookTag            personname
379         DocBookTagType        paragraph
380         DocBookWrapperTag     author
381         DocBookWrapperTagType inline
382         DocBookInInfo         always
383 End
384
385 Style Institute
386         Category        FrontMatter
387         LatexType       Command
388         InTitle         1
389         LatexName       institute
390         Margin          First_Dynamic
391         LabelSep        x
392         LabelType       Static
393         LabelString     "Author data:"
394         LabelFont
395           Family        Typewriter
396           Color         textlabel1
397         EndFont
398         Requires        url
399         Align           Left
400         # TODO: should rather be merged with the list of authors, but this would require a lot of specific code...
401         DocBookTag            personname
402         DocBookTagType        paragraph
403         DocBookWrapperTag     author
404         DocBookInInfo         always
405 End
406
407 Style Date
408         Align           Left
409         Font
410           Size          Small
411         EndFont
412 End
413
414 Style TOC_Title
415         Category        FrontMatter
416         Margin          First_Dynamic
417         Align           Left
418         LatexType       Command
419         LatexName       toctitle
420         LeftMargin      xx
421         TopSep          0.4
422         BottomSep       0.4
423         LabelType       Static
424         LabelSep        x
425         LabelString     "TOC title:"
426         LabelFont
427           Family        Typewriter
428           Color         textlabel1
429         EndFont  
430 End
431
432 Style TOC_Author
433         CopyStyle       TOC_Title
434         LatexName       tocauthor
435         LabelString     "TOC author:"
436 End
437
438 Style Running_Title
439         CopyStyle       TOC_Title
440         LatexName       titlerunning
441         InTitle         1
442         LabelString     "Running title:"
443         DocBookTag            titleabbrev
444         DocBookTagType        paragraph
445         DocBookInInfo         maybe
446 End
447
448 Style Running_Author
449         CopyStyle       Running_Title
450         LatexName       authorrunning
451         LabelString     "Running author:"
452         DocBookTag            personname
453         DocBookTagType        paragraph
454         DocBookWrapperTag     author
455         DocBookWrapperAttr    role='abbrev'
456         DocBookWrapperTagType block
457         DocBookInInfo         always
458 End
459
460 Style Running_Chapter
461         CopyStyle       Running_Title
462         Category        Sectioning
463         InTitle         0
464         LatexName       chaptermark
465         LabelString     "Running chapter:"
466         DocBookTag            titleabbrev
467         DocBookTagType        paragraph
468         DocBookInInfo         maybe
469         DocBookSection        false
470 End
471
472 Style Running_Section
473         CopyStyle       Running_Chapter
474         LatexName       sectionmark
475         LabelString     "Running section:"
476         DocBookTag            titleabbrev
477         DocBookTagType        paragraph
478         DocBookInInfo         maybe
479 End
480
481 Style Abstract
482         Category        FrontMatter
483         Margin          First_Dynamic
484         LatexType       Environment
485         LatexName       abstract
486         LabelType       Static
487         LabelString     "Abstract"
488         LabelFont
489           Series        Bold
490         EndFont
491         NextNoIndent    0
492         ParIndent       MM
493         LabelSep        xx
494         ItemSep         0
495         TopSep          0.7
496         BottomSep       0.7
497         ParSep          0
498         Align           Block
499         AlignPossible   Block, Left
500         DocBookAbstract       true
501         DocBookInInfo         always
502         DocBookWrapperTag     abstract
503         DocBookWrapperMergeWithPrevious    true
504         DocBookTag            para
505 End
506
507 Style Abstract*
508         CopyStyle       Abstract
509         LatexType       Command
510         LatexName       abstract*
511         LabelString     "Abstract* (not printed)"
512         LabelFont
513           Color         textlabel1
514         EndFont
515         TextFont        
516           Color         textlabel1
517         EndFont
518         DocBookAbstract       true
519         DocBookInInfo         always
520         DocBookWrapperTag     abstract
521         DocBookWrapperAttr    role='not-printed'
522         DocBookWrapperMergeWithPrevious    true
523         DocBookTag            para
524 End
525
526 Style Keywords
527         Margin          First_Dynamic
528         LatexType       Command
529         LatexName       keywords
530         Category        FrontMatter
531         NextNoIndent    0
532         ParIndent       MM
533         LabelSep        xx
534         ItemSep         0
535         TopSep          0.7
536         BottomSep       0.7
537         ParSep          0
538         Align           Block
539         AlignPossible   Block, Left
540         LabelType       Static
541         LabelString     "Keywords"
542         LabelFont
543           Series        Bold
544         EndFont
545         DocBookTag          keyword
546         DocBookTagType      paragraph
547         DocBookWrapperTag   keywordset
548         DocBookInInfo       always
549 End
550
551 Style Dedication
552         Category        FrontMatter
553         Margin          Static
554         LatexType       Environment
555         LatexName       dedication
556         LeftMargin      MMMMMMMMMMMM
557         TopSep          2
558         ParIndent       MM
559         Parsep          0
560         BottomSep       2
561         Align           Left
562         LabelType       Static
563         LabelString     ""
564         LabelIndent     ""
565         Font
566           Shape         Italic
567           Size          large
568         EndFont
569         DocBookTag             para
570         DocBookTagType         paragraph
571         DocBookWrapperTag      dedication
572         DocBookWrapperTagType  block
573         DocBookWrapperMergeWithPrevious    true
574         DocBookInInfo          never
575 End
576
577 Style Foreword
578         Margin          First_Dynamic
579         Category        FrontMatter
580         LabelType       Static
581         LabelString     "Foreword"
582         KeepEmpty       1
583         LatexName       foreword
584         TocLevel        0
585         LatexType       Command
586         NeedProtect     1
587         NextNoIndent    1
588         ParSkip         0.4
589         TopSep          4
590         BottomSep       0.8
591         ParSep          0.8
592         Align           Block
593         Argument 1
594           LabelString   "Alternative Name"
595           Tooltip       "Alternative name"
596         EndArgument
597         Font
598           Series        Bold
599           Size          Huge
600         EndFont
601         DocBookTag             title
602         DocBookTagType         paragraph
603         DocBookSection         true
604         DocBookSectionTag      preface
605 End
606
607 Style Preface
608         CopyStyle       Foreword
609         Category        FrontMatter
610         LatexName       preface
611         InTitle         0
612         Margin          First_Dynamic
613         TopSep          4
614         BottomSep       0.8
615         LabelType       Static
616         LabelString     "Preface"
617         LabelSep        xx
618         Align           Left
619         DocBookTag             title
620         DocBookTagType         paragraph
621         DocBookSection         true
622         DocBookSectionTag      preface
623 End
624
625 Style Acknowledgement
626         Category        BackMatter
627         Margin          First_Dynamic
628         LatexType       Environment
629         LatexName       acknowledgement
630         NextNoIndent    0
631         ParIndent       MM
632         LabelSep        xx
633         ItemSep         0
634         TopSep          0.7
635         BottomSep       0.7
636         ParSep          0
637         Align           Block
638         AlignPossible   Block, Left
639         LabelType       Static
640         LabelString     "Acknowledgements"
641         Font
642           Size          Small
643         EndFont
644         LabelFont
645           Series        Bold
646           Shape         Up
647           Size          Small
648         EndFont
649         DocBookTag  para
650         DocBookWrapperTag  acknowledgements
651 End
652
653 Style Acknowledgements
654         CopyStyle       Acknowledgement
655         LatexName       acknowledgements
656 End
657
658 Style Bibliography
659         Margin          First_Dynamic
660         LatexType       Bib_Environment
661         LatexName       thebibliography
662         Category        BackMatter
663         NextNoIndent    1
664         ToggleIndent    Never
665         LeftMargin      MM
666         ParSkip         0.4
667         ItemSep         0
668         TopSep          0.7
669         BottomSep       0.7
670         ParSep          0.5
671         Align           Block
672         AlignPossible   Block, Left
673         LabelType       Bibliography
674         LabelString     "References"
675         LabelBottomSep  0.7
676         LabelFont
677           Series        Bold
678         EndFont
679         TocLevel        0
680         IsTocCaption    0
681         Argument listpreamble:1
682           LabelString    "Bib preamble"
683           MenuString     "Bibliography Preamble"
684           Tooltip        "LaTeX code to be inserted before the first bibliography item"
685           PassThru       1
686           Font
687             Family typewriter
688             Color latex
689           EndFont
690         EndArgument
691 End
692
693 Style Description
694         Argument 1
695           LabelString   "Longest Description Label"
696           Tooltip       "Longest description label"
697         EndArgument
698         LabelFont
699           Series        Medium
700         EndFont
701         DocBookTag            variablelist
702         DocBookItemWrapperTag varlistentry
703         DocBookItemTag        listitem
704         DocBookItemInnerTag   para
705         DocBookItemLabelTag   term
706         DocBookItemLabelTagType   paragraph
707 End
708
709 Style Petit
710         CopyStyle       Standard
711         Category        MainText
712         LatexType       Environment
713         LatexName       petit
714         TopSep          0.7
715         BottomSep       0.7
716         Font
717           Size          Small
718         EndFont
719 End
720
721 Style Svgraybox
722         Category        MainText
723         Margin          Static
724         LatexType       Environment
725         LatexName       svgraybox
726         RightMargin     MMM
727         TopSep          0.5
728         ParIndent       MM
729         Parsep          0
730         BottomSep       0.5
731         Align           Block
732         AlignPossible   Block, Left, Right, Center
733         LabelType       No_Label
734         Font
735           Family        Sans
736         EndFont
737 End
738
739 Style Proof
740         Category        Reasoning
741         LatexType       Environment
742         LatexName       proof
743         Margin          First_Dynamic
744         LeftMargin      xxx
745         TopSep          0.4
746         BottomSep       0.4
747         LabelType       Static
748         LabelSep        xx
749         LabelString     "Proof."
750         LabelFont
751           Shape         Italic
752         EndFont
753         LangPreamble
754           \providecommand{\proofname}{_(Proof)}
755         EndLangPreamble
756         BabelPreamble
757           \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
758         EndBabelPreamble
759 End
760
761 Style Proof(QED)
762         CopyStyle       Proof
763         LatexName       svmultproof
764         EndLabelType    Box
765         Preamble
766           \newenvironment{svmultproof}{\begin{proof}}{\qed\end{proof}}
767         EndPreamble
768 End
769
770 Style Proof(smartQED)
771         CopyStyle       Proof
772         LatexName       svmultproof2
773         EndLabelType    Box
774         Preamble
775           \newenvironment{svmultproof2}{\begin{proof}}{\smartqed\qed\end{proof}}
776         EndPreamble
777 End
778
779 InsetLayout Flex:Email
780         Decoration      Conglomerate
781         LyxType         custom
782         LatexType       command
783         LatexName       email
784         LabelString     "Email"
785         Font
786           Color         foreground
787           Size          Small
788           Family        Roman
789           Shape         Up
790           Series        Medium
791           Misc          No_Emph
792           Misc          No_Noun
793           Misc          No_Bar
794         EndFont
795         LabelFont
796           Color         urltext
797           Size          Small
798         EndFont
799         ResetsFont true
800 End
801