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:tailles_de_fontes_arbitraires [2018/06/03 13:00] – joseph.wright | 5_fichiers:fontes:tailles_de_fontes_arbitraires [2023/06/22 23:12] (Version actuelle) – Mise à jour des liens internes. Mots-clefs OpenGraph. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== |
- | title: | + | |
- | category: programming | + | |
- | tags: latex macros | + | |
- | permalink: / | + | |
- | --- | + | |
Almost all fonts, nowadays, are provided with LaTeX control | Almost all fonts, nowadays, are provided with LaTeX control | ||
- | (`fd`) files, so the temptation to risk the | + | ('' |
- | [problems of `\newfont`](FAQ-newfontstar) | + | [[3_composition: |
- | resist. | + | is usually easy to resist. |
However, one temptation remains, arising from the way that LaTeX | However, one temptation remains, arising from the way that LaTeX | ||
restricts the sizes of fonts. | restricts the sizes of fonts. | ||
- | significantly applies to the default (Computer Modern) and the | + | significantly applies to the default (//Computer Modern//) and the |
Cork-encoded (T1) EC fonts, but it is widely considered to be | Cork-encoded (T1) EC fonts, but it is widely considered to be | ||
anomalous, nowadays. | anomalous, nowadays. | ||
- | package [`fix-cm`](https:// | + | package [[ctanpkg> |
- | LaTeX, at any size you choose. | + | LaTeX, at any size you choose. |
- | versions of the fonts, most modern distributions will just generate an | + | most modern distributions will just generate an appropriate bitmap for you. |
- | appropriate bitmap for you. | + | |
So, suppose you want to produce a heading in Computer Modern Roman at | So, suppose you want to produce a heading in Computer Modern Roman at | ||
30 points, you might be tempted to write: | 30 points, you might be tempted to write: | ||
- | ```latex | + | |
+ | < | ||
\newfont{\bigfont}{cmr10 at 30pt} | \newfont{\bigfont}{cmr10 at 30pt} | ||
\begin{center} | \begin{center} | ||
\bigfont Huge text | \bigfont Huge text | ||
\end{center} | \end{center} | ||
- | ``` | + | </ |
which will indeed work, but will actually produce a worse result than | which will indeed work, but will actually produce a worse result than | ||
- | ```latex | + | |
+ | < | ||
\usepackage{fix-cm} | \usepackage{fix-cm} | ||
... | ... | ||
Ligne 37: | Ligne 34: | ||
Huge text | Huge text | ||
\end{center} | \end{center} | ||
- | ``` | + | </ |
- | Note that the [`fix-cm`](https:// | + | Note that the [[ctanpkg> |
December 2003 edition of LaTeX; if you have an older distribution, | December 2003 edition of LaTeX; if you have an older distribution, | ||
- | the packages [`type1cm`](https:// | + | the packages [[ctanpkg> |
- | [`type1ec`](https:// | + | [[ctanpkg> |
- | [`Fix-cm`](https:// | + | [[ctanpkg> |
team did not consider useful, or something; the CM dunhill fonts (as | team did not consider useful, or something; the CM dunhill fonts (as | ||
CM, but with stretched ascenders) and the CM fibonacci font (which is only | CM, but with stretched ascenders) and the CM fibonacci font (which is only | ||
available in 8-point design size) are certainly missing. | available in 8-point design size) are certainly missing. | ||
- | [`fix-cm`](https:// | + | [[ctanpkg> |
- | packages, or the [`anyfontsize`](https:// | + | packages, or the [[ctanpkg> |
A further alternative might be to switch to the | A further alternative might be to switch to the | ||
- | [_Latin Modern_ | + | //[[5_fichiers: |
- | provide a close simulacrum of the _Computer Modern_ | + | provide a close simulacrum of the //Computer Modern// |
these fonts were scaleable from their first | these fonts were scaleable from their first | ||
distribution, | distribution, | ||
+ | |||
+ | ----- | ||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||