]> git.lyx.org Git - features.git/blob - lib/latexfonts
cf5940546fa4e712197e39e9a8e38c5cde512fe0
[features.git] / lib / latexfonts
1 ##########################################################################
2 #
3 # LaTeX fonts natively supported by LyX.
4 #
5 # Syntax:
6 #
7 # Font <name>
8 #       GuiName            "<Gui Name>"
9 #       Family             <rm|sf|tt>
10 #       SwitchDefault      <0|1>
11 #       Package            <LaTeX package to be loaded>
12 #       Requires           <LaTeX package to test for>
13 #       AltPackages        <alternative packages (comma-separated)>
14 #       OT1Package         <alternative package specifically for OT1 encoding>
15 #       CompletePackage    <alternative package for the complete family>
16 #       OsfOption          <option for oldstyle figure support>
17 #       ScOption           <option for true smallcaps support>
18 #       OsfScOption        <option for combined osf and true smallcaps support>
19 #       ScaleOption        <option for font scaling>
20 # EndFont
21 #
22 #
23 # NOTES:
24 #
25 # * Adding a new font results in a FILE FORMAT CHANGE. So if a new font
26 #   is added for the LyX distribution, the according changes need to be
27 #   done.
28 # * "SwitchDefault 1" makes the font to be loaded by switching the default
29 #   family to <name> (e.g., \renewcommand{\rmdefault}{cmr}), whereas
30 #   Package <package> loads it via \usepackage{package}. Normally, only
31 #   one of these options is used per font.
32 # * If AltPackages are defined, LyX will try to load them in the defined
33 #   order if the main package is not available. So
34 #       Package          mathptmx
35 #       AltPackages      mathptm,times
36 #   will try to load mathptm if mathptmx is not available and then times
37 #   if mathptm is not available either.
38 # * If Requires is set, LyX will check for this. If not, it will check
39 #   for Package and AltPackages.
40 # * OT1Package will load the defined package instead of the default
41 #   package if the font encoding is OT1. This is necessary since some
42 #   newer packages for a font do not support this encoding.
43 #   The value "none" tells LyX not to load a package in OT1 encoding.
44 # * CompletePackage is a package that is loaded if the current font is
45 #   selected as rm and both sf and tt are set to "default" (this allows
46 #   f. ex. to load "bera" as opposed to "beraserif").
47 # * OsfScOption overrides any OsfOption and ScOption if both features
48 #   are selected.
49 # * ScaleOption supports the placeholder $$val for the scale value.
50 #
51 ##########################################################################
52
53 #
54 # Roman fonts
55 #
56
57 Font cmr
58         GuiName          "Computer Modern Roman"
59         Family           rm
60         SwitchDefault    1
61         OsfPackage       eco
62 EndFont
63
64 Font lmodern
65         GuiName          "Latin Modern Roman"
66         Family           rm
67         Package          lmodern
68 EndFont
69
70 Font ae
71         GuiName          "AE (Almost European)"
72         Family           rm
73         Package          "ae,aecompl"
74         OT1Package       none
75         Requires         ae
76 EndFont
77
78 Font times
79         GuiName          "Times Roman"
80         Family           rm
81         Package          mathptmx
82         AltPackages      "mathptm,times"
83         Requires         psnfss
84 EndFont
85
86 Font palatino
87         GuiName          "Palatino"
88         Family           rm
89         OsfOption        osf
90         ScOption         sc
91         OsfScOption      osf
92         Package          mathpazo
93         AltPackages      "mathpple,palatino"
94         Requires         psnfss
95 EndFont
96
97 Font charter
98         GuiName          "Bitstream Charter"
99         Family           rm
100         Package          charter
101 EndFont
102
103 Font newcent
104         GuiName          "New Century Schoolbook"
105         Family           rm
106         Package          newcent
107 EndFont
108
109 Font bookman
110         GuiName          "Bookman"
111         Family           rm
112         Package          bookman
113 EndFont
114
115 # fourier supersedes utopia.sty, but does
116 # not work with OT1 encoding.
117 Font utopia
118         GuiName          "Utopia"
119         Family           rm
120         OsfOption        oldstyle
121         ScOption         expert
122         Package          fourier
123         AltPackages      utopia
124         OT1Package       utopia
125 EndFont
126
127 Font beraserif
128         GuiName          "Bera Serif"
129         Family           rm
130         Package          beraserif
131         CompletePackage  bera
132         Requires         bera
133 EndFont
134
135 Font ccfonts
136         GuiName          "Concrete Roman"
137         Family           rm
138         Package          ccfonts
139 EndFont
140
141 Font chancery
142         GuiName          "Zapf Chancery"
143         Family           rm
144         Package          chancery
145 EndFont
146
147
148 #
149 # SansSerif fonts
150 #
151
152
153 Font cmss
154         GuiName          "Computer Modern Sans"
155         Family           sf
156         SwitchDefault    1
157 EndFont
158
159
160 Font lmss
161         GuiName          "Latin Modern Sans"
162         Family           sf
163         SwitchDefault    1
164         Requires         lmodern
165 EndFont
166
167 Font helvet
168         GuiName          "Helvetica"
169         Family           sf
170         ScaleOption      scaled=$$val
171         Package          helvet
172         Requires         psnfss
173 EndFont
174
175 Font avant
176         GuiName          "Avant Garde"
177         Family           sf
178         Package          avant
179 EndFont
180
181 Font berasans
182         GuiName          "Bera Sans"
183         Family           sf
184         ScaleOption      scaled=$$val
185         Package          berasans
186         Requires         bera
187 EndFont
188
189 Font cmbr
190         GuiName          "CM Bright"
191         Family           sf
192         SwitchDefault    1
193         Requires         cmbright
194 EndFont
195
196
197 #
198 # Monospaced fonts
199 #
200
201 Font cmtt
202         GuiName          "Computer Modern Typewriter"
203         Family           tt
204         SwitchDefault    1
205 EndFont
206
207 Font lmtt
208         GuiName          "Latin Modern Typewriter"
209         Family           tt
210         SwitchDefault    1
211         Requires         lmodern
212 EndFont
213
214 Font courier
215         GuiName          "Courier"
216         Family           tt
217         Package          courier
218         Requires         psnfss
219 EndFont
220
221 Font beramono
222         GuiName          "Bera Mono"
223         Family           tt
224         ScaleOption      scaled=$$val
225         Package          beramono
226         Requires         bera
227 EndFont
228
229 Font luximono
230         GuiName          "LuxiMono"
231         Family           tt
232         ScaleOption      scaled=$$val
233         Package          luximono
234 EndFont
235
236 Font cmtl
237         GuiName          "CM Typewriter Light"
238         Family           tt
239         SwitchDefault    1
240         Requires         cmbright
241 EndFont
242