Ceci est une ancienne révision du document !


Comment obtenir des annexes?

Avec les commandes de base

LaTeX fournit un mécanisme extrêmement simple pour les annexes : la commande \appendix. Celle-ci fait passer le document de la génération de sections (dans la classe article) ou de chapitres (dans les classes report et book) à la génération d'annexes. La numérotation des sections ou chapitres est réinitialisée et la représentation du compteur passe en mode alphabétique. Voici un exemple :

\section{Mon idée}
(...)
\section{Développement de cette idée}
(...)
\appendix
\section{Comment m'est venue cette idée ?}
(...)

Pour un document de classe article, la mise en forme sera la suivante :


\documentclass[french]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \pagestyle{empty} %% très important !
\begin{document}
\section{Mon idée}
(...)
\section{Développement de cette idée}
(...)
\appendix
\section{Comment m'est venue cette idée ?}
(...)\end{document}

FIXME Traduction à poursuivre.

which is quite enough for many ordinary purposes. Note that, once you've switched to typesetting appendixes, LaTeX provides you with no way back — once you've had an appendix, you can no longer have an “ordinary” \section or \chapter.

Avec l'extension appendix

The appendix provides several ways of elaborating on this simple setup. Straightforward use of the package allows you to have a separate heading, both in the body of the document and the table of contents; this would be achieved by

\usepackage{appendix">appendix}
...
\appendix
\appendixpage
\addappheadtotoc

The \appendixpage command adds a separate title “Appendices” above the first appendix, and \addappheadtotoc adds a similar title to the table of contents. These simple modifications cover many people's needs about appendixes.

The package also provides an appendices environment, which provides for fancier use. The environment is best controlled by package options; the above example would be achieved by

\usepackage[toc,page]{appendix">appendix}
...
\begin{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 — numbering isn't affected by the intervening appendixes.

The package provides another alternative way of setting appendixes, as inferior divisions in the document. The subappendices environment allows you to put separate appendixes for a particular section, coded as \subsections, or for a particular chapter, coded as \sections. So one might write:

\usepackage{appendix">appendix}
...
\section{My inspiration}
...
\begin{subappendices}
\subsection{How I became inspired}
...
\end{subappendices}
 
\section{Developing the inspiration}
...

Which will produce output something like: 1 My inspiration

1.A How I became inspired

2 Developing the inspiration

There are many other merry things one may do with the package; the user is referred to the package documentation for further details.

The memoir class includes the facilities of the appendix package. The KOMA-script classes offer a \appendixprefix command for manipulating the appearance of appendixes.


Source: Appendixes

3_composition/annexes/ajouter_des_appendices.1633435153.txt.gz · Dernière modification : 2021/10/05 11:59 de yannick.tanguy
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0