]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
rest
[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 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         Preamble
25                 \newenvironment{lyxcode}
26                         {\begin{list}{}{
27                                 \setlength{\rightmargin}{\leftmargin}
28                                 \setlength{\listparindent}{0pt}% needed for AMS classes
29                                 \raggedright
30                                 \setlength{\itemsep}{0pt}
31                                 \setlength{\parsep}{0pt}
32                                 \normalfont\ttfamily}%
33                          \item[]}
34                         {\end{list}}
35         EndPreamble
36         Font 
37           Family              Typewriter
38         EndFont
39 End
40
41
42 Style Address
43         Margin                Static
44         LatexType             Command
45         LatexName             lyxaddress
46         ParSkip               0.4
47         BottomSep             1.5
48         ParSep                1.5
49         Align                 Left
50         AlignPossible         Block, Left, Right, Center
51         LabelType             No_Label
52         Preamble
53                 \newcommand{\lyxaddress}[1]{
54                         \par {\raggedright #1 
55                         \vspace{1.4em}
56                         \noindent\par}
57                 }
58         EndPreamble
59 End
60
61
62 Style Right_Address
63         Margin                Right_Address_Box
64         LatexType             Command
65         LatexName             lyxrightaddress
66         ParSkip               0.4
67         BottomSep             1.5
68         ParSep                1.5
69         Align                 Left
70         AlignPossible         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