]> git.lyx.org Git - lyx.git/blob - lib/latexfonts
move README.Documentation to attic
[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 cochineal
128         GuiName          "Crimson (Cochineal)"
129         Family           rm
130         OsfOption        "proportional,osf"
131         Package          cochineal
132         AltFonts         crimson
133 EndFont
134
135 AltFont crimson
136         GuiName          "Crimson"
137         Family           rm
138         Package          crimson
139 EndFont
140
141 Font cmr
142         GuiName          "Computer Modern Roman"
143         Family           rm
144         SwitchDefault    1
145         OsfFont          eco
146 EndFont
147
148 AltFont eco
149         Family           rm
150         Package          eco
151 EndFont
152
153 Font garamondx
154         GuiName          "URW Garamond"
155         Family           rm
156         OsfOption        osfI
157         Package          garamondx
158         Requires         garamondx-fonts
159         AltFonts         ugm
160 EndFont
161
162 AltFont ugm
163         GuiName          "URW Garamond"
164         Family           rm
165         SwitchDefault    1
166         Requires         ugm
167 EndFont
168
169 Font libertine
170         GuiName          "Libertine"
171         Family           rm
172         OsfOption        osf
173         Package          libertineRoman
174         CompleteFont     libertine
175         AltFonts         libertine-type1,libertine-2012,libertine-legacy
176 EndFont
177
178 AltFont libertine-type1
179         GuiName          "Libertine"
180         Family           rm
181         OsfOption        osf
182         Package          libertine-type1
183         Requires         libertineMono-type1
184 EndFont
185
186 AltFont libertine-2012
187         GuiName          "Libertine"
188         Family           rm
189         OsfOption        lining
190         OsfDefault       1
191         Package          libertine-type1
192 EndFont
193
194 AltFont libertine-legacy
195         GuiName          "Libertine"
196         Family           rm
197         OsfOption        osf
198         Package          libertine
199 EndFont
200
201 Font lmodern
202         GuiName          "Latin Modern Roman"
203         Family           rm
204         Package          lmodern
205         NoMathFont       lmr
206 EndFont
207
208 AltFont lmr
209         GuiName          "Latin Modern Roman"
210         Family           rm
211         SwitchDefault    1
212         Requires         lmodern
213 EndFont
214
215 Font md-charter
216         GuiName          "Bitstream Charter (Mathdesign)"
217         Family           rm
218         OsfOption        expert
219         ScOption         expert
220         OsfScOption      expert
221         Package          mathdesign
222         PackageOption    charter
223         Requires         mdbch
224         Provides         amssymb,amsfonts
225         NoMathFont       mdbch
226 EndFont
227
228 AltFont mdbch
229         GuiName          "Bitstream Charter (Mathdesign)"
230         Family           rm
231         SwitchDefault    1
232         Requires         mdbch
233 EndFont
234
235 Font md-utopia
236         GuiName          "Utopia (Mathdesign)"
237         Family           rm
238         OsfOption        expert
239         ScOption         expert
240         OsfScOption      expert
241         Package          mathdesign
242         PackageOption    utopia
243         Requires         mdput
244         Provides         amssymb,amsfonts
245         NoMathFont       mdput
246 EndFont
247
248 AltFont mdput
249         GuiName          "Utopia (Mathdesign)"
250         Family           rm
251         SwitchDefault    1
252         Requires         mdput
253 EndFont
254
255 Font md-garamond
256         GuiName          "URW Garamond (Mathdesign)"
257         Family           rm
258         OsfOption        expert
259         ScOption         expert
260         OsfScOption      expert
261         Package          mathdesign
262         PackageOption    garamond
263         Requires         mdugm
264         Provides         amssymb,amsfonts
265         NoMathFont       mdugm
266 EndFont
267
268 AltFont mdugm
269         GuiName          "URW Garamond (Mathdesign)"
270         Family           rm
271         SwitchDefault    1
272         Requires         mdugm
273 EndFont
274
275 Font minionpro
276         GuiName          "Minion Pro"
277         Family           rm
278         OsfOption        lf
279         OsfDefault       1
280         Package          MinionPro
281         Provides         amssymb,amsfonts
282         NoMathFont       minionpro-nomath
283 EndFont
284
285 AltFont minionpro-nomath
286         GuiName          "Minion Pro"
287         Family           rm
288         OsfOption        lf
289         OsfDefault       1
290         Package          MinionPro
291         PackageOption    onlytext
292 EndFont
293
294 Font newcent
295         GuiName          "New Century Schoolbook"
296         Family           rm
297         Package          newcent
298 EndFont
299
300 Font NotoSerif-TLF
301         GuiName          "Noto Serif"
302         Family           rm
303         SwitchDefault    1
304         Requires         noto
305         CompleteFont     noto
306 EndFont
307
308 AltFont noto
309         GuiName          "Noto Serif"
310         Family           rm
311         Package          noto
312 EndFont
313
314 Font palatino
315         GuiName          "Palatino"
316         Family           rm
317         OsfOption        osf
318         ScOption         sc
319         OsfScOption      osf
320         Package          mathpazo
321         AltFonts         mathpple,palatino-sty
322         NoMathFont       ppl
323         Requires         psnfss
324 EndFont
325
326 AltFont mathpple
327         GuiName          "Palatino"
328         Family           rm
329         Package          mathpple
330         NoMathFont       ppl
331 EndFont
332
333 AltFont palatino-sty
334         GuiName          "Palatino"
335         Family           rm
336         Package          palatino
337 EndFont
338
339 AltFont ppl
340         GuiName          "Palatino"
341         Family           rm
342         OsfFont          pplj
343         SwitchDefault    1
344 EndFont
345
346 AltFont pplj
347         GuiName          "Palatino"
348         Family           rm
349         SwitchDefault    1
350 EndFont
351
352 Font times
353         GuiName          "Times Roman"
354         Family           rm
355         Package          mathptmx
356         AltFonts         mathptm,times-sty
357         NoMathFont       ptm
358         Requires         psnfss
359 EndFont
360
361 AltFont mathptm
362         GuiName          "Times Roman"
363         Family           rm
364         Package          mathptm
365         NoMathFont       ptm
366 EndFont
367
368 AltFont times-sty
369         GuiName          "Times Roman"
370         Family           rm
371         Package          times
372 EndFont
373
374 AltFont ptm
375         GuiName          "Times Roman"
376         Family           rm
377         SwitchDefault    1
378 EndFont
379
380 Font tgbonum
381         GuiName          "TeX Gyre Bonum"
382         Family           rm
383         Package          tgbonum
384 EndFont
385
386 Font tgchorus
387         GuiName          "TeX Gyre Chorus"
388         Family           rm
389         Package          tgchorus
390 EndFont
391
392 Font tgpagella
393         GuiName          "TeX Gyre Pagella"
394         Family           rm
395         Package          tgpagella
396 EndFont
397
398 Font tgschola
399         GuiName          "TeX Gyre Schola"
400         Family           rm
401         Package          tgschola
402 EndFont
403
404 Font tgtermes
405         GuiName          "TeX Gyre Termes"
406         Family           rm
407         Package          tgtermes
408 EndFont
409
410 # fourier supersedes utopia.sty, but does
411 # not work with OT1 encoding.
412 Font utopia
413         GuiName          "Utopia (Fourier)"
414         Family           rm
415         OsfOption        oldstyle
416         ScOption         expert
417         Package          fourier
418         AltFonts         utopia-sty
419         OT1Font          utopia-sty
420         NoMathFont       futs
421 EndFont
422
423 AltFont utopia-sty
424         GuiName          "Utopia (Fourier)"
425         Family           rm
426         Package          utopia
427 EndFont
428
429 AltFont futs
430         GuiName          "Utopia (Fourier)"
431         Family           rm
432         SwitchDefault    1
433         OsfFont          futj
434 EndFont
435
436 AltFont futj
437         GuiName          "Utopia (Fourier)"
438         Family           rm
439         SwitchDefault    1
440 EndFont
441
442
443 #
444 # SANS SERIF FONTS
445 #
446
447 Font avant
448         GuiName          "Avant Garde"
449         Family           sf
450         Package          avant
451 EndFont
452
453 Font berasans
454         GuiName          "Bera Sans"
455         Family           sf
456         ScaleOption      scaled=$$val
457         Package          berasans
458         Requires         bera
459 EndFont
460
461 Font biolinum
462         GuiName          "Biolinum"
463         Family           sf
464         OsfOption        osf
465         ScaleOption      scaled=$$val
466         Package          biolinum
467         AltFonts         biolinum-type1,biolinum-2012
468 EndFont
469
470 AltFont biolinum-type1
471         GuiName          "Biolinum"
472         Family           sf
473         OsfOption        osf
474         ScaleOption      scaled=$$val
475         Package          biolinum-type1
476         Requires         libertineMono-type1
477 EndFont
478
479 AltFont biolinum-2012
480         GuiName          "Biolinum"
481         Family           sf
482         OsfOption        lining
483         OsfDefault       1
484         Package          biolinum-type1
485 EndFont
486
487 Font cmbr
488         GuiName          "CM Bright"
489         Family           sf
490         SwitchDefault    1
491         Requires         cmbright
492 EndFont
493
494 Font cmss
495         GuiName          "Computer Modern Sans"
496         Family           sf
497         SwitchDefault    1
498 EndFont
499
500 Font helvet
501         GuiName          "Helvetica"
502         Family           sf
503         ScaleOption      scaled=$$val
504         Package          helvet
505         Requires         psnfss
506 EndFont
507
508 Font iwona
509         GuiName         "Iwona"
510         Family          sf
511         Requires        iwona
512         SwitchDefault   1
513 EndFont
514
515 Font iwonal
516         GuiName         "Iwona (Light)"
517         Family          sf
518         Requires        iwona
519         SwitchDefault   1
520 EndFont
521
522 Font iwonac
523         GuiName         "Iwona (Condensed)"
524         Family          sf
525         Requires        iwona
526         SwitchDefault   1
527 EndFont
528
529 Font iwonalc
530         GuiName         "Iwona (Light Condensed)"
531         Family          sf
532         Requires        iwona
533         SwitchDefault   1
534 EndFont
535
536 Font kurier
537         GuiName         "Kurier"
538         Family          sf
539         Requires        kurier
540         SwitchDefault   1
541 EndFont
542
543 Font kurierl
544         GuiName         "Kurier (Light)"
545         Family          sf
546         Requires        kurier
547         SwitchDefault   1
548 EndFont
549
550 Font kurierc
551         GuiName         "Kurier (Condensed)"
552         Family          sf
553         Requires        kurier
554         SwitchDefault   1
555 EndFont
556
557 Font kurierlc
558         GuiName         "Kurier (Light Condensed)"
559         Family          sf
560         Requires        kurier
561         SwitchDefault   1
562 EndFont
563
564 Font lmss
565         GuiName          "Latin Modern Sans"
566         Family           sf
567         SwitchDefault    1
568         Requires         lmodern
569 EndFont
570
571 Font NotoSans-TLF
572         GuiName          "Noto Sans"
573         Family           sf
574         SwitchDefault    1
575         Requires         noto
576 EndFont
577
578 Font tgadventor
579         GuiName          "TeX Gyre Adventor"
580         Family           sf
581         Package          tgadventor
582 EndFont
583
584 Font tgheros
585         GuiName          "TeX Gyre Heros"
586         Family           sf
587         Package          tgheros
588 EndFont
589
590 Font uop
591         GuiName          "URW Classico (Optima)"
592         Family           sf
593         SwitchDefault    1
594         Requires         urwclassico
595 EndFont
596
597
598 #
599 # MONOSPACED FONTS
600 #
601
602 Font beramono
603         GuiName          "Bera Mono"
604         Family           tt
605         ScaleOption      scaled=$$val
606         Package          beramono
607         Requires         bera
608 EndFont
609
610 Font cmtl
611         GuiName          "CM Typewriter Light"
612         Family           tt
613         SwitchDefault    1
614         Requires         cmbright
615 EndFont
616
617 Font cmtt
618         GuiName          "Computer Modern Typewriter"
619         Family           tt
620         SwitchDefault    1
621 EndFont
622
623 Font courier
624         GuiName          "Courier"
625         Family           tt
626         Package          courier
627         Requires         psnfss
628 EndFont
629
630 Font libertine-mono
631         GuiName          "Libertine Mono"
632         Family           tt
633         ScaleOption      scaled=$$val
634         Package          libertineMono
635         AltFonts         libertine-mono-type1
636 EndFont
637
638 AltFont libertine-mono-type1
639         GuiName          "Libertine Mono"
640         Family           tt
641         ScaleOption      scaled=$$val
642         Package          libertineMono-type1
643 EndFont
644
645 Font lmtt
646         GuiName          "Latin Modern Typewriter"
647         Family           tt
648         SwitchDefault    1
649         Requires         lmodern
650 EndFont
651
652 Font luximono
653         GuiName          "LuxiMono"
654         Family           tt
655         ScaleOption      scaled=$$val
656         Package          luximono
657 EndFont
658
659 Font NotoMono-TLF
660         GuiName          "Noto Mono"
661         Family           tt
662         SwitchDefault    1
663         Requires         noto
664 EndFont
665
666 Font tgcursor
667         GuiName          "TeX Gyre Cursor"
668         Family           tt
669         Package          tgcursor
670 EndFont
671
672 Font txtt
673         GuiName          "TX Typewriter"
674         Family           tt
675         SwitchDefault    1
676         Requires         txfonts
677 EndFont
678
679
680 #
681 # MATH FONTS
682 #
683
684 Font cochineal-ntxm
685         GuiName          "Crimson (New TX)"
686         Family           math
687         Package          newtxmath
688         PackageOption    cochineal
689         Provides         amssymb,amsfonts
690 EndFont
691
692 Font eulervm
693         GuiName          "Euler VM"
694         Family           math
695         Package          eulervm
696 EndFont
697
698 Font garamondx-ntxm
699         GuiName          "URW Garamond (New TX)"
700         Family           math
701         Package          newtxmath
702         PackageOption    garamondx
703         Provides         amssymb,amsfonts
704 EndFont
705
706 Font iwona-math
707         GuiName         "Iwona (Math)"
708         Family          math
709         Requires        iwona
710         Preamble
711         % store roman font
712         \let\origrmdefault\rmdefault
713         \usepackage[math]{iwona}
714         % reset stored roman font
715         \renewcommand{\rmdefault}{\origrmdefault}
716         EndPreamble
717 EndFont
718
719 Font kurier-math
720         GuiName         "Kurier (Math)"
721         Family          math
722         Requires        kurier
723         Preamble
724         % store roman font
725         \let\origrmdefault\rmdefault
726         \usepackage[math]{kurier}
727         % reset stored roman font
728         \renewcommand{\rmdefault}{\origrmdefault}
729         EndPreamble
730 EndFont
731
732 Font libertine-ntxm
733         GuiName          "Libertine (New TX)"
734         Family           math
735         Package          newtxmath
736         PackageOption    libertine
737         Provides         amssymb,amsfonts
738 EndFont
739
740 Font minion-ntxm
741         GuiName          "Minion Pro (New TX)"
742         Family           math
743         Package          newtxmath
744         PackageOption    minion
745         Requires         minion2newtx
746         Provides         amssymb,amsfonts
747 EndFont
748
749 Font newtxmath
750         GuiName          "Times Roman (New TX)"
751         Family           math
752         Package          newtxmath
753         Provides         amssymb,amsfonts
754 EndFont