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 | ||
2_composition:texte:symboles:symbole_euro [2018/05/28 21:31] d.p.carlisle |
— (Version actuelle) | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | ||
- | title: Typesetting the Euro sign | ||
- | category: formatting | ||
- | permalink: /FAQ-euro | ||
- | date: 2014-06-10 | ||
- | --- | ||
- | |||
- | # Typesetting the Euro sign | ||
- | |||
- | The European currency ''Euro'' (â¬) is represented by a symbol | ||
- | of somewhat dubious design, but it's an important currency and | ||
- | (La)TeX users need to typeset it. When the currency first appeared, | ||
- | typesetting it was a serious problem for (La)TeX users; things are | ||
- | easier now (most fonts have some way of providing a Euro sign), but | ||
- | this answer provides a summary of methods ''just in case''. | ||
- | |||
- | Note that the Commission of the European Community at first deemed | ||
- | that the Euro symbol should always be set in a sans-serif font; | ||
- | fortunately, this eccentric ruling has now been rescinded, and one may | ||
- | apply best typesetting efforts to making it appear at least slightly | ||
- | ''respectable'' (typographically). | ||
- | |||
- | The TS1-encoded TC fonts provided as part of the EC font | ||
- | distribution provide Euro glyphs. The fonts are called Text Companion | ||
- | (TC) fonts, and offer the same range | ||
- | of faces as do the EC fonts themselves. The | ||
- | [`textcomp`](https://ctan.org/pkg/textcomp) package provides a `\texteuro` command for | ||
- | accessing the symbol, which selects a symbol to match the surrounding | ||
- | text. The design of the symbol in the TC fonts is not | ||
- | universally loved… | ||
- | Nevertheless, use the TC font version of the symbol if you are | ||
- | producing documents using Knuth's Computer Modern Fonts. | ||
- | |||
- | The each of the `latin9` and `latin10 input encoding | ||
- | definitions for the [`inputenc`](https://ctan.org/pkg/inputenc) package has a euro character | ||
- | defined (character position 164, occupied in other ISO Latin | ||
- | character sets by the ''currency symbol'' ¤, which | ||
- | ordinary people seldom see except in character-set listings…). | ||
- | The TC encoding file offers the command `\texteuro` for the | ||
- | character; that command is (probably) _only_ available from the | ||
- | [`textcomp`](https://ctan.org/pkg/textcomp) package. | ||
- | |||
- | Use of the TC encoding character may therefore made via | ||
- | `\texteuro` or via the Latin-9 or Latin-10 character in ordinary | ||
- | text. | ||
- | |||
- | Note that there is a Microsoft code page position (128), too, and that has | ||
- | been added to [`inputenc`](https://ctan.org/pkg/inputenc) tables for CP1252 and | ||
- | CP1257. (There's another position in CP858, which has | ||
- | it in place of ''dotless i'' in CP850; the standardisation of | ||
- | these things remains within Microsoft, so one can never tell what will | ||
- | come next…) | ||
- | |||
- | Outline fonts which contain nothing but Euro symbols are available | ||
- | (free) from | ||
- | [Adobe](ftp://ftp.adobe.com/pub/adobe/type/win/all/eurofont.exe) — | ||
- | the file is packaged as a `Windows` self-extracting | ||
- | executable, but it may be decoded as a `zip` format archive | ||
- | on other operating systems. | ||
- | The [`euro`](https://ctan.org/pkg/euro) bundle contains metrics, `dvips` map | ||
- | files, and macros (for Plain TeX and LaTeX), for using these | ||
- | fonts in documents. LaTeX users will find two packages in the | ||
- | bundle: [`eurosans`](https://ctan.org/pkg/eurosans) only offers the sans-serif version (to | ||
- | conform with the obsolete ruling about sans-serif-only symbols; the | ||
- | package provides the | ||
- | command `\euro`), whereas [`europs`](https://ctan.org/pkg/europs) matches the Euro symbol | ||
- | with the surrounding text (providing the command `\EUR`). To use | ||
- | either package | ||
- | with the `latin9` encoding, you need to define `\texteuro` | ||
- | as an alias for the euro command the package defines. | ||
- | |||
- | The Adobe fonts are probably the best bet for use in non-Computer | ||
- | Modern environments. They are apparently designed to fit with Adobe | ||
- | Times, Helvetica and Courier, but can probably fit with a wider range | ||
- | of modern fonts. | ||
- | |||
- | The [`eurofont`](https://ctan.org/pkg/eurofont) package provides a compendious analysis of the | ||
- | ''problem of the euro symbol'' in its documentation, and offers macros | ||
- | for configuring the source of the glyphs to be used; however, it seems | ||
- | rather large for everyday use. | ||
- | |||
- | The [`euro-ce`](https://ctan.org/pkg/euro-ce) bundle is a rather pleasing MetaFont-only design | ||
- | providing Euro symbols in a number of shapes. The file | ||
- | `euro-ce.tex`, in the distribution, offers hints as to how a | ||
- | Plain TeX user might make use of the fonts. | ||
- | |||
- | Euro symbols are found in several other places, which we list here for | ||
- | completeness. | ||
- | |||
- | The [`marvosym`](https://ctan.org/pkg/marvosym) font contains a Euro symbol (in a number of | ||
- | typographic styles), among many other good things; the font is | ||
- | available in both Adobe Type 1 and TrueType formats. | ||
- | |||
- | Other MetaFont-based bundles containing Euro symbols are to be found in | ||
- | [`china2e`](https://ctan.org/pkg/china2e) (whose primary aim is Chinese dates and suchlike | ||
- | matters) and the [`eurosym`](https://ctan.org/pkg/eurosym) fonts. | ||
- | |||