]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
fix typo that put too many include paths for most people
[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       \raggedright
31       \setlength{\itemsep}{0pt}
32       \setlength{\parsep}{0pt}
33       \normalfont\ttfamily}%
34      \item[]}
35     {\end{list}}
36   EndPreamble
37
38   # standard font definition
39   Font 
40     Family              Typewriter
41   EndFont
42
43 End
44
45 # Comment style definition
46 Style Comment
47   Margin                Dynamic
48   LatexType             Environment
49   LatexName             comment
50   NextNoIndent          1
51   LeftMargin            MMM
52   RightMargin           MMM
53   Align                 Block
54   AlignPossible         Block, Left, Right, Center
55   LabelType             Static
56   LabelSep              :x
57   Labelstring           "Comment:"
58
59   LabelFont
60         Shape           Italic
61         Series          Bold
62         Color           black
63   EndFont
64
65   TextFont
66         Color           magenta
67         Shape           Italic
68   EndFont
69
70   Preamble
71   \usepackage{verbatim}
72   EndPreamble
73
74 End
75
76 # Address style definition
77 Style Address
78   Margin                Static
79   LatexType             Command
80   LatexName             lyxaddress
81   ParSkip               0.4
82   BottomSep             1.5
83   ParSep                1.5
84   Align                 Left
85   AlignPossible         Block, Left, Right, Center
86   LabelType             No_Label
87
88   # define the macro \lyxaddress
89   Preamble
90   \newcommand{\lyxaddress}[1]{
91     \par {\raggedright #1 
92     \vspace{1.4em}
93     \noindent\par}
94   }
95   EndPreamble
96
97 End
98
99 # Right Address style
100 Style Right_Address
101   Margin                Right_Address_Box
102   LatexType             Command
103   LatexName             lyxrightaddress
104   ParSkip               0.4
105   BottomSep             1.5
106   ParSep                1.5
107   Align                 Left
108   AlignPossible         Left
109
110   # define the macro \lyxrightaddress
111   Preamble
112   \newcommand{\lyxrightaddress}[1]{
113     \par {\raggedleft \begin{tabular}{l}\ignorespaces
114     #1
115     \end{tabular}
116     \vspace{1.4em}
117     \par}
118   }
119   EndPreamble
120   
121 End