]> git.lyx.org Git - lyx.git/blob - lib/layouts/lyxmacros.inc
polish update
[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 # Comment style definition
47 Style Comment
48   Margin                Dynamic
49   LatexType             Environment
50   LatexName             comment
51   NextNoIndent          1
52   LeftMargin            MMM
53   RightMargin           MMM
54   Align                 Block
55   AlignPossible         Block, Left, Right, Center
56   LabelType             Static
57   LabelSep              :x
58   Labelstring           "Comment:"
59
60   LabelFont
61         Shape           Italic
62         Series          Bold
63         Color           black
64   EndFont
65
66   TextFont
67         Color           magenta
68         Shape           Italic
69   EndFont
70
71   Preamble
72   \usepackage{verbatim}
73   EndPreamble
74
75 End
76
77 # Address style definition
78 Style Address
79   Margin                Static
80   LatexType             Command
81   LatexName             lyxaddress
82   ParSkip               0.4
83   BottomSep             1.5
84   ParSep                1.5
85   Align                 Left
86   AlignPossible         Block, Left, Right, Center
87   LabelType             No_Label
88
89   # define the macro \lyxaddress
90   Preamble
91   \newcommand{\lyxaddress}[1]{
92     \par {\raggedright #1 
93     \vspace{1.4em}
94     \noindent\par}
95   }
96   EndPreamble
97
98 End
99
100 # Right Address style
101 Style Right_Address
102   Margin                Right_Address_Box
103   LatexType             Command
104   LatexName             lyxrightaddress
105   ParSkip               0.4
106   BottomSep             1.5
107   ParSep                1.5
108   Align                 Left
109   AlignPossible         Left
110
111   # define the macro \lyxrightaddress
112   Preamble
113   \newcommand{\lyxrightaddress}[1]{
114     \par {\raggedleft \begin{tabular}{l}\ignorespaces
115     #1
116     \end{tabular}
117     \vspace{1.4em}
118     \par}
119   }
120   EndPreamble
121   
122 End