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 | ||
| 2_composition:texte:document:inclusion_depuis_un_autre_repertoire [2021/02/15 10:31] – À fusionner bdumont | 2_composition:texte:document:inclusion_depuis_un_autre_repertoire [2021/02/23 13:06] (Version actuelle) – Correction de coquilles et ajout d'un lien. yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== LaTeX won't include from other directories | + | ====== |
| - | FIXME: Fusionner | + | Vous voulez inclure un fichier |
| - | + | ||
| - | + | ||
| - | You wanted to '' | + | |
| <code latex> | <code latex> | ||
| Ligne 10: | Ligne 7: | ||
| ! I can't write on file `../ | ! I can't write on file `../ | ||
| </ | </ | ||
| - | The error comes from TeX's protection against writing to | ||
| - | directories that aren't descendents of the one where your document | ||
| - | resides. | ||
| - | LaTeXing someone else's malicious, or merely broken, document. | ||
| - | such a document overwrites something you wanted kept, there is obvious | ||
| - | potential for havoc.) | ||
| - | Document directory structures that can lead to this problem will look | + | Autrement dit, il ne peut pas écrire dans le dossier que vous avez ciblé. L'erreur vient de la protection de < |
| - | like the fictional | + | |
| - | < | + | Les structures de dossiers qui peuvent conduire à ce problème ressembleront à ceci : |
| - | ./base/mybook.tex | + | |
| + | < | ||
| + | ./base/monlivre.tex | ||
| ./ | ./ | ||
| - | ./preface/ | + | ./chapitre1/Intro.tex |
| - | ./chapter1/Intro.tex | + | |
| - | ... | + | |
| </ | </ | ||
| - | With such a structure, any document directory (other than the one | ||
| - | where '' | ||
| - | base directory. | ||
| - | '' | ||
| - | hint.) | ||
| - | But why did it want to write at all? --- | + | Ici, le dossier |
| - | " | + | |
| - | how '' | + | |
| - | '' | + | |
| - | Solutions to the problem tend to be drastic: | + | Mais, au fait, pourquoi veut-il y écrire ? La question « [[3_composition:document: |
| - | | + | |
| - | 1. Restructure the directories that hold your document so that the | + | Les solutions au problème tendent à être drastiques. |
| - | master file is at the root of the tree: | + | |
| - | ```latex | + | |
| - | ./ | + | |
| - | ./ | + | |
| - | ./ | + | |
| - | ./ | + | |
| - | ... | + | |
| - | ``` | + | |
| - | and so on. | + | |
| - | 2. Did you actually //need// '' | + | |
| - | replace '' | + | |
| - | if you don't need '' | + | |
| - | 3. You //could// patch your system' | + | |
| - | know what you're doing, the error message should be enough of a | + | |
| - | hint; this action is definitely not recommended, | + | |
| - | those who can "help themselves" | + | |
| + | ===== En restructurant vos dossiers ===== | ||
| + | |||
| + | La réorganisation des dossiers doit amener votre document à se trouver à la racine de votre arborescence de dossier contenant tous les éléments qui vous sont utiles : | ||
| + | |||
| + | <code bash> | ||
| + | ./ | ||
| + | ./ | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | ===== En remplaçant les commandes \include ===== | ||
| + | |||
| + | Si vous n'avez pas particulièrement besoin des commandes '' | ||
| + | |||
| + | ===== En modifiant le fichier texmf.cnf ===== | ||
| + | | ||
| + | Vous // | ||
| ----- | ----- | ||
| Ligne 65: | Ligne 47: | ||
| {{htmlmetatags> | {{htmlmetatags> | ||
| - | metatag-og: | + | metatag-og: |
| metatag-og: | metatag-og: | ||
| }} | }} | ||

