]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
allow to compile several frontends at once (and produce several binaries)
[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 # Lyx-Code style definition
11 Style LyX-Code
12         Margin                Static
13         LatexType             Environment
14         LatexName             lyxcode
15         NextNoIndent          1
16         LeftMargin            MMM
17         RightMargin           MMM
18         TopSep                0.5
19         BottomSep             0.5
20         Align                 Left
21         AlignPossible         Block, Left, Right, Center
22         LabelType             No_Label
23         FreeSpacing           1
24
25         # define the environment lyxcode
26         Preamble
27         \newenvironment{lyxcode}
28           {\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
39         # standard font definition
40         Font 
41           Family              Typewriter
42         EndFont
43
44 End
45
46 # Address style definition
47 Style Address
48         Margin                Static
49         LatexType             Command
50         LatexName             lyxaddress
51         ParSkip               0.4
52         BottomSep             1.5
53         ParSep                1.5
54         Align                 Left
55         AlignPossible         Block, Left, Right, Center
56         LabelType             No_Label
57
58         # define the macro \lyxaddress
59         Preamble
60         \newcommand{\lyxaddress}[1]{
61           \par {\raggedright #1 
62           \vspace{1.4em}
63           \noindent\par}
64         }
65         EndPreamble
66
67 End
68
69 # Right Address style
70 Style Right_Address
71         Margin                Right_Address_Box
72         LatexType             Command
73         LatexName             lyxrightaddress
74         ParSkip               0.4
75         BottomSep             1.5
76         ParSep                1.5
77         Align                 Left
78         AlignPossible         Left
79
80         # define the macro \lyxrightaddress
81         Preamble
82         \newcommand{\lyxrightaddress}[1]{
83           \par {\raggedleft \begin{tabular}{l}\ignorespaces
84           #1
85           \end{tabular}
86           \vspace{1.4em}
87           \par}
88         }
89         EndPreamble
90         
91 End