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:ou_sont_les_fontes_am [2018/06/03 14:18] – samcarter | 5_fichiers:fontes:ou_sont_les_fontes_am [2022/11/30 20:36] (Version actuelle) – Codes nettoyés dbitouze | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== |
- | title: | + | |
- | category: errors | + | |
- | tags: deprecated | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | One _still_ | + | |
+ | One // | ||
series of fonts. | series of fonts. | ||
and they were the predecessors of the Computer Modern fonts that we | and they were the predecessors of the Computer Modern fonts that we | ||
- | all know and love (or hate) | + | all know and love (or hate)†. |
- | <sup class=" | + | |
- | The fonts acquired their label " | + | |
- | that their first implementation in MetaFont79 still wasn't quite right; | + | |
- | Knuth' | + | |
- | </ | + | |
There' | There' | ||
fonts; they are (as their name implies) almost (but not quite) the | fonts; they are (as their name implies) almost (but not quite) the | ||
- | same as the `cm` series; if you're faced with a document that requests | + | same as the '' |
them, the only reasonable approach is to edit the document to replace | them, the only reasonable approach is to edit the document to replace | ||
- | `am*` font names with `cm*`. | + | '' |
+ | |||
+ | //† The fonts acquired their label " | ||
+ | // | ||
The appearance of DVI files that request them is sufficiently | The appearance of DVI files that request them is sufficiently | ||
Ligne 26: | Ligne 19: | ||
translation of them by means of virtual fonts. | translation of them by means of virtual fonts. | ||
- | You therefore have to fool the system into using `cm*` fonts | + | You therefore have to fool the system into using '' |
- | where the original author specified | + | where the original author specified |
One option is the font substitutions that many | One option is the font substitutions that many | ||
- | DVI drivers provide via their configuration file& | + | DVI drivers provide via their configuration file --- |
- | specify that every `am` font should be replaced by its | + | specify that every '' |
- | corresponding | + | corresponding |
- | Alternatively, | + | Alternatively, |
- | [`dtl`](https:// | + | [[ctanpkg> |
(DVI assembler) can both provide round trips from DVI to | (DVI assembler) can both provide round trips from DVI to | ||
text and back to DVI. One therefore edits font names | text and back to DVI. One therefore edits font names | ||
Ligne 43: | Ligne 36: | ||
The DTL text is pretty straightforward, | The DTL text is pretty straightforward, | ||
fontnames are in single quotes at the end of lines, so: | fontnames are in single quotes at the end of lines, so: | ||
- | | + | dv2dt -o ⟨doc.txt⟩ ⟨doc.dvi⟩ |
- | (_edit | + | // |
- | | + | dt2dv -o ⟨edited.dvi⟩ ⟨edited.txt⟩ |
(you have to compile the C programs for this). | (you have to compile the C programs for this). | ||
- | `Dviasm` is a `Python` script; its output has font | + | '' |
names in a section near the start of the document, and then dotted | names in a section near the start of the document, and then dotted | ||
about through the body, so: | about through the body, so: | ||
- | | + | python dviasm.py -o ⟨doc.txt⟩ ⟨doc.dvi⟩ |
- | (_edit | + | // |
- | | + | python dviasm.py -o ⟨edited.dvi⟩ ⟨edited.txt⟩ |
Both routes seem acceptable ways forward; it is a matter of taste | Both routes seem acceptable ways forward; it is a matter of taste | ||
which any particular user may choose (it's not likely that it will be | which any particular user may choose (it's not likely that it will be | ||
necessary very often...). | necessary very often...). | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||