]> git.lyx.org Git - lyx.git/blob - lib/layouts/amsbook.layout
fix Address in ams classes
[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 lyxmacros.inc
87 NoStyle Address
88 Input amsdefs.inc
89
90  
91 Input stdlayouts.inc
92 NoStyle Verse    # Although mathematicians tend to be poets at times, 
93                  # we don't need this.
94 NoStyle Abstract  # there are no abstract in a book.
95
96 Input stdlists.inc
97 Input stdfloats.inc
98 Input stdcounters.inc
99
100 # End-of Chapter exercises  I need a way to do this.
101
102 # Chapter Exercises style definition
103 Style Chapter_Exercises
104   Margin                First_Dynamic
105   LatexType             Item_Environment
106   LatexName             lyxxcb
107   NextNoIndent          1
108   LeftMargin            MMN
109   LabelSep              xx
110   ParSkip               0.0
111   ItemSep               0.2
112   TopSep                0.7
113   BottomSep             0.7
114   ParSep                0.3
115   Align                 Block
116   AlignPossible         Block, Left
117   LabelType             Counter_EnumI
118
119   # standard font definition
120
121   # label font definition
122   LabelFont
123     Shape               Up
124     Series              Bold
125   EndFont
126
127   Preamble
128     \newenvironment{lyxxcb}{\begin{xcb}{Exercises}\begin{enumerate}}
129                        {\end{enumerate}\end{xcb}}
130   EndPreamble
131
132 End
133
134
135 ### Finally a few obsolete definitions for compatibility
136 Input obsolete.inc
137