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