]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
More tweaks, and some fixes for missing files in the makefiles, while we're at it.
[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 6
12 Style LyX-Code
13         Margin                Static
14         LatexType             Environment
15         LatexName             lyxcode
16         NextNoIndent          1
17         LeftMargin            MMM
18         RightMargin           MMM
19         TopSep                0.5
20         BottomSep             0.5
21         Align                 Left
22         AlignPossible         Block, Left, Right, Center
23         LabelType             No_Label
24         FreeSpacing           1
25         Preamble
26                 \newenvironment{lyxcode}
27                         {\begin{list}{}{
28                                 \setlength{\rightmargin}{\leftmargin}
29                                 \setlength{\listparindent}{0pt}% needed for AMS classes
30                                 \raggedright
31                                 \setlength{\itemsep}{0pt}
32                                 \setlength{\parsep}{0pt}
33                                 \normalfont\ttfamily}%
34                          \item[]}
35                         {\end{list}}
36         EndPreamble
37         Font
38           Family              Typewriter
39         EndFont
40 End
41
42
43 Style Address
44         Margin                Static
45         LatexType             Command
46         LatexName             lyxaddress
47         ParSkip               0.4
48         BottomSep             1.5
49         ParSep                1.5
50         Align                 Left
51         AlignPossible         Block, Left, Right, Center
52         LabelType             No_Label
53         Preamble
54                 \newcommand{\lyxaddress}[1]{
55                         \par {\raggedright #1
56                         \vspace{1.4em}
57                         \noindent\par}
58                 }
59         EndPreamble
60 End
61
62
63 Style Right_Address
64         Margin                Right_Address_Box
65         LatexType             Command
66         LatexName             lyxrightaddress
67         ParSkip               0.4
68         BottomSep             1.5
69         ParSep                1.5
70         Align                 Left
71         Preamble
72                 \newcommand{\lyxrightaddress}[1]{
73                         \par {\raggedleft \begin{tabular}{l}\ignorespaces
74                         #1
75                         \end{tabular}
76                         \vspace{1.4em}
77                         \par}
78                 }
79         EndPreamble
80 End