]> git.lyx.org Git - lyx.git/blob - lib/layouts/svcommon.inc
DocBook: add DocBookSection parameter for styles that define new sections and impleme...
[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 86
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         Blue
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         DocBookForceAbstractTag partintro
119 End
120
121 ## The following is a variant of style Part.  It allows to place some
122 ## text on the following page which would otherwise be blank.  
123
124 Style PartBacktext
125         Category        Sectioning
126         Margin          First_Dynamic
127         LabelString     "Part \thepart"
128         LabelType       Static
129         TocLevel        0
130         LabelCounter    part
131         Labelsep        xx
132         NeedProtect     1
133         ParIndent       MM
134         TopSep          4
135         BottomSep       4
136         LaTexType       Environment
137         LatexName       svmultpartbacktext
138         LabelFont
139           Series        Bold
140           Size          Huge
141         EndFont
142         TextFont
143           Series        Medium
144           Shape         Up
145           Size          normal
146         EndFont
147         Argument 1
148           Mandatory     1
149           LabelString   "Part Title"
150           Tooltip           "Title of this part"
151           IsTocCaption  1
152           DocBookTag    title
153         EndArgument
154         Preamble
155           \newenvironment{svmultpartbacktext}[1]{\begin{partbacktext}
156           \part{#1}}{\end{partbacktext}}
157         EndPreamble
158         HTMLTag         h1
159         DocBookTag            NONE
160         DocBookSection        true
161         DocBookSectionTag     part
162         # 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.
163 End
164
165 Style Chapter
166         Align           Left
167         DocBookTag            title
168         DocBookTagType        paragraph
169         DocBookSectionTag     chapter
170 End
171
172 Style ChapSubtitle
173         LatexName       chapsubtitle
174         LatexType       Command
175         Category        Sectioning
176         TopSep          0.7
177         Font
178           Series        Bold
179           Shape         Up
180           Size          large
181         EndFont
182         DocBookTag            subtitle
183
184 End
185
186 Style ChapAuthor
187         LatexName       chapauthor
188         LatexType       Command
189         Category        Sectioning
190         TopSep          0.7
191         Font
192           Series        Bold
193           Shape         Up
194           Size          normal
195         EndFont
196         DocBookTag            personname
197         DocBookTagType        paragraph
198         DocBookWrapperTag     author
199         DocBookWrapperTagType inline
200         DocBookInInfo         always
201 End
202
203 Style ChapMotto
204         LatexName       motto
205         LatexType       Command
206         Category        Sectioning
207         TopSep          0.7
208         BottomSep       0.7
209         Align           Left
210         LeftMargin      MMMMMMMMMMMM
211         Font
212           Series        Medium
213           Shape         Italic
214           Size          normal
215         EndFont
216 End
217
218 Style Section
219         Font
220           Series        Bold
221           Shape         Up
222           Size          large
223         EndFont
224         TocLevel        1
225 End
226
227 Style Subsection
228         Font
229           Series        Bold
230           Shape         Italic
231           Size          large
232         EndFont
233         TocLevel        2
234 End
235
236 Style Subsubsection
237         Font
238           Series        Bold
239           Shape         Up
240           Size          Normal
241         EndFont
242         TocLevel        3
243 End
244
245 Style Paragraph
246         Font
247           Series        Medium
248           Shape         Up
249           Size          Normal
250         EndFont
251         TopSep          0.7
252         BottomSep       0.4
253         TocLevel        4
254 End
255
256 Style Subparagraph
257         LeftMargin      ""
258         Font
259           Series        Medium
260           Shape         Italic
261           Size          Normal
262         EndFont
263         TopSep          0.7
264         BottomSep       0.4
265         TocLevel        4
266 End
267
268 Style Part*
269       Margin            Static
270       Align             Right
271 End
272
273 Style Chapter*
274         Align           Left
275 End
276
277 Style Section*
278         Font
279           Series        Bold
280           Shape         Up
281           Size          large
282         EndFont
283 End
284
285 Style Subsection*
286         Font
287           Series        Bold
288           Shape         Italic
289           Size          large
290         EndFont
291 End
292
293 Style Subsubsection*
294         Font
295           Series        Bold
296           Shape         Up
297           Size          Normal
298         EndFont
299 End
300
301 Style Paragraph*
302         Font
303           Series        Medium
304           Shape         Up
305           Size          Normal
306         EndFont
307         TopSep          0.7
308         BottomSep       0.4
309 End
310
311 Style Run-in_headings
312         Category        Unnumbered
313         LabelType       No_Label
314         LabelSep        xx
315         TopSep          0.7
316         Font
317           Series        Bold
318           Shape         Up
319           Size          Normal
320         EndFont
321         Margin          Static
322         LatexType       Command
323         LatexName       runinhead
324 End
325
326 Style Sub-run-in_headings
327         CopyStyle       Run-in_headings
328         Font 
329           Series        Medium
330           Shape         Italic
331           Size          Normal
332         EndFont
333         LatexName       subruninhead
334 End
335
336 Style Extrachap
337         CopyStyle       Chapter*
338         LatexName       Extrachap
339 End
340
341 Style extrachap
342         CopyStyle       Chapter*
343         LatexName       extrachap
344 End
345
346 Style Title
347         Align           Left
348         AlignPossible   Block, Center, Left, Right, Center
349         Font
350           Family        Sans
351           Series        Bold
352         EndFont
353 End
354
355 Style Subtitle
356         CopyStyle       Title
357         LatexName       subtitle
358         NextNoIndent    1
359         BottomSep       0
360         ParSep          0
361         Font
362           Size          Large
363         EndFont
364         DocBookTag            subtitle
365 End
366
367 Style Author
368         NextNoIndent    1
369         Align           Left
370         Font
371           Series        Bold
372           Shape         Italic
373         EndFont
374         DocBookTag            personname
375         DocBookTagType        paragraph
376         DocBookWrapperTag     author
377         DocBookWrapperTagType inline
378         DocBookInInfo         always
379 End
380
381 Style Institute
382         Category        FrontMatter
383         LatexType       Command
384         InTitle         1
385         LatexName       institute
386         Margin          First_Dynamic
387         LabelSep        x
388         LabelType       Static
389         LabelString     "Author data:"
390         LabelFont
391           Family        Typewriter
392           Color         Blue
393         EndFont
394         Requires        url
395         Align           Left
396 End
397
398 Style Date
399         Align           Left
400         Font
401           Size          Small
402         EndFont
403 End
404
405 Style TOC_Title
406         Category        FrontMatter
407         Margin          First_Dynamic
408         Align           Left
409         LatexType       Command
410         LatexName       toctitle
411         LeftMargin      xx
412         TopSep          0.4
413         BottomSep       0.4
414         LabelType       Static
415         LabelSep        x
416         LabelString     "TOC title:"
417         LabelFont
418           Family        Typewriter
419           Color         Blue
420         EndFont  
421 End
422
423 Style TOC_Author
424         CopyStyle       TOC_Title
425         LatexName       tocauthor
426         LabelString     "TOC author:"
427 End
428
429 Style Running_Title
430         CopyStyle       TOC_Title
431         LatexName       titlerunning
432         InTitle         1
433         LabelString     "Running title:"
434         DocBookTag            titleabbrev
435         DocBookTagType        paragraph
436 End
437
438 Style Running_Author
439         CopyStyle       Running_Title
440         LatexName       authorrunning
441         LabelString     "Running author:"
442         DocBookTag  NONE # Still TODO
443 End
444
445 Style Running_Chapter
446         CopyStyle       Running_Title
447         Category        Sectioning
448         InTitle         0
449         LatexName       chaptermark
450         LabelString     "Running chapter:"
451         DocBookTag            titleabbrev
452         DocBookTagType        paragraph
453         DocBookSection        false
454 End
455
456 Style Running_Section
457         CopyStyle       Running_Chapter
458         LatexName       sectionmark
459         LabelString     "Running section:"
460         DocBookTag            titleabbrev
461         DocBookTagType        paragraph
462 End
463
464 Style Abstract
465         Category        FrontMatter
466         Margin          First_Dynamic
467         LatexType       Environment
468         LatexName       abstract
469         LabelType       Static
470         LabelString     "Abstract"
471         LabelFont
472           Series        Bold
473         EndFont
474         NextNoIndent    0
475         ParIndent       MM
476         LabelSep        xx
477         ItemSep         0
478         TopSep          0.7
479         BottomSep       0.7
480         ParSep          0
481         Align           Block
482         AlignPossible   Block, Left
483         DocBookAbstract       true
484         DocBookInInfo         always
485         DocBookWrapperTag     abstract
486         DocBookWrapperMergeWithPrevious    true
487         DocBookTag            para
488 End
489
490 Style Abstract*
491         CopyStyle       Abstract
492         LatexType       Command
493         LatexName       abstract*
494         LabelString     "Abstract* (not printed)"
495         LabelFont
496           Color         Blue
497         EndFont
498         TextFont        
499           Color         Blue
500         EndFont
501         DocBookAbstract       true
502         DocBookInInfo         always
503         DocBookWrapperTag     abstract
504         DocBookWrapperAttr    role='not-printed'
505         DocBookWrapperMergeWithPrevious    true
506         DocBookTag            para
507 End
508
509 Style Keywords
510         Margin          First_Dynamic
511         LatexType       Command
512         LatexName       keywords
513         Category        FrontMatter
514         NextNoIndent    0
515         ParIndent       MM
516         LabelSep        xx
517         ItemSep         0
518         TopSep          0.7
519         BottomSep       0.7
520         ParSep          0
521         Align           Block
522         AlignPossible   Block, Left
523         LabelType       Static
524         LabelString     "Keywords"
525         LabelFont
526           Series        Bold
527         EndFont
528         DocBookTag          keyword
529         DocBookTagType      paragraph
530         DocBookWrapperTag   keywordset
531         DocBookInInfo       always
532 End
533
534 Style Dedication
535         Category        FrontMatter
536         Margin          Static
537         LatexType       Environment
538         LatexName       dedication
539         LeftMargin      MMMMMMMMMMMM
540         TopSep          2
541         ParIndent       MM
542         Parsep          0
543         BottomSep       2
544         Align           Left
545         LabelType       Static
546         LabelString     ""
547         LabelIndent     ""
548         Font
549           Shape         Italic
550           Size          large
551         EndFont
552         DocBookTag             para
553         DocBookTagType         paragraph
554         DocBookWrapperTag      dedication
555         DocBookWrapperTagType  block
556         DocBookWrapperMergeWithPrevious    true
557 End
558
559 Style Foreword
560         Margin          First_Dynamic
561         Category        FrontMatter
562         LabelType       Static
563         LabelString     "Foreword"
564         KeepEmpty       1
565         LatexName       foreword
566         TocLevel        0
567         LatexType       Command
568         NeedProtect     1
569         NextNoIndent    1
570         ParSkip         0.4
571         TopSep          4
572         BottomSep       0.8
573         ParSep          0.8
574         Align           Block
575         Argument 1
576           LabelString   "Alternative Name"
577           Tooltip       "Alternative name"
578         EndArgument
579         Font
580           Series        Bold
581           Size          Huge
582         EndFont
583         DocBookTag             title
584         DocBookTagType         paragraph
585         DocBookSection         true
586         DocBookSectionTag      preface
587 End
588
589 Style Preface
590         CopyStyle       Foreword
591         Category        FrontMatter
592         LatexName       preface
593         InTitle         0
594         Margin          First_Dynamic
595         TopSep          4
596         BottomSep       0.8
597         LabelType       Static
598         LabelString     "Preface"
599         LabelSep        xx
600         Align           Left
601         DocBookTag             title
602         DocBookTagType         paragraph
603         DocBookSection         true
604         DocBookSectionTag      preface
605 End
606
607 Style Acknowledgement
608         Category        BackMatter
609         Margin          First_Dynamic
610         LatexType       Environment
611         LatexName       acknowledgement
612         NextNoIndent    0
613         ParIndent       MM
614         LabelSep        xx
615         ItemSep         0
616         TopSep          0.7
617         BottomSep       0.7
618         ParSep          0
619         Align           Block
620         AlignPossible   Block, Left
621         LabelType       Static
622         LabelString     "Acknowledgements"
623         Font
624           Size          Small
625         EndFont
626         LabelFont
627           Series        Bold
628           Shape         Up
629           Size          Small
630         EndFont
631 End
632
633 Style Acknowledgements
634         CopyStyle       Acknowledgement
635         LatexName       acknowledgements
636 End
637
638 Style Bibliography
639         Margin          First_Dynamic
640         LatexType       Bib_Environment
641         LatexName       thebibliography
642         Category        BackMatter
643         NextNoIndent    1
644         ToggleIndent    Never
645         LeftMargin      MM
646         ParSkip         0.4
647         ItemSep         0
648         TopSep          0.7
649         BottomSep       0.7
650         ParSep          0.5
651         Align           Block
652         AlignPossible   Block, Left
653         LabelType       Bibliography
654         LabelString     "References"
655         LabelBottomSep  0.7
656         LabelFont
657           Series        Bold
658         EndFont
659         TocLevel        0
660         IsTocCaption    0
661         Argument listpreamble:1
662           LabelString    "Bib preamble"
663           MenuString     "Bibliography Preamble"
664           Tooltip        "LaTeX code to be inserted before the first bibliography item"
665           PassThru       1
666           Font
667             Family typewriter
668             Color latex
669           EndFont
670         EndArgument
671 End
672
673 Style Description
674         Argument 1
675           LabelString   "Longest Description Label"
676           Tooltip       "Longest description label"
677         EndArgument
678         LabelFont
679           Series        Medium
680         EndFont
681         DocBookTag            variablelist
682         DocBookItemWrapperTag varlistentry
683         DocBookItemTag        listitem
684         DocBookItemInnerTag   para
685         DocBookItemLabelTag   term
686         DocBookItemLabelTagType   paragraph
687 End
688
689 Style Petit
690         CopyStyle       Standard
691         Category        MainText
692         LatexType       Environment
693         LatexName       petit
694         TopSep          0.7
695         BottomSep       0.7
696         Font
697           Size          Small
698         EndFont
699 End
700
701 Style Svgraybox
702         Category        MainText
703         Margin          Static
704         LatexType       Environment
705         LatexName       svgraybox
706         RightMargin     MMM
707         TopSep          0.5
708         ParIndent       MM
709         Parsep          0
710         BottomSep       0.5
711         Align           Block
712         AlignPossible   Block, Left, Right, Center
713         LabelType       No_Label
714         Font
715           Family        Sans
716         EndFont
717 End
718
719 Style Proof
720         Category        Reasoning
721         LatexType       Environment
722         LatexName       proof
723         Margin          First_Dynamic
724         LeftMargin      xxx
725         TopSep          0.4
726         BottomSep       0.4
727         LabelType       Static
728         LabelSep        xx
729         LabelString     "Proof."
730         LabelFont
731           Shape         Italic
732         EndFont
733         LangPreamble
734           \providecommand{\proofname}{_(Proof)}
735         EndLangPreamble
736         BabelPreamble
737           \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
738         EndBabelPreamble
739 End
740
741 Style Proof(QED)
742         CopyStyle       Proof
743         LatexName       svmultproof
744         EndLabelType    Box
745         Preamble
746           \newenvironment{svmultproof}{\begin{proof}}{\qed\end{proof}}
747         EndPreamble
748 End
749
750 Style Proof(smartQED)
751         CopyStyle       Proof
752         LatexName       svmultproof2
753         EndLabelType    Box
754         Preamble
755           \newenvironment{svmultproof2}{\begin{proof}}{\smartqed\qed\end{proof}}
756         EndPreamble
757 End
758
759 InsetLayout Flex:Email
760         Decoration      Conglomerate
761         LyxType         custom
762         LatexType       command
763         LatexName       email
764         LabelString     "Email"
765         Font
766           Color         foreground
767           Size          Small
768           Family        Roman
769           Shape         Up
770           Series        Medium
771           Misc          No_Emph
772           Misc          No_Noun
773           Misc          No_Bar
774         EndFont
775         LabelFont
776           Color         urltext
777           Size          Small
778         EndFont
779         ResetsFont true
780 End
781