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:texte:document:que_fait_vraiment_include [2018/06/03 13:06] – samcarter | 2_composition:texte:document:que_fait_vraiment_include [2021/03/01 12:39] (Version actuelle) – Correction d'un lien suite au déplacement de pages. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Que fait la commande “\include”? ====== |
- | title: What's going on in my `\include` commands? | + | |
- | category: usage | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | The original | + | À ses débuts, < |
- | problem of long documents: with the relatively slow computers of the | + | |
- | time, the companion `\includeonly` facility was a boon. With the | + | |
- | vast increase in computer speed, `\includeonly` is less valuable | + | |
- | (though it still has its place in some very large projects). | + | |
- | Nevertheless, the facility is retained in current LaTeX, and causes | + | |
- | some confusion to those who misunderstand it. | + | |
- | In order for `\includeonly` to work, `\include` makes a separate | + | Pour que '' |
- | `aux` file for each included file, and makes a " | + | |
- | important parameters | + | |
- | numbers). As a direct result, it _must_ clear the current page | + | |
- | both before and after the `\include` command. | + | |
- | derives from the difficulties of | + | |
- | | + | |
- | What's more, this mechanism doesn't work if a `\include` command | + | |
- | appears in a file that was `\include`d itself: LaTeX diagnoses | + | |
- | this as an error. | + | |
- | So, we can now answer the two commonest | + | Ces principes précisés, nous pouvons maintenant répondre aux deux questions |
- | | + | |
+ | * Pourquoi ne puis-je pas imbriquer les fichiers avec '' | ||
- | - Why does LaTeX throw a page before and after `\include` | + | ----- |
- | | + | //Source:// [[faquk> |
- | | + | |
- | Answer: because it has to. If you don't like it, replace the | ||
- | `\include` command with `\input`& | ||
- | `\includeonly` any more, but you probably don't need it anyway, so | ||
- | don't worry. | ||
- | | ||
- | |||
- | - Why can't I nest `\include`d files?& | ||
- | able to under LaTeX 2.09. | ||
- | | ||
- | |||
- | Answer: in fact, you couldn' | ||
- | wasn't diagnosed. | ||
- | under LaTeX 2.09, replace the `\include` commands with `\input` | ||
- | commands (with `\clearpage` as appropriate). | ||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||