]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
96fe740e09de6bfe555bec4d36dae0637af1ad61
[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 68
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 End
42
43
44 Style Address
45         Category              FrontMatter
46         Margin                Static
47         LatexType             Command
48         LatexName             lyxaddress
49         ParSkip               0.4
50         BottomSep             1.5
51         ParSep                1.5
52         Align                 Left
53         AlignPossible         Block, Left, Right, Center
54         LabelType             No_Label
55         Preamble
56                 \newcommand{\lyxaddress}[1]{
57                         \par {\raggedright #1
58                         \vspace{1.4em}
59                         \noindent\par}
60                 }
61         EndPreamble
62 End
63
64
65 Style Right_Address
66         Category              FrontMatter
67         Margin                Right_Address_Box
68         LatexType             Command
69         LatexName             lyxrightaddress
70         ParSkip               0.4
71         BottomSep             1.5
72         ParSep                1.5
73         Align                 Left
74         Preamble
75                 \newcommand{\lyxrightaddress}[1]{
76                         \par {\raggedleft \begin{tabular}{l}\ignorespaces
77                         #1
78                         \end{tabular}
79                         \vspace{1.4em}
80                         \par}
81                 }
82         EndPreamble
83 End