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