Installation d'un "package" LaTeX
Extrait du @YvesDelhaye.Be http://www.yvesdelhaye.be
Installation d'un "package"
LaTeX
- Informatique - LaTeX -
Date de mise en ligne : dimanche 3 septembre 2006
Description :
Installation type pour étendre les fonctionnalités de LaTeX.
@YvesDelhaye.Be
Copyright © @YvesDelhaye.Be Page 1/4
Installation d'un "package" LaTeX
Comment installer un module pour étendre les fonctionnalités de LaTeX. Exemple de wallpaper (J'avais hésité avec csvtools sur le laptop ; une autre fois peut-être !)
Toute l'astuce consiste à mettre le fichier .sty au bon endroit et à faire tourner "texhash".
Télécharger wallpaper.sty sur www.tug.org/
Et éventuellemnt les autres fichiers :
\$:~/docs/kb/infos/latex/WallPaper\$ ls
example.tex hya.png README TGTamber.png wallpapermanual.pdf wallpaper.sty
En root, copier le fichier au bon endroit (ici, c'est une installation pour tout le monde et donc il faut copier vers
"/usr/share/texmf/tex/latex/base/" et surtout faire tourner "texhash"
# cp /home/yves/docs/kb/infos/latex/WallPaper/wallpaper.sty /usr/share/texmf/tex/latex/base/
/usr/share/texmf/tex/latex/base# texhash
texhash: Updating /usr/local/share/texmf/ls-R...
texhash: Updating /usr/local/lib/texmf/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
texhash: Updating /var/cache/fonts/ls-R...
texhash: Done.
/usr/share/texmf/tex/latex/base#
Ma distribution n'accepte pas le fichier png dans LaTeX. Il faut donc convertir les images en png vers le format eps.
(The Gimp fait ça très bien !) Puis, comme simple utilisateur, je fais alors le test.
Copyright © @YvesDelhaye.Be Page 2/4
Installation d'un "package" LaTeX
\$:~/docs/kb/infos/latex/WallPaper\$ latex example.tex This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5) entering extended mode
(./example.tex
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, iceland ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, s lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size11.clo)) (./wallpaper.sty
(/usr/share/texmf/tex/latex/base/ifthen.sty) (/usr/share/texmf/tex/latex/tools/calc.sty)
...
[5] (./example.aux) )
(see the transcript file for additional information) Output written on example.dvi (5 pages, 10464 bytes).
Transcript written on example.log.
\$:~/docs/kb/infos/latex/WallPaper\$
Copyright © @YvesDelhaye.Be Page 3/4
Installation d'un "package" LaTeX
Bref, ça marche bien !
Le pdf généré comme exemple est joint. Libre à vous de le télécharger si vous êtes curieux.
Copyright © @YvesDelhaye.Be Page 4/4