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