]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
Update layouts to format 98
[lyx.git] / lib / layouts / lyxmacros.inc
1 # Standard textclass definition file. Taken from initial LyX source code
2 # Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
3 # Transposed by Pascal AndrĂ© <andre@via.ecp.fr>
4 # Heavily modifed and enhanced by several developers.
5
6 # This file contains some special LyX environments that are used by
7 # all environment classes. Some of these are a bit peculiar and might
8 # be removed later.
9
10
11 Format 98
12 Style LyX-Code
13         Category              MainText
14         Margin                Static
15         LatexType             Environment
16         LatexName             lyxcode
17         NextNoIndent          1
18         LeftMargin            MMM
19         RightMargin           MMM
20         TopSep                0.5
21         BottomSep             0.5
22         Align                 Left
23         AlignPossible         Block, Left, Right, Center
24         LabelType             No_Label
25         FreeSpacing           1
26         Preamble
27                 \newenvironment{lyxcode}
28                         {\par\begin{list}{}{
29                                 \setlength{\rightmargin}{\leftmargin}
30                                 \setlength{\listparindent}{0pt}% needed for AMS classes
31                                 \raggedright
32                                 \setlength{\itemsep}{0pt}
33                                 \setlength{\parsep}{0pt}
34                                 \normalfont\ttfamily}%
35                          \item[]}
36                         {\end{list}}
37         EndPreamble
38         Font
39           Family              Typewriter
40         EndFont
41         DocBookTag            programlisting
42     DocBookTagType        paragraph
43         DocBookAttr                       language='lyx'
44 End
45
46
47 Style Address
48         Category              FrontMatter
49         Margin                Static
50         LatexType             Command
51         LatexName             lyxaddress
52         ParSkip               0.4
53         BottomSep             1.5
54         ParSep                1.5
55         Align                 Left
56         AlignPossible         Block, Left, Right, Center
57         LabelType             No_Label
58         Preamble
59                 \newcommand{\lyxaddress}[1]{
60                         \par {\raggedright #1
61                         \vspace{1.4em}
62                         \noindent\par}
63                 }
64         EndPreamble
65         DocBookTag            address
66         DocBookTagType        paragraph
67 End
68
69
70 Style Right_Address
71         Category              FrontMatter
72         Margin                Right_Address_Box
73         LatexType             Command
74         LatexName             lyxrightaddress
75         ParSkip               0.4
76         BottomSep             1.5
77         ParSep                1.5
78         Align                 Left
79         Preamble
80                 \newcommand{\lyxrightaddress}[1]{
81                         \par {\raggedleft \begin{tabular}{l}\ignorespaces
82                         #1
83                         \end{tabular}
84                         \vspace{1.4em}
85                         \par}
86                 }
87         EndPreamble
88         DocBookTag            address
89         DocBookTagType        paragraph
90         DocBookAttr           role='right-address'
91 End