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 | ||
fichiers:tds:installation_temporaire [2018/06/03 13:17] – samcarter | 5_fichiers:tds:installation_temporaire [2023/10/02 20:07] (Version actuelle) – Suite et fin de la traduction en français. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Installation temporaire de fichiers |
- | title: " | + | |
- | category: installing | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | Operating systems and applications need to know where to find files: | ||
- | many files that they need are "just named"& | ||
- | necessarily know _where_ they are, but knows to ask for them. | ||
- | The commonest case, of course, is the commands whose names you type to | ||
- | a shell (yes, even Windows' | ||
- | you type: many of the commands simply involve loading and executing a | ||
- | file, and the `PATH` variable tells the shell where to find those files. | ||
- | Modern TeX implementations come with a bunch of search paths | + | Les systèmes d' |
- | built in to them. In most circumstances these paths are adequate, but | + | de nombreux fichiers dont ils ont besoin sont simplement |
- | one sometimes needs to extend them to pick up files in strange | + | l' |
- | places: for example, we may wish to try a new bundle of packages | + | Le cas le plus courant est celui des commandes dont vous tapez le nom dans un interpréteur de commandes |
- | before [installing them "properly"](FAQ-installthings). | + | (un shell Linux ou l'«invite de commandes» de Windows): celles-ci impliquent généralement le chargement |
- | this, we need to change the relevant path as TeX perceives it. | + | et l' |
- | However, we don't want to throw away TeX's built-in path (all of a | + | sait où chercher ces fichiers. |
- | sudden, TeX won't know how to deal with all sorts of things). | + | |
- | To _extend_ a TeX path, we define an operating system | + | Les implémentations modernes de < |
- | environment variable in "path format" | + | de chemins de recherche prédéfinis. Dans la plupart des cas, ces chemins sont suffisants, |
- | will fill with its built-in value for the path. The commonest case is | + | mais il est parfois nécessaire de les étendre pour accéder à des fichiers situés dans des endroits inhabituels: |
- | that we want to place our extension in front of the path, so that our | + | par exemple, nous pouvons souhaiter essayer un nouveau package |
- | new things will be chosen in preference, so we leave our "gap to be | + | avant de [[5_fichiers: |
- | filled" | + | Pour ce faire, nous devons ajouter le nouveau répertoire aux chemins déjà connus de TeX. |
- | (though it depends which shell you're actually using): so on a | + | Attention, nous ne voulons pas // |
- | Unix-like system, using the `bash` shell, the job might be | + | (sinon, tous les autres fichiers deviendraient introuvables pour TeX). |
- | done like: | + | |
- | ``` | + | Pour // |
+ | une variable d' | ||
+ | la variable | ||
+ | La seule différence est qu'il faut permette à TeX de rajouter ses propres répertoires | ||
+ | à notre variable. En général, nous voulons que nos fichiers soient trouvés préférentiellement | ||
+ | par rapport à ceux le la distribution TeX, donc nous mettons nos répertoires au début | ||
+ | du chemin de recherche. | ||
+ | |||
+ | La syntaxe est très simple: sous Linux, quand on utilise '' | ||
+ | cela s' | ||
+ | <code bash> | ||
export TEXINPUTS=/ | export TEXINPUTS=/ | ||
- | ``` | + | </ |
- | while in a Windows | + | (la syntaxe dépend du shell utilisé) |
- | ``` | + | |
+ | Sous Windows, | ||
+ | <code bash> | ||
set TEXINPUTS=C:/ | set TEXINPUTS=C:/ | ||
- | ``` | + | </ |
- | In either case, we're asking | + | |
- | temporary files directory; in the Unix case, the "empty slot" is | + | Dans les deux cas, nous avons demandé à TeX de chercher d' |
- | designated by putting the path separator `:` on its own at the end | + | les fichiers dans le répertoire temporaire du système. |
- | of the line, while in the Windows | + | Les symboles deux-points ('':'' |
- | the path separator is `;`. | + | car c'est à ce niveau que TeX ajoutera son propre chemin de recherche. |
+ | Notez bien que le symbole utilisé dépend du système d' | ||
+ | deux-points sous Linux, et point-virgule sous Windows. | ||
+ | |||
+ | < | ||
+ | Quel que soit le système, le changement ne s' | ||
+ | lancées depuis le shell qui contient la modification. | ||
+ | Si vous utilisez TeX depuis une autre fenêtre (par exemple un éditeur de texte | ||
+ | lancé par l' | ||
+ | |||
+ | Pour que le changement s' | ||
+ | il faudra définir la variable '' | ||
+ | ou dans votre fichier '' | ||
+ | |||
+ | Sous Windows, il faudra modifier '' | ||
+ | </ | ||
+ | |||
+ | Bien que tout ce qui précède concerne le chemin où TeX recherche | ||
+ | ses fichiers de macros (fichiers '' | ||
+ | tous les types de fichiers que les programmes liés à TeX peuvent avoir à chercher. | ||
+ | Il y a beaucoup de chemins différents, | ||
+ | Dans une installation TeX basée sur '' | ||
+ | qui contient la configuration de l' | ||
+ | à quoi servent les différents chemins. | ||
- | Note that in either sort of system, the change will only affect | ||
- | instances of TeX that are started from the shell where the | ||
- | environment variable was set. If you run TeX from another window, | ||
- | it will use the original input path. To make a change of input path | ||
- | that will " | ||
- | your login script or profile (or whatever) in a Unix system and log | ||
- | out and in again, or in `autoexec.bat` in a Windows system, and | ||
- | reboot the system. | ||
- | While all of the above has talked about where TeX finds its macro | + | ----- |
- | files, it's applicable to pretty much any sort of file any | + | //Source:// [[faquk> |
- | TeX-related program reads& | + | |
- | their corresponding environment variables. | + | |
- | `web2c`-based system, the copious annotations in the | + | |
- | `texmf.cnf` system configuration file help you to learn which | + | |
- | path names correspond to which type of file. | + | |
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||