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_programmation:encodage:pourquoi_m_embeter_avec_inputenc_et_fontenc [2018/06/03 14:26] joseph.wright |
2_programmation:encodage:pourquoi_m_embeter_avec_inputenc_et_fontenc [2021/12/20 07:44] (Version actuelle) yannick.tanguy Correction de la mise en forme. |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Pourquoi s' |
- | title: Why bother with `inputenc` and `fontenc`? | + | |
- | category: usage | + | |
- | permalink: / | + | |
- | redirect_from: | + | |
- | --- | + | |
+ | ===== L' | ||
+ | Depuis 2018, les versions de < | ||
- | ## [`inputenc`](https:// | + | < |
- | + | ||
- | In current LaTeX release (2018 and later) You do not need to load | + | |
- | [`inputenc`](https:// | + | |
- | ```latex | + | |
\usepackage[utf8]{inputenc} | \usepackage[utf8]{inputenc} | ||
- | ``` | + | </ |
- | is preloaded into the format. | + | |
- | The standard | + | En effet, le fichier de format effectue ce chargement. |
- | of Unicode | + | |
- | subtitle 'Latin-1'). If you are still saving files in | + | Le codage d' |
- | Latin-1 (or other) encoding then you will need to declare that via | + | |
- | a declaration such as | + | < |
- | ```latex | + | |
\usepackage[latin1]{inputenc} | \usepackage[latin1]{inputenc} | ||
- | ``` | + | </ |
+ | ===== L' | ||
- | ### [`fonttenc`](https:// | + | Si vous utilisez pdfLaTeX ou < |
- | If you are using pdfLaTeX or LaTeX and do not specify | + | |
- | ```latex | + | < |
\usepackage[T1]{fontenc} | \usepackage[T1]{fontenc} | ||
- | ``` | + | </ |
+ | |||
+ | alors < | ||
+ | * pour rédiger un document en anglais, cela ne posera pas de problème ; | ||
+ | * pour rédiger un document dans une autre langue (en particulier le français), la situation sera tout autre : l' | ||
- | Then LaTeX will default to the original TeX OT1 encoding. Initially | + | <note important> |
- | this may not seem to be a problem, especially if writing in English, | + | |
- | however OT1 does not include any accented letters, so any accented | + | |
- | letters will be constructed using the `\accent` primitive rather than | + | |
- | using an accented character from the font. Any words using such a constructed | + | |
- | accent will not be hyphenated. | + | |
- | Note that the `t1enc` package is available in the base distribution, | + | L' |
- | which is equivalent to using the `T1` option to | + | |
- | [`fonttenc`](https:// | + | |
- | be used in current | + | |
- | with the first versions | + | |
- | written before the [`fonttenc`](https:// | + | |
- | package was produced. | + | |
- | + | ----- | |
+ | //Source:// [[faquk> | ||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} |