]> git.lyx.org Git - lyx.git/blob - lib/layouts/braille.module
dinbrief: fix typos, correct obsolete environments, add missing environments, patch...
[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 10
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 # default Braille
21 Style Braille_(default)
22         LatexType               command
23         LatexName               braillenormal
24         NextNoIndent            1
25         LeftMargin              XBraille:
26         LabelSep                xx
27         ParSkip                 0.0
28         ItemSep                 0.2
29         TopSep                  0.7
30         BottomSep               0.7
31         ParSep                  0.3
32         Align                   Block
33         AlignPossible           Block, Left
34         LabelType               Static
35         LabelString             "Braille:"
36         LabelFont
37                 Shape           Italic
38                 Color           Blue
39         EndFont
40 End
41
42 # Braille in text size
43 Style Braille_(textsize)
44         LatexType               command
45         LatexName               brailletext
46         NextNoIndent            1
47         LeftMargin              XBraille:
48         LabelSep                xx
49         ParSkip                 0.0
50         ItemSep                 0.2
51         TopSep                  0.7
52         BottomSep               0.7
53         ParSep                  0.3
54         Align                   Block
55         AlignPossible           Block, Left
56         LabelType               Static
57         LabelString             "Braille:"
58         LabelFont
59                 Shape           Italic
60                 Color           Blue
61         EndFont
62 End
63
64 # turn on dots
65 Style Braille_(dots_on)
66         LatexType               command
67         LatexName               brailleputtinydotstrue
68         NextNoIndent            1
69         KeepEmpty               1
70         LeftMargin              XBraille_dots_on
71         LabelSep                xx
72         ParSkip                 0.0
73         ItemSep                 0.2
74         TopSep                  0.7
75         BottomSep               0.7
76         ParSep                  0.3
77         Align                   Block
78         AlignPossible           Block, Left
79         LabelType               Static
80         LabelString             "Braille_dots_on"
81         LabelFont
82                 Shape           Italic
83                 Color           Green
84         EndFont
85 End
86
87 # turn off dots
88 Style Braille_(dots_off)
89         LatexType               command
90         LatexName               brailleputtinydotsfalse
91         NextNoIndent            1
92         KeepEmpty               1
93         LeftMargin              XBraille_dots_off
94         LabelSep                xx
95         ParSkip                 0.0
96         ItemSep                 0.2
97         TopSep                  0.7
98         BottomSep               0.7
99         ParSep                  0.3
100         Align                   Block
101         AlignPossible           Block, Left
102         LabelType               Static
103         LabelString             "Braille_dots_off"
104         LabelFont
105                 Shape           Italic
106                 Color           Green
107         EndFont
108 End
109
110 # turn off mirroring
111 Style Braille_(mirror_on)
112         LatexType               command
113         LatexName               braillemirrortrue
114         NextNoIndent            1
115         KeepEmpty               1
116         LeftMargin              XBraille_mirror_on
117         LabelSep                xx
118         ParSkip                 0.0
119         ItemSep                 0.2
120         TopSep                  0.7
121         BottomSep               0.7
122         ParSep                  0.3
123         Align                   Block
124         AlignPossible           Block, Left
125         LabelType               Static
126         LabelString             "Braille_mirror_on"
127         LabelFont
128                 Shape           Italic
129                 Color           Green
130         EndFont
131 End
132
133 # turn off mirroring
134 Style Braille_(mirror_off)
135         LatexType               command
136         LatexName               braillemirrorfalse
137         NextNoIndent            1
138         KeepEmpty               1
139         LeftMargin              XBraille_mirror_off
140         LabelSep                xx
141         ParSkip                 0.0
142         ItemSep                 0.2
143         TopSep                  0.7
144         BottomSep               0.7
145         ParSep                  0.3
146         Align                   Block
147         AlignPossible           Block, Left
148         LabelType               Static
149         LabelString             "Braille_mirror_off"
150         LabelFont
151                 Shape           Italic
152                 Color           Green
153         EndFont
154 End
155