]> git.lyx.org Git - lyx.git/blob - lib/layouts/braille.module
multicol.module: use the layout argument mechanism
[lyx.git] / lib / layouts / braille.module
1 #\DeclareLyXModule[braille.sty]{Braille}
2 #DescriptionBegin
3 #Defines an environment to typeset Braille.
4 #For more details see Braille.lyx in examples.
5 #DescriptionEnd
6 # Author: Uwe Stöhr <uwestoehr@web.de>
7
8 Format 43
9
10 AddToPreamble
11         \usepackage{braille}
12         \newcommand{\braillenormal}[1]
13          {\setlength{\brailleunit}{2.4mm}\braille{#1}}
14         % With \brailleunit == 0.75ex, the braille letters will
15         % approximately match the other letters in size.
16         \newcommand{\brailletext}[1]
17          {\setlength{\brailleunit}{0.75ex}\braille{#1}}
18 EndPreamble
19
20
21 # default Braille
22 Style Braille_(default)
23         LatexType               command
24         LatexName               braillenormal
25         NextNoIndent            1
26         LeftMargin              XBraille:
27         LabelSep                xx
28         ParSkip                 0.0
29         ItemSep                 0.2
30         TopSep                  0.7
31         BottomSep               0.7
32         ParSep                  0.3
33         Align                   Block
34         AlignPossible           Block, Left
35         LabelType               Static
36         LabelString             "Braille:"
37         LabelFont
38                 Shape           Italic
39                 Color           Blue
40         EndFont
41 End
42
43
44 # Braille in text size
45 Style Braille_(textsize)
46         LatexType               command
47         LatexName               brailletext
48         NextNoIndent            1
49         LeftMargin              XBraille:
50         LabelSep                xx
51         ParSkip                 0.0
52         ItemSep                 0.2
53         TopSep                  0.7
54         BottomSep               0.7
55         ParSep                  0.3
56         Align                   Block
57         AlignPossible           Block, Left
58         LabelType               Static
59         LabelString             "Braille:"
60         LabelFont
61                 Shape           Italic
62                 Color           Blue
63         EndFont
64 End
65
66
67 # turn on dots
68 Style Braille_(dots_on)
69         LatexType               command
70         LatexName               brailleputtinydotstrue
71         NextNoIndent            1
72         KeepEmpty               1
73         LeftMargin              XBraille_dots_on
74         LabelSep                xx
75         ParSkip                 0.0
76         ItemSep                 0.2
77         TopSep                  0.7
78         BottomSep               0.7
79         ParSep                  0.3
80         Align                   Block
81         AlignPossible           Block, Left
82         LabelType               Static
83         LabelString             "Braille_dots_on"
84         LabelFont
85                 Shape           Italic
86                 Color           Green
87         EndFont
88 End
89
90
91 # turn off dots
92 Style Braille_(dots_off)
93         LatexType               command
94         LatexName               brailleputtinydotsfalse
95         NextNoIndent            1
96         KeepEmpty               1
97         LeftMargin              XBraille_dots_off
98         LabelSep                xx
99         ParSkip                 0.0
100         ItemSep                 0.2
101         TopSep                  0.7
102         BottomSep               0.7
103         ParSep                  0.3
104         Align                   Block
105         AlignPossible           Block, Left
106         LabelType               Static
107         LabelString             "Braille_dots_off"
108         LabelFont
109                 Shape           Italic
110                 Color           Green
111         EndFont
112 End
113
114
115 # turn off mirroring
116 Style Braille_(mirror_on)
117         LatexType               command
118         LatexName               braillemirrortrue
119         NextNoIndent            1
120         KeepEmpty               1
121         LeftMargin              XBraille_mirror_on
122         LabelSep                xx
123         ParSkip                 0.0
124         ItemSep                 0.2
125         TopSep                  0.7
126         BottomSep               0.7
127         ParSep                  0.3
128         Align                   Block
129         AlignPossible           Block, Left
130         LabelType               Static
131         LabelString             "Braille_mirror_on"
132         LabelFont
133                 Shape           Italic
134                 Color           Green
135         EndFont
136 End
137
138
139 # turn off mirroring
140 Style Braille_(mirror_off)
141         LatexType               command
142         LatexName               braillemirrorfalse
143         NextNoIndent            1
144         KeepEmpty               1
145         LeftMargin              XBraille_mirror_off
146         LabelSep                xx
147         ParSkip                 0.0
148         ItemSep                 0.2
149         TopSep                  0.7
150         BottomSep               0.7
151         ParSep                  0.3
152         Align                   Block
153         AlignPossible           Block, Left
154         LabelType               Static
155         LabelString             "Braille_mirror_off"
156         LabelFont
157                 Shape           Italic
158                 Color           Green
159         EndFont
160 End
161
162
163 InsetLayout "Flex:Braillebox"
164         LyxType                 custom
165         LatexType               command
166         LatexName               braillebox
167         LabelString             "Braille box"
168         Font
169           Color                 foreground
170           Size                  Small
171           Family                Roman
172           Shape                 Up
173           Series                Medium
174           Misc                  No_Emph
175           Misc                  No_Noun
176           Misc                  No_Bar
177         EndFont
178         LabelFont
179           Color                 green
180           Size                  Small
181         EndFont
182 End
183