Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
5_fichiers:fontes:tailles_de_fontes_arbitraires [2018/06/03 15:05] samcarter |
5_fichiers:fontes:tailles_de_fontes_arbitraires [2018/12/04 01:18] (Version actuelle) jejust |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Fonts at arbitrary sizes ====== |
- | title: Fonts at arbitrary sizes | + | |
- | category: programming | + | |
- | tags: latex macros | + | |
- | permalink: /FAQ-fontsize | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
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 | + | (''fd'') files, so the temptation to risk the |
- | [problems of `\newfont`](FAQ-newfontstar) is usually easy to | + | [[FAQ-newfontstar|problems of ''\newfont'']] is usually easy to |
resist. | resist. | ||
Ligne 17: | Ligne 12: | ||
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. In recognition of this problem, there is a | anomalous, nowadays. In recognition of this problem, there is a | ||
- | package [`fix-cm`](https://ctan.org/pkg/fix-cm) which will allow you to use the fonts, within | + | package [[ctanpkg>fix-cm|fix-cm]] which will allow you to use the fonts, within |
LaTeX, at any size you choose. If you're not using scaleable | LaTeX, at any size you choose. If you're not using scaleable | ||
versions of the fonts, most modern distributions will just generate an | versions of the fonts, most modern distributions will just generate an | ||
Ligne 24: | Ligne 19: | ||
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 | + | |
+ | <code 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} | ||
- | ``` | + | </code> |
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 | + | |
+ | <code latex> | ||
\usepackage{fix-cm} | \usepackage{fix-cm} | ||
... | ... | ||
Ligne 38: | Ligne 35: | ||
Huge text | Huge text | ||
\end{center} | \end{center} | ||
- | ``` | + | </code> |
- | Note that the [`fix-cm`](https://ctan.org/pkg/fix-cm) package was not distributed until the | + | Note that the [[ctanpkg>fix-cm|fix-cm]] package was not distributed until the |
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://ctan.org/pkg/type1cm) (for CM fonts) and | + | the packages [[ctanpkg>type1cm|type1cm]] (for CM fonts) and |
- | [`type1ec`](https://ctan.org/pkg/type1ec) (for EC fonts) are available. | + | [[ctanpkg>type1ec|type1ec]] (for EC fonts) are available. |
- | [`Fix-cm`](https://ctan.org/pkg/fix-cm) has one or two omissions — fonts the LaTeX | + | [[ctanpkg>fix-cm|Fix-cm]] has one or two omissions --- fonts the LaTeX |
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. If | available in 8-point design size) are certainly missing. If | ||
- | [`fix-cm`](https://ctan.org/pkg/fix-cm) doesn't do the job, try the [`type1xx`](https://ctan.org/pkg/type1cm) | + | [[ctanpkg>fix-cm|fix-cm]] doesn't do the job, try the [[ctanpkg>type1cm|type1xx]] |
- | packages, or the [`anyfontsize`](https://ctan.org/pkg/anyfontsize) package. | + | packages, or the [[ctanpkg>anyfontsize|anyfontsize]] package. |
A further alternative might be to switch to the | A further alternative might be to switch to the | ||
- | [_Latin Modern_ fonts](FAQ-uselmfonts) (which | + | [[FAQ-uselmfonts|//Latin Modern// fonts]] (which |
- | provide a close simulacrum of the _Computer Modern_ set); | + | provide a close simulacrum of the //Computer Modern// set); |
these fonts were scaleable from their first | these fonts were scaleable from their first | ||
distribution, and don't therefore need any such trick as the above. | distribution, and don't therefore need any such trick as the above. | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk>FAQ-fontsize|Fonts at arbitrary sizes]] | ||
+ | |||
+ | {{htmlmetatags>metatag-keywords=(LaTeX,latex,macros,programming) | ||
+ | metatag-og:title=(Fonts at arbitrary sizes) | ||
+ | metatag-og:site_name=(FAQ LaTeX francophone) | ||
+ | }} | ||