]> git.lyx.org Git - lyx.git/blob - lib/layouts/svcommon.inc
DocBook: support for <info> tags in inner sections.
[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         DocBookWrapperTagType inline
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 End
368
369 Style Author
370         NextNoIndent    1
371         Align           Left
372         Font
373           Series        Bold
374           Shape         Italic
375         EndFont
376         DocBookTag            personname
377         DocBookTagType        paragraph
378         DocBookWrapperTag     author
379         DocBookWrapperTagType inline
380         DocBookInInfo         always
381 End
382
383 Style Institute
384         Category        FrontMatter
385         LatexType       Command
386         InTitle         1
387         LatexName       institute
388         Margin          First_Dynamic
389         LabelSep        x
390         LabelType       Static
391         LabelString     "Author data:"
392         LabelFont
393           Family        Typewriter
394           Color         Blue
395         EndFont
396         Requires        url
397         Align           Left
398 End
399
400 Style Date
401         Align           Left
402         Font
403           Size          Small
404         EndFont
405 End
406
407 Style TOC_Title
408         Category        FrontMatter
409         Margin          First_Dynamic
410         Align           Left
411         LatexType       Command
412         LatexName       toctitle
413         LeftMargin      xx
414         TopSep          0.4
415         BottomSep       0.4
416         LabelType       Static
417         LabelSep        x
418         LabelString     "TOC title:"
419         LabelFont
420           Family        Typewriter
421           Color         Blue
422         EndFont  
423 End
424
425 Style TOC_Author
426         CopyStyle       TOC_Title
427         LatexName       tocauthor
428         LabelString     "TOC author:"
429 End
430
431 Style Running_Title
432         CopyStyle       TOC_Title
433         LatexName       titlerunning
434         InTitle         1
435         LabelString     "Running title:"
436         DocBookTag            titleabbrev
437         DocBookTagType        paragraph
438         DocBookInInfo         maybe
439 End
440
441 Style Running_Author
442         CopyStyle       Running_Title
443         LatexName       authorrunning
444         LabelString     "Running author:"
445         DocBookTag  NONE # Still TODO
446 End
447
448 Style Running_Chapter
449         CopyStyle       Running_Title
450         Category        Sectioning
451         InTitle         0
452         LatexName       chaptermark
453         LabelString     "Running chapter:"
454         DocBookTag            titleabbrev
455         DocBookTagType        paragraph
456         DocBookInInfo         maybe
457         DocBookSection        false
458 End
459
460 Style Running_Section
461         CopyStyle       Running_Chapter
462         LatexName       sectionmark
463         LabelString     "Running section:"
464         DocBookTag            titleabbrev
465         DocBookTagType        paragraph
466         DocBookInInfo         maybe
467 End
468
469 Style Abstract
470         Category        FrontMatter
471         Margin          First_Dynamic
472         LatexType       Environment
473         LatexName       abstract
474         LabelType       Static
475         LabelString     "Abstract"
476         LabelFont
477           Series        Bold
478         EndFont
479         NextNoIndent    0
480         ParIndent       MM
481         LabelSep        xx
482         ItemSep         0
483         TopSep          0.7
484         BottomSep       0.7
485         ParSep          0
486         Align           Block
487         AlignPossible   Block, Left
488         DocBookAbstract       true
489         DocBookInInfo         always
490         DocBookWrapperTag     abstract
491         DocBookWrapperMergeWithPrevious    true
492         DocBookTag            para
493 End
494
495 Style Abstract*
496         CopyStyle       Abstract
497         LatexType       Command
498         LatexName       abstract*
499         LabelString     "Abstract* (not printed)"
500         LabelFont
501           Color         Blue
502         EndFont
503         TextFont        
504           Color         Blue
505         EndFont
506         DocBookAbstract       true
507         DocBookInInfo         always
508         DocBookWrapperTag     abstract
509         DocBookWrapperAttr    role='not-printed'
510         DocBookWrapperMergeWithPrevious    true
511         DocBookTag            para
512 End
513
514 Style Keywords
515         Margin          First_Dynamic
516         LatexType       Command
517         LatexName       keywords
518         Category        FrontMatter
519         NextNoIndent    0
520         ParIndent       MM
521         LabelSep        xx
522         ItemSep         0
523         TopSep          0.7
524         BottomSep       0.7
525         ParSep          0
526         Align           Block
527         AlignPossible   Block, Left
528         LabelType       Static
529         LabelString     "Keywords"
530         LabelFont
531           Series        Bold
532         EndFont
533         DocBookTag          keyword
534         DocBookTagType      paragraph
535         DocBookWrapperTag   keywordset
536         DocBookInInfo       always
537 End
538
539 Style Dedication
540         Category        FrontMatter
541         Margin          Static
542         LatexType       Environment
543         LatexName       dedication
544         LeftMargin      MMMMMMMMMMMM
545         TopSep          2
546         ParIndent       MM
547         Parsep          0
548         BottomSep       2
549         Align           Left
550         LabelType       Static
551         LabelString     ""
552         LabelIndent     ""
553         Font
554           Shape         Italic
555           Size          large
556         EndFont
557         DocBookTag             para
558         DocBookTagType         paragraph
559         DocBookWrapperTag      dedication
560         DocBookWrapperTagType  block
561         DocBookWrapperMergeWithPrevious    true
562 End
563
564 Style Foreword
565         Margin          First_Dynamic
566         Category        FrontMatter
567         LabelType       Static
568         LabelString     "Foreword"
569         KeepEmpty       1
570         LatexName       foreword
571         TocLevel        0
572         LatexType       Command
573         NeedProtect     1
574         NextNoIndent    1
575         ParSkip         0.4
576         TopSep          4
577         BottomSep       0.8
578         ParSep          0.8
579         Align           Block
580         Argument 1
581           LabelString   "Alternative Name"
582           Tooltip       "Alternative name"
583         EndArgument
584         Font
585           Series        Bold
586           Size          Huge
587         EndFont
588         DocBookTag             title
589         DocBookTagType         paragraph
590         DocBookSection         true
591         DocBookSectionTag      preface
592 End
593
594 Style Preface
595         CopyStyle       Foreword
596         Category        FrontMatter
597         LatexName       preface
598         InTitle         0
599         Margin          First_Dynamic
600         TopSep          4
601         BottomSep       0.8
602         LabelType       Static
603         LabelString     "Preface"
604         LabelSep        xx
605         Align           Left
606         DocBookTag             title
607         DocBookTagType         paragraph
608         DocBookSection         true
609         DocBookSectionTag      preface
610 End
611
612 Style Acknowledgement
613         Category        BackMatter
614         Margin          First_Dynamic
615         LatexType       Environment
616         LatexName       acknowledgement
617         NextNoIndent    0
618         ParIndent       MM
619         LabelSep        xx
620         ItemSep         0
621         TopSep          0.7
622         BottomSep       0.7
623         ParSep          0
624         Align           Block
625         AlignPossible   Block, Left
626         LabelType       Static
627         LabelString     "Acknowledgements"
628         Font
629           Size          Small
630         EndFont
631         LabelFont
632           Series        Bold
633           Shape         Up
634           Size          Small
635         EndFont
636 End
637
638 Style Acknowledgements
639         CopyStyle       Acknowledgement
640         LatexName       acknowledgements
641 End
642
643 Style Bibliography
644         Margin          First_Dynamic
645         LatexType       Bib_Environment
646         LatexName       thebibliography
647         Category        BackMatter
648         NextNoIndent    1
649         ToggleIndent    Never
650         LeftMargin      MM
651         ParSkip         0.4
652         ItemSep         0
653         TopSep          0.7
654         BottomSep       0.7
655         ParSep          0.5
656         Align           Block
657         AlignPossible   Block, Left
658         LabelType       Bibliography
659         LabelString     "References"
660         LabelBottomSep  0.7
661         LabelFont
662           Series        Bold
663         EndFont
664         TocLevel        0
665         IsTocCaption    0
666         Argument listpreamble:1
667           LabelString    "Bib preamble"
668           MenuString     "Bibliography Preamble"
669           Tooltip        "LaTeX code to be inserted before the first bibliography item"
670           PassThru       1
671           Font
672             Family typewriter
673             Color latex
674           EndFont
675         EndArgument
676 End
677
678 Style Description
679         Argument 1
680           LabelString   "Longest Description Label"
681           Tooltip       "Longest description label"
682         EndArgument
683         LabelFont
684           Series        Medium
685         EndFont
686         DocBookTag            variablelist
687         DocBookItemWrapperTag varlistentry
688         DocBookItemTag        listitem
689         DocBookItemInnerTag   para
690         DocBookItemLabelTag   term
691         DocBookItemLabelTagType   paragraph
692 End
693
694 Style Petit
695         CopyStyle       Standard
696         Category        MainText
697         LatexType       Environment
698         LatexName       petit
699         TopSep          0.7
700         BottomSep       0.7
701         Font
702           Size          Small
703         EndFont
704 End
705
706 Style Svgraybox
707         Category        MainText
708         Margin          Static
709         LatexType       Environment
710         LatexName       svgraybox
711         RightMargin     MMM
712         TopSep          0.5
713         ParIndent       MM
714         Parsep          0
715         BottomSep       0.5
716         Align           Block
717         AlignPossible   Block, Left, Right, Center
718         LabelType       No_Label
719         Font
720           Family        Sans
721         EndFont
722 End
723
724 Style Proof
725         Category        Reasoning
726         LatexType       Environment
727         LatexName       proof
728         Margin          First_Dynamic
729         LeftMargin      xxx
730         TopSep          0.4
731         BottomSep       0.4
732         LabelType       Static
733         LabelSep        xx
734         LabelString     "Proof."
735         LabelFont
736           Shape         Italic
737         EndFont
738         LangPreamble
739           \providecommand{\proofname}{_(Proof)}
740         EndLangPreamble
741         BabelPreamble
742           \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
743         EndBabelPreamble
744 End
745
746 Style Proof(QED)
747         CopyStyle       Proof
748         LatexName       svmultproof
749         EndLabelType    Box
750         Preamble
751           \newenvironment{svmultproof}{\begin{proof}}{\qed\end{proof}}
752         EndPreamble
753 End
754
755 Style Proof(smartQED)
756         CopyStyle       Proof
757         LatexName       svmultproof2
758         EndLabelType    Box
759         Preamble
760           \newenvironment{svmultproof2}{\begin{proof}}{\smartqed\qed\end{proof}}
761         EndPreamble
762 End
763
764 InsetLayout Flex:Email
765         Decoration      Conglomerate
766         LyxType         custom
767         LatexType       command
768         LatexName       email
769         LabelString     "Email"
770         Font
771           Color         foreground
772           Size          Small
773           Family        Roman
774           Shape         Up
775           Series        Medium
776           Misc          No_Emph
777           Misc          No_Noun
778           Misc          No_Bar
779         EndFont
780         LabelFont
781           Color         urltext
782           Size          Small
783         EndFont
784         ResetsFont true
785 End
786