]> git.lyx.org Git - lyx.git/blob - lib/latexfonts
Fix parsing of literate chunks (bug 7838)
[lyx.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|math>
10 #       SwitchDefault      <0|1>
11 #       Package            <LaTeX package to be loaded>
12 #       Requires           <LaTeX package to test for>
13 #       AltFonts           <alternative fonts (comma-separated)>
14 #       OT1Font            <alternative font specifically for OT1 encoding>
15 #       CompleteFont       <alternative package for the complete family>
16 #       NoMathFont         <alternative font that does not change math>
17 #       PackageOptions     <general options to be passed to the package>
18 #       OsfOption          <option for oldstyle figure support>
19 #       OsfFont            <extra font for oldstyle figures>
20 #       OsfDefault         <0|1>
21 #       ScOption           <option for true smallcaps support>
22 #       OsfScOption        <option for combined osf and true smallcaps support>
23 #       ScaleOption        <option for font scaling>
24 #       Provides           <features provided by the font packages (comma-separated)>
25 #       Preamble
26 #         <some arbitrary LaTeX code to be issued in the preamble>
27 #       EndPreamble
28 # EndFont
29 #
30 #
31 # NOTES:
32 #
33 # * Adding a new font results in a FILE FORMAT CHANGE. So if a new font
34 #   is added for the LyX distribution, the according changes need to be
35 #   done.
36 # * "SwitchDefault 1" makes the font to be loaded by switching the default
37 #   family to <name> (e.g., \renewcommand{\rmdefault}{cmr}), whereas
38 #   Package <package> loads it via \usepackage{package}. Only one of these
39 #   options is used per font (SwitchDefault takes precendende). Note that
40 #   SwitchDefault uses the font name.
41 # * In addition to normal fonts, you can also define alternative fonts
42 #   using the AltFont...EndFont tags. These alternative fonts will not
43 #   be added to the GUI, but LyX will fall back on them under specific
44 #   circumstances (e.g. if the main font is not available; see below).
45 # * If AltFonts are defined, LyX will try to load them in the defined
46 #   order if the main package is not available. So
47 #       Package          mathptmx
48 #       AltFonts         mathptm,times
49 #   will try to load mathptm if mathptmx is not available and then times
50 #   if mathptm is not available either.
51 #   AltFonts need to be defined separately using AltFont ... EndFont tags.
52 # * If Requires is set, LyX will check for this. If not, it will check
53 #   for Package and AltFonts.
54 # * OT1Font will load the defined font if the font encoding is OT1. This is
55 #   necessary since some newer font packages do not support this encoding.
56 #   The value "none" tells LyX not to load any font in OT1 encoding.
57 #   OT1Fonts need to be defined separately using AltFont ... EndFont tags.
58 # * The CompleteFont is loaded if the current font is selected as rm and
59 #   both sf and tt are set to "default" (this allows for instance to load
60 #   "bera" as opposed to "beraserif").
61 #   CompleteFonts need to be defined separately using AltFont ... EndFont
62 #   tags.
63 # * OsfFont is a font that is loaded additionally in and that provides
64 #   Old Style Figures for a given font (e.g. eco).
65 # * OsfScOption overrides any OsfOption and ScOption if both features
66 #   are selected.
67 # * Set OsfDefault to true for fonts which have Old Style Figures by
68 #   default and provide an option for lining figures. Pass this option
69 #   to OsfOption.
70 # * ScaleOption supports the placeholder $$val for the scale value.
71 # * The Preamble code is output immediately after the respective font
72 #   loading command.
73 #
74 ##########################################################################
75
76
77 #
78 # ROMAN FONTS
79 #
80
81 Font ae
82         GuiName          "AE (Almost European)"
83         Family           rm
84         Package          "ae,aecompl"
85         OT1Font          none
86         Requires         ae
87 EndFont
88
89 Font beraserif
90         GuiName          "Bera Serif"
91         Family           rm
92         Package          beraserif
93         CompleteFont     bera
94         Requires         bera
95 EndFont
96
97 AltFont bera
98         GuiName          "Bera Serif"
99         Family           rm
100         Package          bera
101 EndFont
102
103 Font bookman
104         GuiName          "Bookman"
105         Family           rm
106         Package          bookman
107 EndFont
108
109 Font ccfonts
110         GuiName          "Concrete Roman"
111         Family           rm
112         Package          ccfonts
113 EndFont
114
115 Font chancery
116         GuiName          "Zapf Chancery"
117         Family           rm
118         Package          chancery
119 EndFont
120
121 Font charter
122         GuiName          "Bitstream Charter (PSNFSS)"
123         Family           rm
124         Package          charter
125 EndFont
126
127 Font cmr
128         GuiName          "Computer Modern Roman"
129         Family           rm
130         SwitchDefault    1
131         OsfFont          eco
132 EndFont
133
134 AltFont eco
135         Family           rm
136         Package          eco
137 EndFont
138
139 Font garamondx
140         GuiName          "URW Garamond"
141         Family           rm
142         OsfOption        osfI
143         Package          garamondx
144         Requires         garamondx-fonts
145         AltFonts         ugm
146 EndFont
147
148 AltFont ugm
149         GuiName          "URW Garamond"
150         Family           rm
151         SwitchDefault    1
152 EndFont
153
154 Font libertine
155         GuiName          "Libertine"
156         Family           rm
157         OsfOption        osf
158         Package          libertine-type1
159         AltFonts         libertine-2012,libertine-legacy
160         Requires         libertineMono-type1
161 EndFont
162
163 AltFont libertine-2012
164         GuiName          "Libertine"
165         Family           rm
166         OsfOption        lining
167         OsfDefault       1
168         Package          libertine-type1
169 EndFont
170
171 AltFont libertine-legacy
172         GuiName          "Libertine"
173         Family           rm
174         OsfOption        osf
175         Package          libertine
176 EndFont
177
178 Font lmodern
179         GuiName          "Latin Modern Roman"
180         Family           rm
181         Package          lmodern
182         NoMathFont       lmr
183 EndFont
184
185 AltFont lmr
186         GuiName          "Latin Modern Roman"
187         Family           rm
188         SwitchDefault    1
189         Requires         lmodern
190 EndFont
191
192 Font md-charter
193         GuiName          "Bitstream Charter (Mathdesign)"
194         Family           rm
195         OsfOption        expert
196         ScOption         expert
197         OsfScOption      expert
198         Package          mathdesign
199         PackageOption    charter
200         Requires         mdbch
201         Provides         amssymb,amsfonts
202         NoMathFont       mdbch
203 EndFont
204
205 AltFont mdbch
206         GuiName          "Bitstream Charter (Mathdesign)"
207         Family           rm
208         SwitchDefault    1
209         Requires         mdbch
210 EndFont
211
212 Font md-utopia
213         GuiName          "Utopia (Mathdesign)"
214         Family           rm
215         OsfOption        expert
216         ScOption         expert
217         OsfScOption      expert
218         Package          mathdesign
219         PackageOption    utopia
220         Requires         mdput
221         Provides         amssymb,amsfonts
222         NoMathFont       mdput
223 EndFont
224
225 AltFont mdput
226         GuiName          "Utopia (Mathdesign)"
227         Family           rm
228         SwitchDefault    1
229         Requires         mdput
230 EndFont
231
232 Font md-garamond
233         GuiName          "URW Garamond (Mathdesign)"
234         Family           rm
235         OsfOption        expert
236         ScOption         expert
237         OsfScOption      expert
238         Package          mathdesign
239         PackageOption    garamond
240         Requires         mdugm
241         Provides         amssymb,amsfonts
242         NoMathFont       mdugm
243 EndFont
244
245 AltFont mdugm
246         GuiName          "URW Garamond (Mathdesign)"
247         Family           rm
248         SwitchDefault    1
249         Requires         mdugm
250 EndFont
251
252 Font minionpro
253         GuiName          "Minion Pro"
254         Family           rm
255         OsfOption        lf
256         OsfDefault       1
257         Package          MinionPro
258         Provides         amssymb,amsfonts
259         NoMathFont       minionpro-nomath
260 EndFont
261
262 AltFont minionpro-nomath
263         GuiName          "Minion Pro"
264         Family           rm
265         OsfOption        lf
266         OsfDefault       1
267         Package          MinionPro
268         PackageOption    onlytext
269 EndFont
270
271 Font newcent
272         GuiName          "New Century Schoolbook"
273         Family           rm
274         Package          newcent
275 EndFont
276
277 Font palatino
278         GuiName          "Palatino"
279         Family           rm
280         OsfOption        osf
281         ScOption         sc
282         OsfScOption      osf
283         Package          mathpazo
284         AltFonts         mathpple,palatino-sty
285         NoMathFont       ppl
286         Requires         psnfss
287 EndFont
288
289 AltFont mathpple
290         GuiName          "Palatino"
291         Family           rm
292         Package          mathpple
293         NoMathFont       ppl
294 EndFont
295
296 AltFont palatino-sty
297         GuiName          "Palatino"
298         Family           rm
299         Package          palatino
300 EndFont
301
302 AltFont ppl
303         GuiName          "Palatino"
304         Family           rm
305         OsfFont          pplj
306         SwitchDefault    1
307 EndFont
308
309 AltFont pplj
310         GuiName          "Palatino"
311         Family           rm
312         SwitchDefault    1
313 EndFont
314
315 Font times
316         GuiName          "Times Roman"
317         Family           rm
318         Package          mathptmx
319         AltFonts         mathptm,times-sty
320         NoMathFont       ptm
321         Requires         psnfss
322 EndFont
323
324 AltFont mathptm
325         GuiName          "Times Roman"
326         Family           rm
327         Package          mathptm
328         NoMathFont       ptm
329 EndFont
330
331 AltFont times-sty
332         GuiName          "Times Roman"
333         Family           rm
334         Package          times
335 EndFont
336
337 AltFont ptm
338         GuiName          "Times Roman"
339         Family           rm
340         SwitchDefault    1
341 EndFont
342
343 Font tgbonum
344         GuiName          "TeX Gyre Bonum"
345         Family           rm
346         Package          tgbonum
347 EndFont
348
349 Font tgchorus
350         GuiName          "TeX Gyre Chorus"
351         Family           rm
352         Package          tgchorus
353 EndFont
354
355 Font tgpagella
356         GuiName          "TeX Gyre Pagella"
357         Family           rm
358         Package          tgpagella
359 EndFont
360
361 Font tgschola
362         GuiName          "TeX Gyre Schola"
363         Family           rm
364         Package          tgschola
365 EndFont
366
367 Font tgtermes
368         GuiName          "TeX Gyre Termes"
369         Family           rm
370         Package          tgtermes
371 EndFont
372
373 # fourier supersedes utopia.sty, but does
374 # not work with OT1 encoding.
375 Font utopia
376         GuiName          "Utopia (Fourier)"
377         Family           rm
378         OsfOption        oldstyle
379         ScOption         expert
380         Package          fourier
381         AltFonts         utopia-sty
382         OT1Font          utopia-sty
383         NoMathFont       futs
384 EndFont
385
386 AltFont utopia-sty
387         GuiName          "Utopia (Fourier)"
388         Family           rm
389         Package          utopia
390 EndFont
391
392 AltFont futs
393         GuiName          "Utopia (Fourier)"
394         Family           rm
395         SwitchDefault    1
396         OsfFont          futj
397 EndFont
398
399 AltFont futj
400         GuiName          "Utopia (Fourier)"
401         Family           rm
402         SwitchDefault    1
403 EndFont
404
405
406 #
407 # SANS SERIF FONTS
408 #
409
410 Font avant
411         GuiName          "Avant Garde"
412         Family           sf
413         Package          avant
414 EndFont
415
416 Font berasans
417         GuiName          "Bera Sans"
418         Family           sf
419         ScaleOption      scaled=$$val
420         Package          berasans
421         Requires         bera
422 EndFont
423
424 Font biolinum
425         GuiName          "Biolinum"
426         Family           sf
427         OsfOption        osf
428         ScaleOption      scaled=$$val
429         Package          biolinum-type1
430         Requires         libertineMono-type1
431         AltFonts         biolinum-2012
432 EndFont
433
434 AltFont biolinum-2012
435         GuiName          "Biolinum"
436         Family           sf
437         OsfOption        lining
438         OsfDefault       1
439         Package          biolinum-type1
440 EndFont
441
442 Font cmbr
443         GuiName          "CM Bright"
444         Family           sf
445         SwitchDefault    1
446         Requires         cmbright
447 EndFont
448
449 Font cmss
450         GuiName          "Computer Modern Sans"
451         Family           sf
452         SwitchDefault    1
453 EndFont
454
455 Font helvet
456         GuiName          "Helvetica"
457         Family           sf
458         ScaleOption      scaled=$$val
459         Package          helvet
460         Requires         psnfss
461 EndFont
462
463 Font kurier
464         GuiName         "Kurier"
465         Family          sf
466         Requires        kurier
467         SwitchDefault   1
468 EndFont
469
470 Font kurierl
471         GuiName         "Kurier (Light)"
472         Family          sf
473         Requires        kurier
474         SwitchDefault   1
475 EndFont
476
477 Font kurierc
478         GuiName         "Kurier (Condensed)"
479         Family          sf
480         Requires        kurier
481         SwitchDefault   1
482 EndFont
483
484 Font kurierlc
485         GuiName         "Kurier (Light Condensed)"
486         Family          sf
487         Requires        kurier
488         SwitchDefault   1
489 EndFont
490
491 Font lmss
492         GuiName          "Latin Modern Sans"
493         Family           sf
494         SwitchDefault    1
495         Requires         lmodern
496 EndFont
497
498 Font tgadventor
499         GuiName          "TeX Gyre Adventor"
500         Family           sf
501         Package          tgadventor
502 EndFont
503
504 Font tgheros
505         GuiName          "TeX Gyre Heros"
506         Family           sf
507         Package          tgheros
508 EndFont
509
510 Font uop
511         GuiName          "URW Classico (Optima)"
512         Family           sf
513         SwitchDefault    1
514         Requires         urwclassico
515 EndFont
516
517
518 #
519 # MONOSPACED FONTS
520 #
521
522 Font beramono
523         GuiName          "Bera Mono"
524         Family           tt
525         ScaleOption      scaled=$$val
526         Package          beramono
527         Requires         bera
528 EndFont
529
530 Font cmtl
531         GuiName          "CM Typewriter Light"
532         Family           tt
533         SwitchDefault    1
534         Requires         cmbright
535 EndFont
536
537 Font cmtt
538         GuiName          "Computer Modern Typewriter"
539         Family           tt
540         SwitchDefault    1
541 EndFont
542
543 Font courier
544         GuiName          "Courier"
545         Family           tt
546         Package          courier
547         Requires         psnfss
548 EndFont
549
550 Font libertine-mono
551         GuiName          "Libertine Mono"
552         Family           tt
553         ScaleOption      scaled=$$val
554         Package          libertineMono-type1
555 EndFont
556
557 Font lmtt
558         GuiName          "Latin Modern Typewriter"
559         Family           tt
560         SwitchDefault    1
561         Requires         lmodern
562 EndFont
563
564 Font luximono
565         GuiName          "LuxiMono"
566         Family           tt
567         ScaleOption      scaled=$$val
568         Package          luximono
569 EndFont
570
571 Font tgcursor
572         GuiName          "TeX Gyre Cursor"
573         Family           tt
574         Package          tgcursor
575 EndFont
576
577 Font txtt
578         GuiName          "TX Typewriter"
579         Family           tt
580         SwitchDefault    1
581         Requires         txfonts
582 EndFont
583
584
585 #
586 # MATH FONTS
587 #
588
589 Font eulervm
590         GuiName          "Euler VM"
591         Family           math
592         Package          eulervm
593 EndFont
594
595 Font garamondx-ntxm
596         GuiName          "URW Garamond (New TX)"
597         Family           math
598         Package          newtxmath
599         PackageOption    garamondx
600         Provides         amssymb,amsfonts
601 EndFont
602
603 Font kurier-math
604         GuiName         "Kurier (Math)"
605         Family          math
606         Requires        kurier
607         Preamble
608         % store roman font
609         \let\origrmdefault\rmdefault
610         \usepackage[math]{kurier}
611         % reset stored roman font
612         \renewcommand{\rmdefault}{\origrmdefault}
613         EndPreamble
614 EndFont
615
616 Font libertine-ntxm
617         GuiName          "Libertine (New TX)"
618         Family           math
619         Package          newtxmath
620         PackageOption    libertine
621         Provides         amssymb,amsfonts
622 EndFont
623
624 Font minion-ntxm
625         GuiName          "Minion Pro (New TX)"
626         Family           math
627         Package          newtxmath
628         PackageOption    minion
629         Requires         minion2newtx
630         Provides         amssymb,amsfonts
631 EndFont
632
633 Font newtxmath
634         GuiName          "Times Roman (New TX)"
635         Family           math
636         Package          newtxmath
637         Provides         amssymb,amsfonts
638 EndFont