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