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