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 | ||
| composition:annexes:ajouter_des_appendices [2018/06/03 14:23] – joseph.wright | 3_composition:annexes:ajouter_des_appendices [2021/11/02 11:30] (Version actuelle) – Correction de la mise en forme. yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | --- | + | ====== Comment obtenir des annexes? ====== |
| - | title: Appendixes | + | |
| - | category: formatting | + | |
| - | tags: structure | + | |
| - | permalink: / | + | |
| - | --- | + | |
| - | LaTeX provides an exceedingly simple mechanism for appendixes: the | + | ===== Avec les commandes de base ===== |
| - | command `\appendix` switches the document from generating sections | + | |
| - | (in [`article`](https:// | + | |
| - | [`book`](https:// | + | |
| - | numbering is restarted and the representation of the counter switches | + | |
| - | to alphabetic. | + | |
| - | ```latex | + | |
| - | \section{My inspiration} | + | |
| - | ... | + | |
| - | \section{Developing the inspiration} | + | < |
| - | ... | + | |
| + | <WRAP column 35ex> | ||
| + | <code latex> | ||
| + | \documentclass{article} | ||
| + | \usepackage[T1]{fontenc} | ||
| + | \begin{document} | ||
| + | \section{L' | ||
| + | (...) | ||
| + | \section{Conséquences} | ||
| + | (...) | ||
| \appendix | \appendix | ||
| - | \section{How I became inspired} | + | \section{Génèse de l' |
| - | ... | + | (...) |
| - | ``` | + | \end{document} |
| - | would be typeset (in an [`article`](https:// | + | </ |
| - | *1& | + | </ |
| + | <WRAP column 35ex> | ||
| + | < | ||
| + | \documentclass[french]{article} | ||
| + | \usepackage[utf8]{inputenc} | ||
| + | \usepackage[T1]{fontenc} | ||
| + | \pagestyle{empty} %% très important ! | ||
| + | \begin{document} | ||
| + | \section{L' | ||
| + | (...) | ||
| + | \section{Conséquences} | ||
| + | (...) | ||
| + | \appendix | ||
| + | \section{Génèse de l' | ||
| + | (...) | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | & | + | Cette méthode suffit pour des besoins ordinaires. Notez cependant qu'une fois que vous êtes passé dans les annexes, < |
| - | *2& | + | ===== Avec l' |
| - | & | + | L' |
| - | *A& | + | < |
| - | + | ||
| - | & | + | |
| - | which is quite enough for many ordinary purposes. | + | |
| - | you've switched to typesetting appendixes, LaTeX provides you with | + | |
| - | no way back& | + | |
| - | " | + | |
| - | + | ||
| - | The [`appendix`](https:// | + | |
| - | simple setup. | + | |
| - | separate heading, both in the body of the document and the table of | + | |
| - | contents; this would be achieved by | + | |
| - | ```latex | + | |
| \usepackage{appendix} | \usepackage{appendix} | ||
| - | ... | + | \renewcommand{\appendixpagename}{Annexes} |
| + | \renewcommand{\appendixtocname}{Annexes} | ||
| + | (...) | ||
| \appendix | \appendix | ||
| \appendixpage | \appendixpage | ||
| \addappheadtotoc | \addappheadtotoc | ||
| - | ``` | + | </ |
| - | The `\appendixpage` command adds a separate title " | + | |
| - | above the first appendix, and `\addappheadtotoc` adds a similar | + | |
| - | title to the table of contents. | + | |
| - | people' | + | |
| - | The package also provides an `appendices` environment, | + | La commande '' |
| - | which provides for fancier use. The environment is best controlled by | + | |
| - | package | + | L' |
| - | ```latex | + | |
| + | < | ||
| \usepackage[toc, | \usepackage[toc, | ||
| - | ... | + | (...) |
| \begin{appendices} | \begin{appendices} | ||
| - | ... | + | (...) |
| \end{appendices} | \end{appendices} | ||
| - | ``` | + | </ |
| - | The great thing that the `appendices` environment gives | + | |
| - | you, is that once the environment ends, you can carry on with sections | + | |
| - | or chapters as before& | + | |
| - | appendixes. | + | |
| - | The package provides another alternative way of setting appendixes, as | + | Mais voici le point le plus intéressant de cet environnement : une fois qu'il est clos, vous pouvez reprendre votre utilisation normale des sections ou des chapitres. La numérotation n'est pas affectée par les annexes intermédiaires. |
| - | inferior | + | |
| - | environment allows you to put separate appendixes for a particular | + | L' |
| - | section, | + | |
| - | as `\section`s. So one might write: | + | <WRAP column 35ex> |
| - | ```latex | + | < |
| + | \documentclass{article} | ||
| + | \usepackage[T1]{fontenc} | ||
| \usepackage{appendix} | \usepackage{appendix} | ||
| - | ... | + | \begin{document} |
| - | \section{My inspiration} | + | \section{L' |
| - | ... | + | (...) |
| \begin{subappendices} | \begin{subappendices} | ||
| - | \subsection{How I became inspired} | + | \subsection{Génèse de l' |
| - | ... | + | (...) |
| \end{subappendices} | \end{subappendices} | ||
| + | \section{Conséquences} | ||
| + | (...) | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| - | \section{Developing the inspiration} | + | <WRAP column 35ex> |
| - | ... | + | < |
| - | ``` | + | \documentclass[french]{article} |
| - | Which will produce output something like: | + | \usepackage[utf8]{inputenc} |
| - | *1& | + | \usepackage[T1]{fontenc} |
| - | + | \pagestyle{empty} %% très important ! | |
| - | & | + | \usepackage{appendix} |
| - | + | \begin{document} | |
| - | *1.A& | + | \section{L' |
| - | + | (...) | |
| - | & | + | \begin{subappendices} |
| - | + | \subsection{Génèse de l' | |
| - | *2& | + | (...) |
| + | \end{subappendices} | ||
| + | \section{Conséquences} | ||
| + | (...) | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | & | + | Cette extension offre d' |
| - | There are many other merry things one may do with the package; the | + | ===== Avec les classes “memoir” et “KOMA-script” ===== |
| - | user is referred to the package documentation for further details. | + | |
| - | The [`memoir`](https:// | + | La classe |
| - | [`appendix`](https:// | + | |
| - | `\appendixprefix` command for manipulating the appearance of appendixes. | + | |
| + | ----- | ||
| + | //Source:// [[faquk> | ||
| + | {{htmlmetatags> | ||
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||

