]> git.lyx.org Git - lyx.git/blob - lib/layouts/amsbook.layout
add stdfloats.inc and stdcounters.inc to a lot of layout files
[lyx.git] / lib / layouts / amsbook.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass{book (AMS)}
3 # AMS-Article textclass definition file. Taken from initial LyX source code
4 # and from the Article textclass definition file, following the AMS sample
5 # paper "testmath.tex" of January, 1995
6 # Author : David L. Johnson <dlj0@lehigh.edu>
7 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
9
10
11 # General textclass parameters
12 # Description          "book (AMS)"
13 Columns                 1
14 Sides                   2
15 PageStyle               Headers
16 MaxCounter              Counter_Chapter
17
18 ClassOptions
19   FontSize   8|9|10|11|12
20 End  
21
22 # Standard style definition
23 Style Standard
24   Margin                Static
25   LatexType             Paragraph
26   LatexName             dummy
27   ParIndent             MM
28   ParSkip               0.4
29   Align                 Block
30   AlignPossible         Block, Left, Right, Center
31   LabelType             No_Label
32 End
33
34
35
36 ############### Sections.
37
38 Input stdsections.inc
39
40 # Redefine some of the section styles.
41 Style Section
42   Align                 Center
43   AlignPossible         Block, Center, Left
44
45   # standard font definition
46   Font
47     Series              Medium
48     Shape               Smallcaps
49     Size                Large
50   EndFont
51 End
52
53 # Subsection-numbered style definition
54 Style Subsection
55   # standard font definition
56   Font
57     Series              Bold
58     Size                Normal
59   EndFont
60 End
61
62 # Subsubsection-numbered style definition
63 Style Subsubsection
64   # standard font definition
65   Font
66     Shape               Italic
67     Size                Normal
68   EndFont
69 End
70
71 # then define the unumbered sections, based on the numbered ones.
72 Input stdstarsections.inc
73
74
75 # Perharp's we should put this at the end of the file so it appears at the end
76 # of the list box ??
77
78 Preamble
79   \numberwithin{section}{chapter}
80   \theoremstyle{plain}    
81   \newtheorem{thm}{Theorem}[section]
82   \numberwithin{equation}{section} %% Comment out for sequentially-numbered
83   \numberwithin{figure}{section} %% Comment out for sequentially-numbered
84 EndPreamble
85
86 Input amsdefs.inc
87
88  
89 Input stdlayouts.inc
90 NoStyle Verse    # Although mathematicians tend to be poets at times, 
91                  # we don't need this.
92 NoStyle Abstract  # there are no abstract in a book.
93
94 Input stdlists.inc
95 Input stdfloats.inc
96 Input stdcounters.inc
97
98 # End-of Chapter exercises  I need a way to do this.
99
100 # Chapter Exercises style definition
101 Style Chapter_Exercises
102   Margin                First_Dynamic
103   LatexType             Item_Environment
104   LatexName             lyxxcb
105   NextNoIndent          1
106   LeftMargin            MMN
107   LabelSep              xx
108   ParSkip               0.0
109   ItemSep               0.2
110   TopSep                0.7
111   BottomSep             0.7
112   ParSep                0.3
113   Align                 Block
114   AlignPossible         Block, Left
115   LabelType             Counter_EnumI
116
117   # standard font definition
118
119   # label font definition
120   LabelFont
121     Shape               Up
122     Series              Bold
123   EndFont
124
125   Preamble
126     \newenvironment{lyxxcb}{\begin{xcb}{Exercises}\begin{enumerate}}
127                        {\end{enumerate}\end{xcb}}
128   EndPreamble
129
130 End
131
132 Input lyxmacros.inc
133
134 ### Finally a few obsolete definitions for compatibility
135 Input obsolete.inc
136