Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fichiers:tds:trouver_le_chemin_d_acces_d_un_fichier [2018/12/09 11:33] jejust5_fichiers:tds:trouver_le_chemin_d_acces_d_un_fichier [2022/01/21 07:59] (Version actuelle) – Correction de la mise en forme. yannick.tanguy
Ligne 1: Ligne 1:
 ====== Comment connaître le chemin d'accès d'un fichier? ====== ====== Comment connaître le chemin d'accès d'un fichier? ======
  
 +===== Sous Unix ou Linux =====
  
-$\Reponse$  La commande ''kpsewhich'' permet de savoir quel est le chemin +La commande ''kpsewhich'' permet de savoir quel est le chemin d'accès d'un quelconque fichier utilisé par <latex>\TeX</latex>, <latex>\LaTeX</latex> etc.
-d'accès) du d'un quelconque fichier utilisé par AllTeX.+
  
 +Par exemple pour savoir où est le fichier ''lettre.cls'' :
  
 +<code text>
 +$ kpsewhich lettre.cls
 +/usr/local/texlive/2020/texmf-dist/tex/latex/lettre/lettre.cls
 +</code>
  
 +Il est possible de restreindre la recherche à ce qu'aurait trouvé un moteur particulier, avec l'option ''-''''-engine=pdftex'', ''-''''-engine=luatex'', etc.
  
-{{htmlmetatags>metatag-keywords=(LaTeX) +Pour avoir de l'aide, utilisez l'option ''-''''-help''
-metatag-og:title=(Comment connaître le chemin d'accès d'un fichier?)+ 
 +<code text> 
 +$ kpsewhich --help 
 +Usage: kpsewhich [OPTION]... [FILENAME]... 
 + 
 +Standalone path lookup and expansion for the Kpathsea library. 
 +The default is to look up each FILENAME in turn and report its 
 +first match (if any) to standard output. 
 + 
 +When looking up format (.fmt/.base/.mem) files, it is usually necessary 
 +to also use -engine, or nothing will be returned; in particular, 
 +-engine=/ will return matching format files for any engine. 
 + 
 +-all                   output all matches, one per line (no effect with pk/gf). 
 +[-no]-casefold-search  fall back to case-insensitive search if no exact match. 
 +-cnf-line=STRING       parse STRING as a configuration file line. 
 +-debug=NUM             set debugging flags. 
 +-D, -dpi=NUM           use a base resolution of NUM; default 600. 
 +-engine=STRING         set engine name to STRING. 
 +-expand-braces=STRING  output variable and brace expansion of STRING. 
 +-expand-path=STRING    output complete path expansion of STRING. 
 +-expand-var=STRING     output variable expansion of STRING. 
 +-format=NAME           use file type NAME (list shown by -help-formats). 
 +-help                  display this message and exit. 
 +-help-formats          display information about all supported file formats. 
 +-interactive           ask for additional filenames to look up. 
 +[-no]-mktex=FMT        disable/enable mktexFMT generation (FMT=pk/mf/tex/tfm). 
 +-mode=STRING           set device name for $MAKETEX_MODE to STRING; no default. 
 +-must-exist            search the disk as well as ls-R if necessary. 
 +-path=STRING           search in the path STRING. 
 +-progname=STRING       set program name to STRING. 
 +-safe-in-name=STRING   check if STRING is ok to open for input. 
 +-safe-out-name=STRING  check if STRING is ok to open for output. 
 +-show-path=TYPE        output search path for file type TYPE 
 +                         (list shown by -help-formats). 
 +-subdir=STRING         only output matches whose directory ends with STRING. 
 +-var-brace-value=STRING output brace-expanded value of variable $STRING. 
 +-var-value=STRING       output variable-expanded value of variable $STRING. 
 +-version               display version information number and exit. 
 +  
 +Email bug reports to tex-k@tug.org. 
 +Kpathsea home page: https://tug.org/kpathsea/ 
 +</code> 
 + 
 +{{htmlmetatags>metatag-keywords=(LaTeX,kpathsea,chercher un fichier,quel fichier,TeXlive,TeX directory structure,TDS
 +metatag-og:title=(Comment connaître le chemin d'accès d'un fichier)
 metatag-og:site_name=(FAQ LaTeX francophone) metatag-og:site_name=(FAQ LaTeX francophone)
 }} }}
- 
5_fichiers/tds/trouver_le_chemin_d_acces_d_un_fichier.1544355185.txt.gz · Dernière modification : 2018/12/09 11:33 de jejust
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0