Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
fichiers:tds:ou_installer_les_packages [2018/06/03 14:20] – samcarter | 5_fichiers:tds:ou_installer_les_packages [2021/12/12 21:32] (Version actuelle) – Mise à jour de liens internes. Ajout de liens externes. Reformatage des tableaux. jejust |
---|
--- | ====== Where to install packages? ====== |
title: Where to install packages | |
category: installing | |
permalink: /FAQ-install-where | |
date: 2014-06-10 | |
--- | |
| |
We assume here that you have decided what tree to put your files in, | We assume here that you have decided what tree to put your files in, |
after reading | after reading "[[5_fichiers:tds:la_tds|choosing a TDS tree]]". We will therefore |
"[choosing a TDS tree](FAQ-what-TDS)". We will therefore | write ''$TEXMF'' for it, and you need to substitute the tree |
write `$TEXMF` for it, and you need to substitute the tree | |
you decided on. | you decided on. |
| |
existing tree(s). Here are some examples of where various sorts of | existing tree(s). Here are some examples of where various sorts of |
files should go: | files should go: |
``` | |
.sty, .cls or .fd: $TEXMF/tex/<format>/<package>/ | ^ Suffixe ^ Répertoire ^ |
.mf: $TEXMF/fonts/source/<supplier>/<font>/ | | ''.sty'', ''.cls'' ou ''.fd'' | ''$TEXMF/tex/<//format//>/<//package//>/'' | |
.tfm: $TEXMF/fonts/tfm/<supplier>/<font>/ | | ''.mf'' | ''$TEXMF/fonts/source/<//supplier//>/<//font//>/'' | |
.vf: $TEXMF/fonts/vf/<supplier>/<font>/ | | ''.tfm'' | ''$TEXMF/fonts/tfm/<//supplier//>/<//font//>/'' | |
.afm: $TEXMF/fonts/afm/<supplier>/<font>/ | | ''.vf'' | ''$TEXMF/fonts/vf/<//supplier//>/<//font//>/'' | |
.pfb: $TEXMF/fonts/type1/<supplier>/<font>/ | | ''.afm'' | ''$TEXMF/fonts/afm/<//supplier//>/<//font//>/'' | |
.ttf: $TEXMF/fonts/truetype/<supplier>/<font>/ | | ''.pfb'' | ''$TEXMF/fonts/type1/<//supplier//>/<//font//>/'' | |
.otf: $TEXMF/fonts/opentype/<supplier>/<font>/ | | ''.ttf'' | ''$TEXMF/fonts/truetype/<//supplier//>/<//font//>/'' | |
.pool, .fmt, .base or .mem: $TEXMF/web2c | | ''.otf'' | ''$TEXMF/fonts/opentype/<//supplier//>/<//font//>/'' | |
``` | | ''.pool'', ''.fmt'', ''.base'' ou ''.mem'' | ''$TEXMF/web2c/'' | |
and for modern systems (those distributed in 2005 or later, using TDS | and for modern systems (those distributed in 2005 or later, using TDS |
v1.1 layouts): | v1.1 layouts): |
``` | |
.map: $TEXMF/fonts/map/<syntax>/<bundle>/ | ^ Suffixe ^ Répertoire ^ |
.enc: $TEXMF/fonts/enc/<syntax>/<bundle>/ | | ''.map'' | ''$TEXMF/fonts/map/<//syntax//>/<//bundle//>/'' | |
``` | | ''.enc'' | ''$TEXMF/fonts/enc/<//syntax//>/<//bundle//>/'' | |
(Map and encoding files went to directories under | |
`$TEXMF/dvips/`, | |
| (Map and encoding files went to directories under ''$TEXMF/dvips/'', |
in earlier distributions.) | in earlier distributions.) |
| |
In the lists above ‹_format_› identifies the format the macros | In the lists above <//format//> identifies the format the macros |
are designed for — it can be things such as `plain`, | are designed for --- it can be things such as ''plain'', |
`generic` (i.e., any format), `latex` or | ''generic'' (//i.e.//, any format), ''latex'' or ''context'' |
`context` (or several less common formats). | (or several less common formats). |
| |
For fonts, ‹_font_› refers to the font family (such as `cm` | For fonts, <//font//> refers to the font family (such as ''cm'' for Knuth's [[wpfr>Computer_Modern|Computer Modern]], |
for Knuth's Computer Modern, `times` for Adobe's Times Roman). | ''times'' for Adobe's [[wpfr>Times_New_Roman|Times Roman]]). |
The supplier is usually obvious — the supplier | The supplier is usually obvious --- the supplier "public" is commonly used for free fonts. |
"public" is commonly used for free fonts. | |
| |
The ‹_syntax_› (for `map` and `enc` files) is a | The <//syntax//> (for ''map'' and ''enc'' files) is a categorisation |
categorisation based on the way the files are written; candidates are | based on the way the files are written; candidates are names of programs |
names of programs such as `dvips` or `pdftex`. | such as ''dvips'' or ''pdftex''. |
| |
"Straight" (La)TeX input can take other forms than the | "Straight" (La)TeX input can take other forms than the ''sty'', ''cls'' or ''fd'' listed above, |
`sty`, `cls` or `fd` listed above, too | too (apart from the 'obvious' ''tex''). Examples are (the obvious) ''tex'', ''lfd'' |
(apart from the 'obvious' `tex`). Examples are (the | for [[ctanpkg>babel|Babel]] language definitions, ''sto'' and ''clo'' for package and |
obvious) `tex`, `lfd` for [`babel`](https://ctan.org/pkg/babel) language | class options, ''cfg'' for configuration information, ''def'' for variants |
definitions, `sto` and `clo` for package and class | (such as the types of devices [[ctanpkg>graphics]] drives). |
options, `cfg` for configuration information, | The ''README'' of the package should tell you of any others, though sometimes that information |
`def` for variants (such as the types of devices | is printed when the package's [[6_distributions:comment_trouver_un_package|comments are stripped]]. |
[`graphics`](https://ctan.org/pkg/graphics) drives). The `README` of the package should | |
tell you of any others, though sometimes that information is printed | |
when the package's [comments are stripped](FAQ-install-unpack). | |
All of these files should live together with the main package files. | All of these files should live together with the main package files. |
| |
Note that ‹_font_› may stand for a single font or an entire family: | Note that <//font//> may stand for a single font or an entire family: |
for example, files for all of Knuth's Computer Modern fonts are to be | for example, files for all of Knuth's Computer Modern fonts are to be |
found in `.../public/cm`, with various prefixes as appropriate. | found in ''.../public/cm'', with various prefixes as appropriate. |
| |
The font "supplier" _public_ is a sort of hold-all for | The font "supplier" //public// is a sort of hold-all for |
"free fonts produced for use with (La)TeX": as well as Knuth's | "free fonts produced for use with (La)TeX": as well as Knuth's |
fonts, _public_'s directory holds fonts designed by others | fonts, //public//'s directory holds fonts designed by others |
(originally, but no longer exclusively, in MetaFont). | (originally, but no longer exclusively, in MetaFont). |
| |
Documentation for each package should all go, undifferentiated, into a | Documentation for each package should all go, undifferentiated, into a |
directory on the `doc/` subtree of the TDS. The layout of | directory on the ''doc/'' subtree of the TDS. The layout of |
the subtree is slightly different: `doc/latex` hosts all | the subtree is slightly different: ''doc/latex'' hosts all |
LaTeX documentation directories, but more fundamental things are | LaTeX documentation directories, but more fundamental things are |
covered, e.g., by `doc/etex` or `doc/xetex`. | covered, //e.g.//, by ''doc/etex'' or ''doc/xetex''. |
| |
| |
| ----- |
| //Source:// |
| * [[faquk>FAQ-install-where|Where to install packages]] |
| |
| {{htmlmetatags>metatag-keywords=(LaTeX,installer LaTeX, installer TeXlive,extensions des fichiers LaTeX,formats de fichiers LaTeX) |
| metatag-og:title=(Where to install packages) |
| metatag-og:site_name=(FAQ LaTeX francophone) |
| }} |
| |