Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fichiers:fontes:utiliser_des_fontes_non_standard_en_plain_tex [2018/05/22 20:33] – joseph.wright | fichiers:fontes:utiliser_des_fontes_non_standard_en_plain_tex [2018/12/04 00:19] (Version actuelle) – jejust | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | # Using non-standard fonts in Plain TeX | + | ====== |
| - | + | ||
| Ligne 8: | Ligne 6: | ||
| writing the package, and leaves you to do the rest. | writing the package, and leaves you to do the rest. | ||
| + | To use something other than Knuth' | ||
| + | mechanism, the '' | ||
| - | To use something other than Knuth' | + | < |
| - | mechanism, the `\font` primitive: | + | |
| - | ```latex | + | |
| \font\foo=nonstdfont | \font\foo=nonstdfont | ||
| ... | ... | ||
| \foo | \foo | ||
| Text set using nonstdfont ... | Text set using nonstdfont ... | ||
| - | ``` | + | </ |
| - | The name you use (`nonstdfont`, above) is the name of the | + | The name you use ('' |
| - | `tfm` file for the font you want. | + | '' |
| + | If you want to use an italic version of '' | ||
| + | '' | ||
| - | If you want to use an italic version of `\foo`, you need to use | + | < |
| - | `\font` again: | + | |
| - | ```latex | + | |
| \font\fooi=nonstdfont-italic | \font\fooi=nonstdfont-italic | ||
| ... | ... | ||
| \fooi | \fooi | ||
| Text set using nonstdfont italic... | Text set using nonstdfont italic... | ||
| - | ``` | + | </ |
| This is all very elementary stuff, and serves for simple use of fonts. | This is all very elementary stuff, and serves for simple use of fonts. | ||
| However, there are wrinkles, the most important of which is the matter | However, there are wrinkles, the most important of which is the matter | ||
| - | of [font encodings](./ | + | of [[FAQ-whatenc|font encodings]]. One almost never sees new fonts |
| - | that use Knuth' | + | that use Knuth' |
| built into Plain TeX, so that some macros of Plain TeX need to be | built into Plain TeX, so that some macros of Plain TeX need to be | ||
| changed to use the fonts. | changed to use the fonts. | ||
| - | using a '' | + | using a "font selection scheme" --- this ' |
| for ' | for ' | ||
| separate information about the fonts you use, so the changes to | separate information about the fonts you use, so the changes to | ||
| encoding-specific commands happen automagically. | encoding-specific commands happen automagically. | ||
| - | + | If you only want to use the [[FAQ-ECfonts|EC fonts]], you | |
| - | If you only want to use the [EC fonts](./FAQ-ECfonts.html), you | + | can in principle use the [[ctanpkg> |
| - | can in principle use the [`ec-plain`](http:// | + | |
| of Plain TeX which you can run in the same way that you run | of Plain TeX which you can run in the same way that you run | ||
| Plain TeX using the original CM fonts, by invoking | Plain TeX using the original CM fonts, by invoking | ||
| - | `tex`. ([`Ec-plain`](http:// | + | '' |
| for reasons which aren't immediately clear, but which might cause | for reasons which aren't immediately clear, but which might cause | ||
| problems if you're hoping to use Type 1 versions of the fonts.) | problems if you're hoping to use Type 1 versions of the fonts.) | ||
| - | + | The [[ctanpkg> | |
| - | The [`font_selection`](http: | + | |
| it provides font face and size, but not family selection. | it provides font face and size, but not family selection. | ||
| you considerable freedom, but leaves you stuck with the original | you considerable freedom, but leaves you stuck with the original | ||
| CM fonts. | CM fonts. | ||
| - | |||
| Other Plain TeX approaches to the problem (packages | Other Plain TeX approaches to the problem (packages | ||
| - | [`plnfss`](http:// | + | [[ctanpkg> |
| Plain TeX model, towards the sort of font selection provided by | Plain TeX model, towards the sort of font selection provided by | ||
| - | ConTeXt and LaTeX& | + | ConTeXt and LaTeX --- font selection that allows you to change |
| family, as well as size and face. The remaining packages all make | family, as well as size and face. The remaining packages all make | ||
| provision for using encodings other than Knuth' | provision for using encodings other than Knuth' | ||
| - | + | [[ctanpkg> | |
| - | [`Plnfss`](http:// | + | however, it is capable of using font description ('' |
| - | however, it is capable of using font description (`fd`) files | + | |
| created for LaTeX. | created for LaTeX. | ||
| - | for integrating outline fonts with TeX generate | + | for integrating outline fonts with TeX generate |
| in their process.) | in their process.) | ||
| - | + | [[ctanpkg> | |
| - | [`Fontch`](http:// | + | |
| encodings, which you select by arcane commands, such as: | encodings, which you select by arcane commands, such as: | ||
| - | ```latex | + | |
| + | < | ||
| \let\LMTone\relax | \let\LMTone\relax | ||
| \input fontch.tex | \input fontch.tex | ||
| - | ``` | + | </ |
| for T1. | for T1. | ||
| - | + | [[ctanpkg> | |
| - | [`Ofs`](http:// | + | |
| alternatives, | alternatives, | ||
| T1 it covers the encoding IL2, which is favoured in the | T1 it covers the encoding IL2, which is favoured in the | ||
| - | Czech Republic and Slovakia. | + | Czech Republic and Slovakia. |
| allowing you the dubious pleasure of using fonts such as the | allowing you the dubious pleasure of using fonts such as the | ||
| - | [`pxfonts` and `txfonts`](./ | + | [[FAQ-psfchoice|'' |
| - | The [`pdcmac`](http:// | + | The [[ctanpkg> |
| - | document preparation environment, | + | document preparation environment, |
| - | of its components is a font selection scheme, [`pdcfsel`](http:// | + | of its components is a font selection scheme, [[ctanpkg> |
| is rather simple but adequately powerful for many uses. The package | is rather simple but adequately powerful for many uses. The package | ||
| doesn' | doesn' | ||
| Ligne 98: | Ligne 90: | ||
| seems not to offer a font selection scheme.) | seems not to offer a font selection scheme.) | ||
| - | + | The [[ctanpkg> | |
| - | The [`font-change`](http:// | + | approach |
| - | approach& | + | |
| that may be included in a document to change font usage. | that may be included in a document to change font usage. | ||
| package' | package' | ||
| - | + | Simply to change font // | |
| - | Simply to change font _size_ | + | |
| the default font itself), may be done using the rather straightforward | the default font itself), may be done using the rather straightforward | ||
| - | [`varisize`](http:// | + | [[ctanpkg> |
| - | 20 points (nominal sizes, all). Font size commands are generated when | + | 20 points (nominal sizes, all). Font size commands are generated when |
| - | any of the package files is loaded, so the `11pt.tex` defines a | + | any of the package files is loaded, so the '' |
| - | command | + | command |
| - | back'' | + | by defining a '' |
| - | + | ||
| - | + | ||
| + | ----- | ||
| + | //Source:// [[faquk> | ||
| - | ---- | + | {{htmlmetatags> |
| - | Content last updated: 2014-06-10 | + | metatag-og: |
| + | metatag-og: | ||
| + | }} | ||

