diff options
Diffstat (limited to 'Master/texmf-dist/doc/kpathsea/kpathsea.html')
-rw-r--r-- | Master/texmf-dist/doc/kpathsea/kpathsea.html | 8637 |
1 files changed, 4325 insertions, 4312 deletions
diff --git a/Master/texmf-dist/doc/kpathsea/kpathsea.html b/Master/texmf-dist/doc/kpathsea/kpathsea.html index 31a3165aa7a..d66988000e0 100644 --- a/Master/texmf-dist/doc/kpathsea/kpathsea.html +++ b/Master/texmf-dist/doc/kpathsea/kpathsea.html @@ -1,16 +1,8 @@ -<html lang="en"> -<head> -<title>Kpathsea: A library for path searching</title> -<meta http-equiv="Content-Type" content="text/html"> -<meta name="description" content="Kpathsea: A library for path searching"> -<meta name="generator" content="makeinfo 4.13"> -<link title="Top" rel="top" href="#Top"> -<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> -<!-- -This file documents the Kpathsea library for path searching. +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<!-- This file documents the Kpathsea library for path searching. -Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, -2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012 Karl Berry & Olaf Weber. +Copyright (C) 1996-2014 Karl Berry & Olaf Weber. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are @@ -25,4024 +17,3355 @@ permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation -approved by the TeX Users Group.--> -<meta http-equiv="Content-Style-Type" content="text/css"> -<style type="text/css"><!-- - pre.display { font-family:inherit } - pre.format { font-family:inherit } - pre.smalldisplay { font-family:inherit; font-size:smaller } - pre.smallformat { font-family:inherit; font-size:smaller } - pre.smallexample { font-size:smaller } - pre.smalllisp { font-size:smaller } - span.sc { font-variant:small-caps } - span.roman { font-family:serif; font-weight:normal; } - span.sansserif { font-family:sans-serif; font-weight:normal; } ---></style> -</head> -<body> -<h1 class="settitle">Kpathsea: A library for path searching</h1> -<div class="contents"> -<h2>Table of Contents</h2> -<ul> -<li><a name="toc_Top" href="#Top">Kpathsea library</a> -<li><a name="toc_Introduction" href="#Introduction">1 Introduction</a> -<ul> -<li><a href="#History">1.1 History</a> -</li></ul> -<li><a name="toc_Installation" href="#Installation">2 Installation</a> -<ul> -<li><a href="#Simple-installation">2.1 Simple installation</a> -<li><a href="#Custom-installation">2.2 Custom installation</a> -<ul> -<li><a href="#Disk-space">2.2.1 Disk space</a> -<li><a href="#Kpathsea-application-distributions">2.2.2 Kpathsea application distributions</a> -<li><a href="#Changing-search-paths">2.2.3 Changing search paths</a> -<ul> -<li><a href="#Default-path-features">2.2.3.1 Default path features</a> -<li><a href="#Default-path-generation">2.2.3.2 Default path generation</a> -</li></ul> -<li><a href="#Running-configure">2.2.4 Running <code>configure</code></a> -<ul> -<li><a href="#configure-shells">2.2.4.1 <code>configure</code> shells</a> -<li><a href="#configure-options">2.2.4.2 <code>configure</code> options</a> -<li><a href="#configure-environment">2.2.4.3 <code>configure</code> environment</a> -<li><a href="#configure-scenarios">2.2.4.4 <code>configure</code> scenarios</a> -<li><a href="#Shared-library">2.2.4.5 Shared library</a> -</li></ul> -<li><a href="#Running-make">2.2.5 Running <code>make</code></a> -<li><a href="#Installing-files">2.2.6 Installing files</a> -<li><a href="#Cleaning-up">2.2.7 Cleaning up</a> -<li><a href="#Filename-database-generation">2.2.8 Filename database generation</a> -<li><a href="#mktex-scripts">2.2.9 <samp><span class="file">mktex</span></samp> scripts</a> -<ul> -<li><a href="#mktex-configuration">2.2.9.1 <samp><span class="file">mktex</span></samp> configuration</a> -<li><a href="#mktex-script-names">2.2.9.2 <samp><span class="file">mktex</span></samp> script names</a> -<li><a href="#mktex-script-arguments">2.2.9.3 <samp><span class="file">mktex</span></samp> script arguments</a> -</li></ul> -<li><a href="#Installation-testing">2.2.10 Installation testing</a> -</li></ul> -<li><a href="#Security">2.3 Security</a> -<li><a href="#TeX-directory-structure">2.4 TeX directory structure</a> -<li><a href="#unixtex_002eftp">2.5 <samp><span class="file">unixtex.ftp</span></samp>: Obtaining TeX</a> -<li><a href="#Reporting-bugs">2.6 Reporting bugs</a> -<ul> -<li><a href="#Bug-checklist">2.6.1 Bug checklist</a> -<li><a href="#Mailing-lists">2.6.2 Mailing lists</a> -<li><a href="#Debugging">2.6.3 Debugging</a> -<li><a href="#Logging">2.6.4 Logging</a> -<li><a href="#Common-problems">2.6.5 Common problems</a> -<ul> -<li><a href="#Unable-to-find-files">2.6.5.1 Unable to find files</a> -<li><a href="#Slow-path-searching">2.6.5.2 Slow path searching</a> -<li><a href="#Unable-to-generate-fonts">2.6.5.3 Unable to generate fonts</a> -<li><a href="#TeX-or-Metafont-failing">2.6.5.4 TeX or Metafont failing</a> -<li><a href="#Empty-Makefiles">2.6.5.5 Empty Makefiles</a> -<li><a href="#XtStrings">2.6.5.6 <code>XtStrings</code></a> -<li><a href="#dlopen">2.6.5.7 <code>dlopen</code></a> -<li><a href="#ShellWidgetClass">2.6.5.8 <code>ShellWidgetClass</code></a> -<li><a href="#Pointer-combination-warnings">2.6.5.9 Pointer combination warnings</a> -</li></ul> -</li></ul> -</li></ul> -<li><a name="toc_Path-searching" href="#Path-searching">3 Path searching</a> -<ul> -<li><a href="#Searching-overview">3.1 Searching overview</a> -<li><a href="#Path-sources">3.2 Path sources</a> -<ul> -<li><a href="#Config-files">3.2.1 Config files</a> -</li></ul> -<li><a href="#Path-expansion">3.3 Path expansion</a> -<ul> -<li><a href="#Default-expansion">3.3.1 Default expansion</a> -<li><a href="#Variable-expansion">3.3.2 Variable expansion</a> -<li><a href="#Tilde-expansion">3.3.3 Tilde expansion</a> -<li><a href="#Brace-expansion">3.3.4 Brace expansion</a> -<li><a href="#KPSE_005fDOT-expansion">3.3.5 <code>KPSE_DOT</code> expansion</a> -<li><a href="#Subdirectory-expansion">3.3.6 Subdirectory expansion</a> -</li></ul> -<li><a href="#Filename-database">3.4 Filename database (<code>ls-R</code>)</a> -<ul> -<li><a href="#ls_002dR">3.4.1 <samp><span class="file">ls-R</span></samp></a> -<li><a href="#Filename-aliases">3.4.2 Filename aliases</a> -<li><a href="#Database-format">3.4.3 Database format</a> -</li></ul> -<li><a href="#Invoking-kpsewhich">3.5 <code>kpsewhich</code>: Standalone path searching</a> -<ul> -<li><a href="#Path-searching-options">3.5.1 Path searching options</a> -<li><a href="#Specially_002drecognized-files">3.5.2 Specially-recognized files for <samp><span class="command">kpsewhich</span></samp></a> -<li><a href="#Auxiliary-tasks">3.5.3 Auxiliary tasks</a> -<li><a href="#Standard-options">3.5.4 Standard options</a> -</li></ul> -</li></ul> -<li><a name="toc_TeX-support" href="#TeX-support">4 TeX support</a> -<ul> -<li><a href="#Supported-file-formats">4.1 Supported file formats</a> -<li><a href="#File-lookup">4.2 File lookup</a> -<li><a href="#Glyph-lookup">4.3 Glyph lookup</a> -<ul> -<li><a href="#Basic-glyph-lookup">4.3.1 Basic glyph lookup</a> -<li><a href="#Fontmap">4.3.2 Fontmap</a> -<li><a href="#Fallback-font">4.3.3 Fallback font</a> -</li></ul> -<li><a href="#Suppressing-warnings">4.4 Suppressing warnings</a> -</li></ul> -<li><a name="toc_Programming" href="#Programming">5 Programming</a> -<ul> -<li><a href="#Programming-overview">5.1 Programming overview</a> -<li><a href="#Calling-sequence">5.2 Calling sequence</a> -<li><a href="#Program_002dspecific-files">5.3 Program-specific files</a> -<li><a href="#Programming-with-config-files">5.4 Programming with config files</a> -</li></ul> -<li><a name="toc_Index" href="#Index">Index</a> -</li></ul> -</div> +approved by the TeX Users Group. --> +<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ --> +<head> +<title>Kpathsea: A library for path searching</title> +<meta name="description" content="Kpathsea: A library for path searching"> +<meta name="keywords" content="Kpathsea: A library for path searching"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="makeinfo"> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<link href="#Top" rel="start" title="Top"> +<link href="#Index" rel="index" title="Index"> +<link href="#SEC_Contents" rel="contents" title="Table of Contents"> +<link href="dir.html#Top" rel="up" title="(dir)"> +<style type="text/css"> +<!-- +a.summary-letter {text-decoration: none} +blockquote.smallquotation {font-size: smaller} +div.display {margin-left: 3.2em} +div.example {margin-left: 3.2em} +div.indentedblock {margin-left: 3.2em} +div.lisp {margin-left: 3.2em} +div.smalldisplay {margin-left: 3.2em} +div.smallexample {margin-left: 3.2em} +div.smallindentedblock {margin-left: 3.2em; font-size: smaller} +div.smalllisp {margin-left: 3.2em} +kbd {font-style:oblique} +pre.display {font-family: inherit} +pre.format {font-family: inherit} +pre.menu-comment {font-family: serif} +pre.menu-preformatted {font-family: serif} +pre.smalldisplay {font-family: inherit; font-size: smaller} +pre.smallexample {font-size: smaller} +pre.smallformat {font-family: inherit; font-size: smaller} +pre.smalllisp {font-size: smaller} +span.nocodebreak {white-space:nowrap} +span.nolinebreak {white-space:nowrap} +span.roman {font-family:serif; font-weight:normal} +span.sansserif {font-family:sans-serif; font-weight:normal} +ul.no-bullet {list-style: none} +--> +</style> -<div class="node"> -<a name="Top"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Introduction">Introduction</a>, -Up: <a rel="up" accesskey="u" href="#dir">(dir)</a> +</head> -</div> +<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> +<h1 class="settitle" align="center">Kpathsea: A library for path searching</h1> -<h2 class="unnumbered">Kpathsea library</h2> -<p>This manual documents how to install and use the Kpathsea library for -filename lookup. It corresponds to version 6.1.0, -released in May 2012. -<ul class="menu"> -<li><a accesskey="1" href="#Introduction">Introduction</a>: Overview. -<li><a accesskey="2" href="#Installation">Installation</a>: Compilation, installation, and bug reporting. -<li><a accesskey="3" href="#Path-searching">Path searching</a>: How filename lookups work. -<li><a accesskey="4" href="#TeX-support">TeX support</a>: Special support for TeX-related file lookups. -<li><a accesskey="5" href="#Programming">Programming</a>: How to use Kpathsea features in your program. -<li><a accesskey="6" href="#Index">Index</a>: General index. -</ul> -<div class="node"> -<a name="Introduction"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Installation">Installation</a>, -Previous: <a rel="previous" accesskey="p" href="#Top">Top</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> -</div> -<h2 class="chapter">1 Introduction</h2> +<a name="SEC_Contents"></a> +<h2 class="contents-heading">Table of Contents</h2> -<p><a name="index-introduction-1"></a><a name="index-fundamental-purpose-of-Kpathsea-2"></a> -This manual corresponds to version 6.1.0 of the Kpathsea -library, released in May 2012. +<div class="contents"> - <p>The library's fundamental purpose is to return a filename from a list of -directories specified by the user, similar to what shells do when -looking up program names to execute. +<ul class="no-bullet"> + <li><a name="toc-Introduction-1" href="#Introduction">1 Introduction</a> + <ul class="no-bullet"> + <li><a name="toc-History-1" href="#History">1.1 History</a></li> + </ul></li> + <li><a name="toc-unixtex_002eftp_003a-Obtaining-TeX" href="#unixtex_002eftp">2 <samp>unixtex.ftp</samp>: Obtaining TeX</a></li> + <li><a name="toc-Security-1" href="#Security">3 Security</a></li> + <li><a name="toc-TeX-directory-structure-1" href="#TeX-directory-structure">4 TeX directory structure</a></li> + <li><a name="toc-Path-searching-1" href="#Path-searching">5 Path searching</a> + <ul class="no-bullet"> + <li><a name="toc-Searching-overview-1" href="#Searching-overview">5.1 Searching overview</a></li> + <li><a name="toc-Path-sources-1" href="#Path-sources">5.2 Path sources</a> + <ul class="no-bullet"> + <li><a name="toc-Config-files-1" href="#Config-files">5.2.1 Config files</a></li> + </ul></li> + <li><a name="toc-Path-expansion-1" href="#Path-expansion">5.3 Path expansion</a> + <ul class="no-bullet"> + <li><a name="toc-Default-expansion-1" href="#Default-expansion">5.3.1 Default expansion</a></li> + <li><a name="toc-Variable-expansion-1" href="#Variable-expansion">5.3.2 Variable expansion</a></li> + <li><a name="toc-Tilde-expansion-1" href="#Tilde-expansion">5.3.3 Tilde expansion</a></li> + <li><a name="toc-Brace-expansion-1" href="#Brace-expansion">5.3.4 Brace expansion</a></li> + <li><a name="toc-KPSE_005fDOT-expansion-1" href="#KPSE_005fDOT-expansion">5.3.5 <code>KPSE_DOT</code> expansion</a></li> + <li><a name="toc-Subdirectory-expansion-1" href="#Subdirectory-expansion">5.3.6 Subdirectory expansion</a></li> + </ul></li> + <li><a name="toc-Filename-database-_0028ls_002dR_0029" href="#Filename-database">5.4 Filename database (<code>ls-R</code>)</a> + <ul class="no-bullet"> + <li><a name="toc-ls_002dR-1" href="#ls_002dR">5.4.1 <samp>ls-R</samp></a></li> + <li><a name="toc-Filename-aliases-1" href="#Filename-aliases">5.4.2 Filename aliases</a></li> + <li><a name="toc-Database-format-1" href="#Database-format">5.4.3 Database format</a></li> + </ul></li> + <li><a name="toc-kpsewhich_003a-Standalone-path-searching" href="#Invoking-kpsewhich">5.5 <code>kpsewhich</code>: Standalone path searching</a> + <ul class="no-bullet"> + <li><a name="toc-Path-searching-options-1" href="#Path-searching-options">5.5.1 Path searching options</a></li> + <li><a name="toc-Specially_002drecognized-files-for-kpsewhich" href="#Specially_002drecognized-files">5.5.2 Specially-recognized files for <code>kpsewhich</code></a></li> + <li><a name="toc-Auxiliary-tasks-1" href="#Auxiliary-tasks">5.5.3 Auxiliary tasks</a></li> + <li><a name="toc-Standard-options-1" href="#Standard-options">5.5.4 Standard options</a></li> + </ul></li> + </ul></li> + <li><a name="toc-TeX-support-1" href="#TeX-support">6 TeX support</a> + <ul class="no-bullet"> + <li><a name="toc-Supported-file-formats-1" href="#Supported-file-formats">6.1 Supported file formats</a></li> + <li><a name="toc-File-lookup-1" href="#File-lookup">6.2 File lookup</a></li> + <li><a name="toc-Glyph-lookup-1" href="#Glyph-lookup">6.3 Glyph lookup</a> + <ul class="no-bullet"> + <li><a name="toc-Basic-glyph-lookup-1" href="#Basic-glyph-lookup">6.3.1 Basic glyph lookup</a></li> + <li><a name="toc-Fontmap-1" href="#Fontmap">6.3.2 Fontmap</a></li> + <li><a name="toc-Fallback-font-1" href="#Fallback-font">6.3.3 Fallback font</a></li> + </ul></li> + <li><a name="toc-Suppressing-warnings-1" href="#Suppressing-warnings">6.4 Suppressing warnings</a></li> + <li><a name="toc-mktex-scripts-1" href="#mktex-scripts">6.5 <samp>mktex</samp> scripts</a> + <ul class="no-bullet"> + <li><a name="toc-mktex-configuration-1" href="#mktex-configuration">6.5.1 <samp>mktex</samp> configuration</a></li> + <li><a name="toc-mktex-script-names-1" href="#mktex-script-names">6.5.2 <samp>mktex</samp> script names</a></li> + <li><a name="toc-mktex-script-arguments-1" href="#mktex-script-arguments">6.5.3 <samp>mktex</samp> script arguments</a></li> + </ul></li> + </ul></li> + <li><a name="toc-Programming-1" href="#Programming">7 Programming</a> + <ul class="no-bullet"> + <li><a name="toc-Programming-overview-1" href="#Programming-overview">7.1 Programming overview</a></li> + <li><a name="toc-Calling-sequence-1" href="#Calling-sequence">7.2 Calling sequence</a></li> + <li><a name="toc-Program_002dspecific-files-1" href="#Program_002dspecific-files">7.3 Program-specific files</a></li> + <li><a name="toc-Programming-with-config-files-1" href="#Programming-with-config-files">7.4 Programming with config files</a></li> + </ul></li> + <li><a name="toc-Reporting-bugs-1" href="#Reporting-bugs">8 Reporting bugs</a> + <ul class="no-bullet"> + <li><a name="toc-Bug-checklist-1" href="#Bug-checklist">8.1 Bug checklist</a></li> + <li><a name="toc-Mailing-lists-1" href="#Mailing-lists">8.2 Mailing lists</a></li> + <li><a name="toc-Debugging-1" href="#Debugging">8.3 Debugging</a></li> + <li><a name="toc-Logging-1" href="#Logging">8.4 Logging</a></li> + <li><a name="toc-Common-problems-1" href="#Common-problems">8.5 Common problems</a> + <ul class="no-bullet"> + <li><a name="toc-Unable-to-find-files-1" href="#Unable-to-find-files">8.5.1 Unable to find files</a></li> + <li><a name="toc-Slow-path-searching-1" href="#Slow-path-searching">8.5.2 Slow path searching</a></li> + <li><a name="toc-Unable-to-generate-fonts-1" href="#Unable-to-generate-fonts">8.5.3 Unable to generate fonts</a></li> + <li><a name="toc-TeX-or-Metafont-failing-1" href="#TeX-or-Metafont-failing">8.5.4 TeX or Metafont failing</a></li> + </ul></li> + </ul></li> + <li><a name="toc-Index-1" href="#Index">Index</a></li> +</ul> +</div> - <p><a name="index-programs-using-the-library-3"></a>The following software, all of which we maintain, uses this library: - <ul> -<li>Dviljk (see the ‘<samp><span class="samp">dvilj</span></samp>’ man page) -<li>Dvipsk (see <a href="dvips.html#Top">Introduction</a>) -<li>GNU font utilities (see <a href="fontu.html#Top">Introduction</a>) -<li>Web2c (see <a href="web2c.html#Top">Introduction</a>) -<li>Xdvik (see the ‘<samp><span class="samp">xdvi</span></samp>’ man page) -</ul> -<p class="noindent">Other software that we do not maintain also uses it. +<a name="Top"></a> +<div class="header"> +<p> +Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Kpathsea-library"></a> +<h1 class="top">Kpathsea library</h1> + +<p>This manual documents the Kpathsea library for path searching. It +corresponds to version 6.2.0, released in +May 2014. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Introduction" accesskey="1">Introduction</a>:</td><td> </td><td align="left" valign="top">Overview and history. +</td></tr> +<tr><th colspan="3" align="left" valign="top"><pre class="menu-comment"> +</pre></th></tr><tr><td align="left" valign="top">• <a href="#unixtex_002eftp" accesskey="2">unixtex.ftp</a>:</td><td> </td><td align="left" valign="top">Obtaining TeX software. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Security" accesskey="3">Security</a>:</td><td> </td><td align="left" valign="top">Who can write what files, etc. +</td></tr> +<tr><td align="left" valign="top">• <a href="#TeX-directory-structure" accesskey="4">TeX directory structure</a>:</td><td> </td><td align="left" valign="top">Managing the horde of TeX input files. +</td></tr> +<tr><th colspan="3" align="left" valign="top"><pre class="menu-comment"> +</pre></th></tr><tr><td align="left" valign="top">• <a href="#Path-searching" accesskey="5">Path searching</a>:</td><td> </td><td align="left" valign="top">How filename lookups work. +</td></tr> +<tr><td align="left" valign="top">• <a href="#TeX-support" accesskey="6">TeX support</a>:</td><td> </td><td align="left" valign="top">Special support for TeX-related file lookups. +</td></tr> +<tr><th colspan="3" align="left" valign="top"><pre class="menu-comment"> +</pre></th></tr><tr><td align="left" valign="top">• <a href="#Programming" accesskey="7">Programming</a>:</td><td> </td><td align="left" valign="top">How to use Kpathsea features in your program. +</td></tr> +<tr><th colspan="3" align="left" valign="top"><pre class="menu-comment"> +</pre></th></tr><tr><td align="left" valign="top">• <a href="#Reporting-bugs" accesskey="8">Reporting bugs</a>:</td><td> </td><td align="left" valign="top">Where and how to report bugs. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Index" accesskey="9">Index</a>:</td><td> </td><td align="left" valign="top">General index. +</td></tr> +</table> + + +<hr> +<a name="Introduction"></a> +<div class="header"> +<p> +Next: <a href="#unixtex_002eftp" accesskey="n" rel="next">unixtex.ftp</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Introduction-1"></a> +<h2 class="chapter">1 Introduction</h2> - <p><a name="index-interface_002c-not-frozen-4"></a><a name="index-comments_002c-making-5"></a><a name="index-suggestions_002c-making-6"></a>We are still actively maintaining the library (and probably always will -be, despite our hopes). If you have comments or suggestions, please send -them to us (see <a href="#Reporting-bugs">Reporting bugs</a>). +<a name="index-introduction"></a> +<a name="index-fundamental-purpose-of-Kpathsea"></a> - <p><a name="index-conditions-for-use-7"></a><a name="index-license-for-using-the-library-8"></a><a name="index-GNU-General-Public-License-9"></a>We distribute the library under the GNU Library General Public License -(LGPL). In short, this means if you write a program using the library, -you must (offer to) distribute the source to the library, along with any -changes you have made, and allow anyone to modify the library source and -distribute their modifications. It does not mean you have to distribute -the source to your program, although we hope you will. See the -accompanying files for the text of the GNU licenses. +<p>This manual corresponds to version 6.2.0 of the Kpathsea +library, released in May 2014. +</p> +<p>The library’s fundamental purpose is to return a filename from a list of +directories specified by the user, similar to what shells do when +looking up program names to execute. +</p> +<a name="index-programs-using-the-library"></a> +<p>The following software, all of which is maintained in parallel, uses +this library: +</p> +<ul> +<li> Dviljk (see the ‘<samp>dvilj</samp>’ man page) +</li><li> Dvipsk (see <cite><a href="dvips.html#Top">Dvips: A DVI driver</a></cite>) +</li><li> GNU font utilities (see <cite><a href="fontu.html#Top">GNU font utilities</a></cite>) +</li><li> Web2c (see <cite><a href="web2c.html#Top">Web2c: A TeX implementation</a></cite>) +</li><li> Xdvik (see the ‘<samp>xdvi</samp>’ man page) +</li></ul> - <p><a name="index-g_t_0040TeX_007b_007d-Users-Group-10"></a>If you know enough about TeX to be reading this manual, then you (or +<p>Other software that we do not maintain also uses it. +</p> +<p>Kpathsea is now maintained as part of the TeX Live distribution +(<a href="http://tug.org/texlive">http://tug.org/texlive</a>). For information on configuration, +building, installing, and more, see <cite><a href="tlbuild.html#Top">Building TeX +Live</a></cite>. +</p> +<a name="index-interface_002c-not-frozen"></a> +<a name="index-comments_002c-making"></a> +<a name="index-suggestions_002c-making"></a> +<p>The library is still actively maintained. If you have comments or +suggestions, please send along (see <a href="#Reporting-bugs">Reporting bugs</a>). +</p> +<a name="index-conditions-for-use"></a> +<a name="index-license-for-using-the-library"></a> +<a name="index-GNU-General-Public-License"></a> +<p>The Kpathsea library is distributed under the GNU Library General +Public License (LGPL). In short, this means if you write a program +using the library, you must (offer to) distribute the source to the +library, along with any changes you have made, and allow anyone to +modify the library source and distribute their modifications. It does +not mean you have to distribute the source to your program, although +we hope you will. See accompanying files for the text of the GNU +licenses, or <a href="http://www.gnu.org/licenses">http://www.gnu.org/licenses</a>. +</p> +<a name="index-TeX-Users-Group"></a> +<p>If you know enough about TeX to be reading this manual, then you (or your institution) should consider joining the TeX Users Group (if -you're already a member, thanks!). TUG produces the periodical +you’re already a member, thanks!). TUG produces the periodical <cite>TUGboat</cite>, sponsors an annual meeting and publishes the proceedings, and arranges courses on TeX for all levels of users throughout the world. See <a href="http://tug.org">http://tug.org</a> for information. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#History" accesskey="1">History</a>:</td><td> </td><td align="left" valign="top"> +</td></tr> +</table> -<ul class="menu"> -<li><a accesskey="1" href="#History">History</a> -</ul> -<div class="node"> +<hr> <a name="History"></a> -<p><hr> -Up: <a rel="up" accesskey="u" href="#Introduction">Introduction</a> - +<div class="header"> +<p> +Up: <a href="#Introduction" accesskey="u" rel="up">Introduction</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - +<a name="History-1"></a> <h3 class="section">1.1 History</h3> -<p><a name="index-history-of-Kpathsea-11"></a> -<a name="index-Knuth_002c-Donald-E_002e-12"></a>(This section is for those people who are curious about how the library -came about.) (If you like to read historical accounts of software, we +<a name="index-history-of-Kpathsea"></a> + +<a name="index-Knuth_002c-Donald-E_002e"></a> +<p>This section is for those people who are curious about how the library +came about. If you like to read historical accounts of software, we urge you to seek out the GNU Autoconf manual and the “Errors of -TeX” paper by Don Knuth, published in <cite>Software—Practice and -Experience</cite> 19(7), July 1989.) - - <p><a name="index-Morgan_002c-Tim-13"></a><a name="index-Rokicki_002c-Tom-14"></a><a name="index-Berry_002c-Karl-15"></a><a name="index-VAX-11_002f750-16"></a><a name="index-Sun-2-17"></a><a name="index-pxp-_0040r_007bPascal-preprocessor_007d-18"></a><a name="index-pc-_0040r_007bPascal-compiler_007d-19"></a>[Karl writes.] My first ChangeLog entry for Web2c seems to be February -1990, but I may have done some work before then. In any case, Tim -Morgan and I were jointly maintaining it for a time. (I should mention -here that Tim had made Web2c into a real distribution long before I had -ever used it or even heard of it, and Tom Rokicki did the original -implementation. I was using <code>pxp</code> and <code>pc</code> on VAX 11/750's -and the hot new Sun 2 machines.) - - <p>It must have been later in 1990 and 1991 that I started working on +TeX” paper by Don Knuth, published in his book <cite>Digital +Typography</cite>, among other places. +</p> +<a name="index-Morgan_002c-Tim"></a> +<a name="index-Rokicki_002c-Tom"></a> +<a name="index-Berry_002c-Karl"></a> +<a name="index-VAX-11_002f750"></a> +<a name="index-Sun-2"></a> +<a name="index-pxp-Pascal-preprocessor"></a> +<a name="index-pc-Pascal-compiler"></a> +<p>[Karl writes.] My first ChangeLog entry for Web2c seems to be +February 1990, but I may have done some work before then. In any +case, Tim Morgan and I were jointly maintaining it for a time. (I +should mention here that Tim had made Web2c into a real distribution +long before I had ever used it or even heard of it, and Tom Rokicki +did the original implementation. When I started, I was using +<code>pxp</code> and <code>pc</code> on VAX 11/750’s and the hot new Sun 2 +machines.) +</p> +<p>It must have been later in 1990 and 1991 that I started working on <cite>TeX for the Impatient</cite>. Dvips, Xdvi, Web2c, and the GNU fontutils (which I was also writing at the time) all used different environment variables, and, more importantly, had different bugs in their path searching. This became extremely painful, as I was stressing everything to the limit working on the book. I also desperately wanted -to implement subdirectory searching, since I couldn't stand putting -everything in one big directory, and also couldn't stand having to -explicitly specify <samp><span class="file">cm</span></samp>, <samp><span class="file">pandora</span></samp>, <small class="dots">...</small> in a path. - - <p><a name="index-Vojta_002c-Paul-20"></a>In the first incarnation, I just hacked separately on each -program—that was the original subdirectory searching code in both Xdvi -and Dvips, though I think Paul Vojta has completely rewritten Xdvi's -support by now. That is, I tried to go with the flow in each program, -rather than changing the program's calling sequences to conform to -common routines. - - <p>Then, as bugs inevitably appeared, I found I was fixing the same thing -three times (Web2c and fontutils were always sharing code, since I -maintained those—there was no Dvipsk or Xdvik or Dviljk at this -point). After a while, I finally started sharing source files. They -weren't yet a library, though. I just kept things up to date with shell -scripts. (I was developing on a 386 running ISC 2.2 at the time, and so -didn't have symbolic links. An awful experience.) - - <p><a name="index-MacKenzie_002c-David-21"></a>The ChangeLogs for Xdvik and Dvipsk record initial releases of those +to implement subdirectory searching, since I couldn’t stand putting +everything in one big directory, and also couldn’t stand having to +explicitly specify <samp>cm</samp>, <samp>pandora</samp>, … in a path. +</p> +<a name="index-Vojta_002c-Paul"></a> +<p>In the first incarnation, I just hacked separately on each +program—that was the original subdirectory searching code in both +Xdvi and Dvips. That is, I tried to go with the flow in each program, +rather than changing the program’s calling sequences to conform to new +routines. +</p> +<p>Then, as bugs inevitably appeared, I found I was fixing the same thing +three times (Web2c and fontutils were already sharing code, since I +maintained both of those—there was no Dvipsk or Xdvik or Dviljk at +this point). After a while, I finally started sharing source files. +They weren’t yet a library, though. I just kept things up to date +with shell scripts. (I was developing on a 386 running ISC 2.2 at the +time, and so didn’t have symbolic links. An awful experience.) +</p> +<a name="index-MacKenzie_002c-David"></a> +<p>The ChangeLogs for Xdvik and Dvipsk record initial releases of those distributions in May and June 1992. I think it was because I was tired of the different configuration strategies of each program, not so much -because of the path searching. (Autoconf was being developed by David -MacKenzie and others, and I was adapting it to TeX and friends.) - - <p><a name="index-zuhn_002c-david-22"></a>I started to make a separate library that other programs could link with -on my birthday in April 1993, according to the ChangeLog. I don't +because of the path searching. Autoconf was being developed by David +MacKenzie and others, and I was adapting it to TeX and friends. +</p> +<a name="index-zuhn_002c-david"></a> +<p>I started to make a separate library that other programs could link with +on my birthday in April 1993, according to the ChangeLog. I don’t remember exactly why I finally took the time to make it a separate -library; a conversation with david zuhn that initiated it. Just seemed +library; a conversation with david zuhn initiated it. Just seemed like it was time. - - <p><a name="index-Walsh_002c-Norman-23"></a><a name="index-Neumann_002c-Gustaf-24"></a>Dviljk got started in March 1994 after I bought a Laserjet 4. (Kpathsea -work got suspended while Norm Walsh and I, with Gustaf Neumann's help, +</p> +<a name="index-Walsh_002c-Norman"></a> +<a name="index-Neumann_002c-Gustaf"></a> +<p>Dviljk got started in March 1994 after I bought a Laserjet 4. (Kpathsea +work got suspended while Norm Walsh and I, with Gustaf Neumann’s help, implemented a way for TeX to get at all those neat builtin LJ4 fonts -<small class="dots">...</small> such a treat to have something to typeset in besides Palatino!) - - <p>By spring of 1995, I had implemented just about all the path-searching +… such a treat to have something to typeset in besides Palatino!) +</p> +<p>By spring of 1995, I had implemented just about all the path-searching features in Kpathsea that I plan to, driven beyond my initial goals by Thomas Esser and others. I then started to integrate Web2c with Kpathsea. After the release of a stable Web2c, I hope to be able to stop -development, and turn most of my attention back to making fonts for GNU. -(Always assuming Micros**t hasn't completely obliterated Unix by then, -or that software patents haven't stopped software development by anybody +development, and turn most of my attention back to making fonts for GNU. +(Always assuming Micros**t hasn’t completely obliterated Unix by then, +or that software patents haven’t stopped software development by anybody smaller than a company with a million-dollar-a-year legal budget. Which -is actually what I think is likely to happen, but that's another -story<small class="dots">...</small>) - - <p><a name="index-Weber_002c-Olaf-25"></a>[Olaf writes.] At the end of 1997, UNIX is still alive and kicking, +is actually what I think is likely to happen, but that’s another +story…) +</p> +<a name="index-Weber_002c-Olaf"></a> +<p>[Olaf writes.] At the end of 1997, Unix is still alive and kicking, individuals still develop software, and Web2c development still continues. Karl had been looking for some time for someone to take up part of the burden, and I volunteered. - -<div class="node"> -<a name="Installation"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Path-searching">Path searching</a>, -Previous: <a rel="previous" accesskey="p" href="#Introduction">Introduction</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> - -</div> - -<h2 class="chapter">2 Installation</h2> - -<p><a name="index-installation-26"></a><a name="index-configuration-27"></a><a name="index-compilation-28"></a> -(A copy of this chapter is in the distribution file <samp><span class="file">kpathsea/INSTALL</span></samp>.) - - <p>The procedure for Kpathsea (and Web2c, etc.) configuration and -installation follows. If you encounter trouble, see <a href="#Common-problems">Common problems</a>, a copy of which is in the file <samp><span class="file">kpathsea/BUGS</span></samp>. - -<ul class="menu"> -<li><a accesskey="1" href="#Simple-installation">Simple installation</a>: If you just want to do it. -<li><a accesskey="2" href="#Custom-installation">Custom installation</a>: If you want to change things around. -<li><a accesskey="3" href="#Security">Security</a>: Who can write what files, etc. -<li><a accesskey="4" href="#TeX-directory-structure">TeX directory structure</a>: Managing the horde of TeX input files. -<li><a accesskey="5" href="#unixtex_002eftp">unixtex.ftp</a>: Getting software via FTP, on CD-ROM, or on tape. -<li><a accesskey="6" href="#Reporting-bugs">Reporting bugs</a>: Where and how to report bugs. -</ul> - -<div class="node"> -<a name="Simple-installation"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Custom-installation">Custom installation</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - -</div> - -<h3 class="section">2.1 Simple installation</h3> - -<p><a name="index-simple-installation-29"></a><a name="index-installation_002c-simple-30"></a> -<a name="index-precompiled-executables_002c-instead-of-installation-31"></a><a name="index-installation_002c-getting-executables-instead-of-32"></a>Installing TeX and friends for the first time can be a daunting -experience. Thus, you may prefer to skip this whole thing and just get -precompiled executables: see <a href="#unixtex_002eftp">unixtex.ftp</a>. - - <p>This section explains what to do if you wish to take the defaults for -everything, and generally to install in the simplest possible way. Most -steps here refer to corresponding subsection in the next section which -explains how to override defaults and generally gives more details. - - <p>By default everything will be installed under <samp><span class="file">/usr/local</span></samp> and the -following discussion assumes this. However, if you already have TeX -installed, its location is used to derive the directory under which -everything is to be installed. - - <ol type=1 start=1> -<li>Be sure you have enough disk space: approximately 8 megabytes for the -compressed archives, 15MB for sources, 50MB for compilation, 40MB for -the (initial) installed system (including library files). See <a href="#Disk-space">Disk space</a>. - - <li>Retrieve these distribution archives: - <dl> -<dt><a href="ftp://ftp.tug.org/tex/texk.tar.gz">ftp://ftp.tug.org/tex/texk.tar.gz</a><dd>These are the sources, which you will be compiling. - - <br><dt><a href="ftp://ftp.tug.org/tex/texklib.tar.gz">ftp://ftp.tug.org/tex/texklib.tar.gz</a><dd>This is a basic set of input files. You should unpack it in the -directory <samp><span class="file">/usr/local/share</span></samp>; doing so will create a <samp><span class="file">texmf</span></samp> -subdirectory there. -</dl> - - <p>These archives are mirrored on the CTAN hosts, in the -<samp><span class="file">systems/web2c</span></samp> directory. - - <p class="noindent">See <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a>. - - <li>When using the default search paths, there is no need to edit any -distribution files. See <a href="#Changing-search-paths">Changing search paths</a>. - - <li>At the top level of the distribution, run ‘<samp><span class="samp">sh configure</span></samp>’. (If you -have the GNU Bash shell installed, run ‘<samp><span class="samp">bash configure</span></samp>’.) -See <a href="#Running-configure">Running configure</a>. - - <li>‘<samp><span class="samp">make</span></samp>’. See <a href="#Running-make">Running make</a>. If you are using a BSD 4.4 system -such as FreeBSD or NetBSD, you may have to use GNU make (often installed -in <samp><span class="file">/usr/local/bin</span></samp>), not the BSD make. - - <li>‘<samp><span class="samp">make install</span></samp>’. See <a href="#Installing-files">Installing files</a>. - - <li>‘<samp><span class="samp">make distclean</span></samp>’. See <a href="#Cleaning-up">Cleaning up</a>. - - <li>Set up a cron job to rebuild the filename database that makes searching -faster. This line will rebuild it every midnight: - <pre class="example"> 0 0 * * * cd /usr/local/share/texmf && <var>/bindir</var>/mktexlsr -</pre> - <p>See <a href="#Filename-database-generation">Filename database generation</a>, and <a href="#Filename-database">Filename database</a>. - - <li><a name="index-printer-configuration-files-33"></a><a name="index-PostScript-fonts_002c-additional-34"></a><a name="index-color-printers_002c-configuring-35"></a>If you're installing Dvips, you also need to set up configuration files -for your printers and make any additional PostScript fonts available. -See <a href="dvips.html#Installation">Installation</a>. If you have any color printers, -see <a href="dvips.html#Color-device-configuration">Color device configuration</a>. - - <li>The first time you run a DVI driver, a bunch of PK fonts will be built -by Metafont via <code>mktexpk</code> (and added to the filename database). -This will take some time. Don't be alarmed; they will created only this -first time (unless something is wrong with your path definitions). - - <p>By default, <code>mktexpk</code> will create these fonts in a hierarchy -under <samp><span class="file">/var/tmp/texfonts</span></samp>; it simply assumes that <samp><span class="file">/var/tmp</span></samp> -exists and is globally writable. If you need a different arrangement, -see <a href="#mktex-configuration">mktex configuration</a>. - - <p>See <a href="#mktex-scripts">mktex scripts</a>. - - <li><a name="index-fonts_002c-being-created-36"></a><a name="index-mktexpk-_0040r_007b_002c-initial-runs_007d-37"></a><a name="index-tests_002c-simple-38"></a>For some simple tests, try ‘<samp><span class="samp">tex story \\bye</span></samp>’ and ‘<samp><span class="samp">latex -sample2e</span></samp>’. Then run <samp><span class="file">xdvi story</span></samp> or <samp><span class="file">dvips sample2e</span></samp> on the -resulting DVI files to preview/print the documents. See <a href="#Installation-testing">Installation testing</a>. - </ol> - -<div class="node"> -<a name="Custom-installation"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Security">Security</a>, -Previous: <a rel="previous" accesskey="p" href="#Simple-installation">Simple installation</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - -</div> - -<h3 class="section">2.2 Custom installation</h3> - -<p><a name="index-custom-installation-39"></a><a name="index-installation_002c-customized-40"></a> -Most sites need to modify the default installation procedure in some -way, perhaps merely changing the prefix from ‘<samp><span class="samp">/usr/local</span></samp>’, perhaps -adding extra compiler or loader options to work around <code>configure</code> -bugs. This section explains how to override default choices. For -additional distribution-specific information: - <ul> -<li><samp><span class="file">dviljk/INSTALL</span></samp>. -<li>See <a href="dvips.html#Installation">Installation</a>. -<li>See <a href="web2c.html#Installation">Installation</a>. -<li><samp><span class="file">xdvik/INSTALL</span></samp>. -</ul> - - <p><a name="index-non_002dUnix-operating-systems-41"></a><a name="index-Amiga-support-42"></a><a name="index-DOS-support-43"></a><a name="index-OS_002f2-support-44"></a><a name="index-VMS-support-45"></a>These instructions are for Unix systems. Other operating-system -specific distributions have their own instructions. The code base -itself supports Amiga, DOS, OS/2, and VMS. - - <p>Following are the same steps as in the previous section (which describes -the simplest installation), but with much more detail. - -<ul class="menu"> -<li><a accesskey="1" href="#Disk-space">Disk space</a> -<li><a accesskey="2" href="#Kpathsea-application-distributions">Kpathsea application distributions</a> -<li><a accesskey="3" href="#Changing-search-paths">Changing search paths</a> -<li><a accesskey="4" href="#Running-configure">Running configure</a> -<li><a accesskey="5" href="#Running-make">Running make</a> -<li><a accesskey="6" href="#Installing-files">Installing files</a> -<li><a accesskey="7" href="#Cleaning-up">Cleaning up</a> -<li><a accesskey="8" href="#Filename-database-generation">Filename database generation</a> -<li><a accesskey="9" href="#mktex-scripts">mktex scripts</a> -<li><a href="#Installation-testing">Installation testing</a> -</ul> - -<div class="node"> -<a name="Disk-space"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Kpathsea-application-distributions">Kpathsea application distributions</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.1 Disk space</h4> - -<p><a name="index-disk-space_002c-needed-46"></a><a name="index-total-disk-space-47"></a><a name="index-size-of-distribution-archives-48"></a>Here is a table showing the disk space needed for each distribution -(described in the next section). The `(totals)' line reflects the -‘<samp><span class="samp">texk</span></samp>’ source distribution and ‘<samp><span class="samp">texklib</span></samp>’; the individual -distributions don't enter into it. Sizes are in megabytes. All numbers -are approximate. - - <p><table summary=""><tr align="left"><td valign="top">Distribution </td><td valign="top">.tar.gz </td><td valign="top">Unpacked </td><td valign="top">Compiled </td><td valign="top">Installed -<br></td></tr><tr align="left"><td valign="top">dviljk </td><td valign="top">.9 </td><td valign="top">3.8 </td><td valign="top"> -<br></td></tr><tr align="left"><td valign="top">dvipsk </td><td valign="top">.9 </td><td valign="top">3.2 </td><td valign="top"> -<br></td></tr><tr align="left"><td valign="top">xdvik </td><td valign="top">.7 </td><td valign="top">2.5 </td><td valign="top"> -<br></td></tr><tr align="left"><td valign="top">web2c </td><td valign="top">1.3 </td><td valign="top">5.0 </td><td valign="top"> -<br></td></tr><tr align="left"><td valign="top">web </td><td valign="top">1.9 </td><td valign="top">6.5 </td><td valign="top">- </td><td valign="top">- -<br></td></tr><tr align="left"><td valign="top">texk </td><td valign="top">7.5 </td><td valign="top">32.1 </td><td valign="top">95.3 </td><td valign="top">33.5 -<br></td></tr><tr align="left"><td valign="top">texklib </td><td valign="top">6.3 </td><td valign="top">15.0 </td><td valign="top">- </td><td valign="top">15.0 -<br></td></tr><tr align="left"><td valign="top">(totals) </td><td valign="top">14.6 </td><td valign="top">47.1 </td><td valign="top">95.3 </td><td valign="top">48.5 - <br></td></tr></table> - -<div class="node"> -<a name="Kpathsea-application-distributions"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Changing-search-paths">Changing search paths</a>, -Previous: <a rel="previous" accesskey="p" href="#Disk-space">Disk space</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.2 Kpathsea application distributions</h4> - -<p><a name="index-distributions_002c-compiling-simultaneously-49"></a><a name="index-version-number_002c-of-Kpathsea-50"></a><a name="index-Kpathsea-version-number-51"></a> -<a name="index-distributions_002c-not-compiling-52"></a><a name="index-NeXT_002c-lacking-X11-53"></a><a name="index-X11_002c-lacking-on-NeXT-54"></a>The archive <a href="ftp://ftp.tug.org/tex/texk.tar.gz">ftp://ftp.tug.org/tex/texk.tar.gz</a> contains all of the -Kpathsea applications I maintain, and the library itself. For example, -since NeXT does not generally support X11, you'd probably want to skip -‘<samp><span class="samp">xdvik</span></samp>’ (or simply remove it after unpacking <samp><span class="file">texk.tar.gz</span></samp>. -If you are not interested in all of them, you can also retrieve them -separately: - - <p><a name="index-DVI-drivers-55"></a> - <dl> -<dt><samp><span class="file">dviljk.tar.gz</span></samp><dd><a name="index-PCL-driver-56"></a><a name="index-LaserJet-drive-57"></a>DVI to PCL, for LaserJet printers. - - <br><dt><samp><span class="file">dvipsk.tar.gz</span></samp><dd><a name="index-PDF-generation-58"></a><a name="index-PostScript-driver-59"></a>DVI to PostScript, for previewers, printers, or PDF generation. - - <br><dt><samp><span class="file">web2c.tar.gz</span></samp><dd>The software needed to compile TeX and friends. - - <br><dt><samp><span class="file">web.tar.gz</span></samp><dd>The original WEB source files, also used in compilation. - - <br><dt><samp><span class="file">xdvik.tar.gz</span></samp><dd><a name="index-X11-previewer-60"></a>DVI previewing under the X window system. - - </dl> - - <p><a name="index-Babel-61"></a><a name="index-non_002dEnglish-typesetting-62"></a>If you want to use the Babel LaTeX package for support of non-English -typesetting, you may need to retrieve additional files. See the file -<samp><span class="file">install.txt</span></samp> in the Babel distribution. - -<div class="node"> -<a name="Changing-search-paths"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Running-configure">Running configure</a>, -Previous: <a rel="previous" accesskey="p" href="#Kpathsea-application-distributions">Kpathsea application distributions</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.3 Changing search paths</h4> - -<p><a name="index-search-paths_002c-changing-default-63"></a><a name="index-paths_002c-changing-default-64"></a><a name="index-texmf_002ein_0040r_007b_002c-editing_007d-65"></a>If the search paths for your installation differ from the standard -TeX directory structure (see <a href="tds.html#Top">Introduction</a>), edit the file <samp><span class="file">kpathsea/texmf.in</span></samp> -as desired, before running <code>configure</code>. For example, if you have -all your fonts or macros in one big directory. - - <p>You may also wish to edit the file <samp><span class="file">mktex.cnf</span></samp>, either before or -after installation, to control various aspects of <code>mktexpk</code> and -friends. See <a href="#mktex-configuration">mktex configuration</a>. - - <p>You do not need to edit <samp><span class="file">texmf.in</span></samp> to change the default -top-level or other installation <em>directories</em> (only the paths). -You can and should do that when you run <code>configure</code> (next step). - - <p>You also do not need to edit <samp><span class="file">texmf.in</span></samp> if you are willing to -rely on <samp><span class="file">texmf.cnf</span></samp> at runtime to define the paths, and let the -compile-time default paths be incorrect. Usually there is no harm in -doing this. - - <p>The section below explains default generation in more detail. - -<ul class="menu"> -<li><a accesskey="1" href="#Default-path-features">Default path features</a> -<li><a accesskey="2" href="#Default-path-generation">Default path generation</a> -</ul> - -<div class="node"> -<a name="Default-path-features"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Default-path-generation">Default path generation</a>, -Up: <a rel="up" accesskey="u" href="#Changing-search-paths">Changing search paths</a> - -</div> - -<h5 class="subsubsection">2.2.3.1 Default path features</h5> - -<p><a name="index-default-path-features-66"></a><a name="index-features_002c-of-default-paths-67"></a> -The purpose of having all the different files described in the section -above is to avoid having the same information in more than one place. If -you change the installation directories or top-level prefix at -<code>configure</code>-time, those changes will propagate through the whole -sequence. And if you change the default paths in <samp><span class="file">texmf.in</span></samp>, -those changes are propagated to the compile-time defaults. - - <p>The Make definitions are all repeated in several <tt>Makefile</tt>'s; but -changing the top-level <samp><span class="file">Makefile</span></samp> should suffice, as it passes down -all the variable definitions, thus overriding the submakes. (The -definitions are repeated so you can run Make in the subdirectories, if -you should have occasion to.) - - <p><a name="index-MAKETEX_005fMODE-68"></a><a name="index-paths_002c-device-name-included-in-69"></a>By default, the bitmap font paths end with ‘<samp><span class="samp">/$MAKETEX_MODE</span></samp>’, thus -including the device name (usually a Metafont mode name such as -‘<samp><span class="samp">ljfour</span></samp>’). This distinguishes two different devices with the same -resolution—a write/white from a write/black 300<span class="dmn">dpi</span> printer, for -example. - - <p><a name="index-kpse_005finit_005fprog_0040r_007b_002c-and-_0040code_007bMAKETEX_005fMODE_007d_007d-70"></a><a name="index-proginit_002ec-71"></a>However, since most sites don't have this complication, Kpathsea -(specifically, the <code>kpse_init_prog</code> function in -<samp><span class="file">kpathsea/proginit.c</span></samp>) has a special case: if the mode has not been -explicitly set by the user (or in a configuration file), it sets -<code>MAKETEX_MODE</code> to <code>/</code>. This makes the default PK path, for -example, expand into <code>.../pk//</code>, so fonts will be found even if -there is no subdirectory for the mode (if you arranged things that way -because your site has only one printer, for example) or if the program -is mode-independent (e.g., <code>pktype</code>). - - <p>To make the paths independent of the mode, simply edit -<samp><span class="file">texmf.in</span></samp> before installation, or the installed -<samp><span class="file">texmf.cnf</span></samp>, and remove the ‘<samp><span class="samp">$MAKETEX_MODE</span></samp>’. - - <p>See <a href="#mktex-script-arguments">mktex script arguments</a>, for how this interacts with <code>mktexpk</code>. - - <p><a name="index-TDS-72"></a><a name="index-g_t_0040TeX_007b_007d-directory-structure-73"></a>See <a href="#TeX-directory-structure">TeX directory structure</a>, for a -description of the default arrangement of the input files that comprise -the TeX system. - -<div class="node"> -<a name="Default-path-generation"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Default-path-features">Default path features</a>, -Up: <a rel="up" accesskey="u" href="#Changing-search-paths">Changing search paths</a> - -</div> - -<h5 class="subsubsection">2.2.3.2 Default path generation</h5> - -<p><a name="index-default-paths_002c-changing-74"></a><a name="index-paths_002c-changing-default-75"></a><a name="index-installation_002c-changing-default-directories-76"></a><a name="index-directories_002c-changing-default-installation-77"></a> -This section describes how the default paths are constructed. - - <p>You may wish to ignore the whole mess and simply edit <samp><span class="file">texmf.cnf</span></samp> -after it is installed, perhaps even copying it into place beforehand so -you can complete the installation, if it seems necessary. - - <p><a name="index-default-paths_002c-how-they_0027re-made-78"></a>To summarize the chain of events that go into defining the default paths: - - <ol type=1 start=1> -<li>‘<samp><span class="samp">configure</span></samp>’ creates a <samp><span class="file">Makefile</span></samp> from each <samp><span class="file">Makefile.in</span></samp>. - - <li><a name="index-texmf_002esed-79"></a>When Make runs in the <samp><span class="file">kpathsea</span></samp> directory, it creates a file -<samp><span class="file">texmf.sed</span></samp> that substitutes the Make value of <code>$(var)</code> for a -string <code>@var@</code>. The variables in question are the one that -define the installation directories. - - <li><a name="index-texmf_002ein-80"></a><a name="index-texmf_002ecnf_0040r_007b_002c-generated_007d-81"></a><samp><span class="file">texmf.sed</span></samp> (together with a little extra magic—see -<samp><span class="file">kpathsea/Makefile</span></samp>) is applied to <samp><span class="file">texmf.in</span></samp> to generate -<samp><span class="file">texmf.cnf</span></samp>. This is the file that will eventually be installed -and used. - - <li><a name="index-paths_002eh-82"></a>The definitions in <samp><span class="file">texmf.cnf</span></samp> are recast as C <code>#define</code>'s in -<samp><span class="file">paths.h</span></samp>. These values will be the compile-time defaults; they -are not used at runtime unless no <samp><span class="file">texmf.cnf</span></samp> file can be found. - - <p>(That's a lie: the compile-time defaults are what any extra <tt>:</tt>'s in -<samp><span class="file">texmf.cnf</span></samp> expand into; but the paths as distributed have no extra -<tt>:</tt>'s, and there's no particular reason for them to.) - </ol> - -<div class="node"> -<a name="Running-configure"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Running-make">Running make</a>, -Previous: <a rel="previous" accesskey="p" href="#Changing-search-paths">Changing search paths</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.4 Running <code>configure</code></h4> - -<p><a name="index-configure_0040r_007b_002c-running_007d-83"></a><a name="index-c_002dauto_002ein-84"></a><a name="index-Makefile_002ein-85"></a><a name="index-ac_005finclude_0040r_007b_002c-Autoconf-extension_007d-86"></a><a name="index-g_t_0040_0040_0040var_007bvar_007d_0040_0040-substitutions-87"></a><a name="index-system-dependencies-88"></a>Run <code>sh configure </code><var>options</var> (in the top-level directory, the -one containing <samp><span class="file">kpathsea/</span></samp>), possibly using a shell other than -<code>sh</code> (see <a href="#configure-shells">configure shells</a>). - - <p><code>configure</code> adapts the source distribution to the present system -via <code>#define</code>'s in <samp><span class="file">*/c-auto.h</span></samp>, which are created from the -corresponding <samp><span class="file">c-auto.in</span></samp>. It also creates a <samp><span class="file">Makefile</span></samp> from -the corresponding <samp><span class="file">Makefile.in</span></samp>, doing ‘<samp><span class="samp">@</span><var>var</var><span class="samp">@</span></samp>’ and -‘<samp><span class="samp">ac_include</span></samp>’ substitutions). - - <p><a name="index-README_002eCONFIGURE-89"></a><a name="index-kpathsea_002fREADME_002eCONFIGURE-90"></a><code>configure</code> is the best place to control the configuration, -compilation, and installed location of the software, either via -command-line options, or by setting environment variables before -invoking it. For example, you can disable <code>mktexpk</code> by default -with the option ‘<samp><span class="samp">--disable-mktexpk</span></samp>’. -See <a href="#configure-options">configure options</a>. - -<ul class="menu"> -<li><a accesskey="1" href="#configure-shells">configure shells</a> -<li><a accesskey="2" href="#configure-options">configure options</a> -<li><a accesskey="3" href="#configure-environment">configure environment</a> -<li><a accesskey="4" href="#configure-scenarios">configure scenarios</a> -<li><a accesskey="5" href="#Shared-library">Shared library</a> -</ul> - -<div class="node"> -<a name="configure-shells"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#configure-options">configure options</a>, -Up: <a rel="up" accesskey="u" href="#Running-configure">Running configure</a> - -</div> - -<h5 class="subsubsection">2.2.4.1 <code>configure</code> shells</h5> - -<p><a name="index-shells-and-_0040code_007bconfigure_007d-91"></a><a name="index-bash_0040r_007b_002c-recommended-for-running-_0040code_007bconfigure_007d_007d-92"></a> -Considerable effort has gone into trying to ensure that the -<code>configure</code> scripts can be run by most Bourne shell variants. -If <code>sh</code> runs into trouble, your best bet is to use Bash, the GNU -Bourne-again shell (see <a href="bash.html#Top">Top</a>). - - <p>Bourne shell variants for which problems have been reported in the past -are: - <dl> -<dt><code>ksh</code><dd><a name="index-ksh_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-93"></a><a name="index-bsh_0040r_007b_002c-ok-with-_0040code_007bconfigure_007d_007d-94"></a><a name="index-Korn-shell_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-95"></a><a name="index-AIX-shells-and-_0040code_007bconfigure_007d-96"></a>Old versions of the Korn shell may fail to handle the scripts. The Korn -shell may be installed as <samp><span class="file">/bin/sh</span></samp> on AIX, in which case -<samp><span class="file">/bin/bsh</span></samp> may serve instead. - - <br><dt><code>ash</code><dd><a name="index-ash_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-97"></a><a name="index-NetBSD-shells-and-_0040code_007bconfigure_007d-98"></a><a name="index-FreeBSD-shells-and-_0040code_007bconfigure_007d-99"></a><a name="index-Linux-shells-and-_0040code_007bconfigure_007d-100"></a>Old versions of ash are unable to handle the scripts. Ash is sometimes -installed as <samp><span class="file">/bin/sh</span></samp> on NetBSD, FreeBSD, and Linux systems. -<samp><span class="file">/bin/bash</span></samp> should be available for those systems, but might not be -part of a default installation. - - <br><dt><span class="roman">Ultrix</span><code> /bin/sh</code><dd><a name="index-DEC-shells-and-_0040code_007bconfigure_007d-101"></a><a name="index-Ultrix-shells-and-_0040code_007bconfigure_007d-102"></a><a name="index-sh5_0040r_007b_002c-ok-with-_0040code_007bconfigure_007d_007d-103"></a><samp><span class="file">/bin/sh</span></samp> under Ultrix is a DEC-grown shell that is notably -deficient in many ways. <samp><span class="file">/bin/sh5</span></samp> may be necessary. -</dl> - -<div class="node"> -<a name="configure-options"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#configure-environment">configure environment</a>, -Previous: <a rel="previous" accesskey="p" href="#configure-shells">configure shells</a>, -Up: <a rel="up" accesskey="u" href="#Running-configure">Running configure</a> - -</div> - -<h5 class="subsubsection">2.2.4.2 <code>configure</code> options</h5> - -<p><a name="index-g_t_0040code_007bconfigure_007d-options-104"></a> -For a complete list of all <code>configure</code> options, run ‘<samp><span class="samp">configure ---help</span></samp>’ or see <a href="autoconf.html#Invoking-configure">Running <code>configure</code> scripts</a>, (a copy is in the file <samp><span class="file">kpathsea/README.CONFIGURE</span></samp>). -The generic options are listed first in the ‘<samp><span class="samp">--help</span></samp>’ output, and -the package-specific options come last. The environment variables -<code>configure</code> pays attention to are listed below. - - <p>Options particularly likely to be useful are ‘<samp><span class="samp">--prefix</span></samp>’, -‘<samp><span class="samp">--datadir</span></samp>’, and the like; see <a href="#configure-scenarios">configure scenarios</a>. - - <p><a name="index-g_t_002d_002dwith-_0040r_007boptions_007d-105"></a><a name="index-g_t_002d_002denable-_0040r_007boptions_007d-106"></a><a name="index-configuration-of-optional-features-107"></a><a name="index-options-to-_0040code_007bconfigure_007d-108"></a>This section gives pointers to descriptions of the ‘<samp><span class="samp">--with</span></samp>’ and -‘<samp><span class="samp">--enable</span></samp>’ options to <code>configure</code> that Kpathsea-using programs -accept. - - <dl> -<dt>‘<samp><span class="samp">--without-mktexmf-default</span></samp>’<dt>‘<samp><span class="samp">--without-mktexpk-default</span></samp>’<dt>‘<samp><span class="samp">--without-mktextfm-default</span></samp>’<dt>‘<samp><span class="samp">--with-mktextex-default</span></samp>’<dd>Enable or disable the dynamic generation programs. See <a href="#mktex-configuration">mktex configuration</a>. - - <br><dt>‘<samp><span class="samp">--enable-shared</span></samp>’<dd><a name="index-g_t_002d_002denable_002dshared-109"></a>Build Kpathsea as a shared library, and link against it. Also build the -usual static library. See <a href="#Shared-library">Shared library</a>. - - <br><dt>‘<samp><span class="samp">--disable-static</span></samp>’<dd><a name="index-g_t_002d_002ddisable_002dstatic-110"></a>Build only the shared library. Implies ‘<samp><span class="samp">--enable-shared</span></samp>’. - - <br><dt>‘<samp><span class="samp">--enable-maintainer-mode</span></samp>’<dd><a name="index-g_t_002d_002denable_002dmaintainer_002dmode-111"></a>Enables make targets that are useful for the maintainer and likely to be -a pain for anyone else; the makefiles created when this option is -enabled may not work at all for you. You have been warned. -</dl> - -<div class="node"> -<a name="configure-environment"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#configure-scenarios">configure scenarios</a>, -Previous: <a rel="previous" accesskey="p" href="#configure-options">configure options</a>, -Up: <a rel="up" accesskey="u" href="#Running-configure">Running configure</a> - -</div> - -<h5 class="subsubsection">2.2.4.3 <code>configure</code> environment</h5> - -<p><code>configure</code> uses the value of the following environment variables in -determining your system's characteristics, and substitutes for them in -<tt>Makefile</tt>'s: - - <dl> -<dt>‘<samp><span class="samp">CC</span></samp>’<a name="index-CC-112"></a><dd><a name="index-gcc_0040r_007b_002c-compiling-with_007d-113"></a><a name="index-cc_0040r_007b_002c-compiling-with_007d-114"></a>The compiler to use: default is <code>gcc</code> if it's installed, otherwise -<code>cc</code>. - - <br><dt>‘<samp><span class="samp">CFLAGS</span></samp>’<a name="index-CFLAGS-115"></a><dd><a name="index-compiler-options_002c-specifying-116"></a>Options to give the compiler: default is ‘<samp><span class="samp">-g -O2</span></samp>’ for <code>gcc</code>, -‘<samp><span class="samp">-g</span></samp>’ otherwise. <code>CFLAGS</code> comes after any other options. You -may need to include <code>-w</code> here if your compilations commonly have -useless warnings (e.g., <code>NULL redefined</code>), or <code>configure</code> may -fail to detect the presence of header files (it takes the messages on -standard error to mean the header file doesn't exist). - - <br><dt>‘<samp><span class="samp">CPPFLAGS</span></samp>’<a name="index-CPPFLAGS-117"></a><dd><a name="index-configuration-compiler-options-118"></a>Options to pass to the compiler preprocessor; this matters most for -configuration, not the actual source compilation. The <code>configure</code> -script often does only preprocessing (e.g., to check for the existence -of <tt>#include</tt> files), and <code>CFLAGS</code> is not used for this. You may -need to set this to something like -‘<samp><span class="samp">-I/usr/local/include/wwwhatever</span></samp>’ if you have the libwww library -installed for hyper-xdvik (see <samp><span class="file">xdvik/INSTALL</span></samp>). - - <br><dt>‘<samp><span class="samp">DEFS</span></samp>’<a name="index-DEFS-119"></a><dd><a name="index-preprocessor-options-120"></a>Additional preprocessor options, but not used by <code>configure</code>. -Provided for enabling or disabling program features, as documented in -the various program-specific installation instructions. <code>DEFS</code> -comes before any compiler options included by the distribution -<samp><span class="file">Makefile</span></samp>s or by <code>configure</code>. - - <br><dt>‘<samp><span class="samp">LDFLAGS</span></samp>’<a name="index-LDFLAGS-121"></a><dd><a name="index-loader-options-122"></a>Additional options to give to the loader. <code>LDFLAGS</code> comes before -any other linker options. - - <br><dt>‘<samp><span class="samp">LIBS</span></samp>’<a name="index-LIBS-123"></a><dd><a name="index-libraries_002c-specifying-additional-124"></a>Additional libraries to link with. -</dl> - -<div class="node"> -<a name="configure-scenarios"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Shared-library">Shared library</a>, -Previous: <a rel="previous" accesskey="p" href="#configure-environment">configure environment</a>, -Up: <a rel="up" accesskey="u" href="#Running-configure">Running configure</a> - -</div> - -<h5 class="subsubsection">2.2.4.4 <code>configure</code> scenarios</h5> - -<p>Here are some common installation scenarios: - - <ul> -<li>Including X support in Metafont. This is disabled by default, since -many sites have no use for it, and it's a leading cause of configuration -problems. - <pre class="example"> configure --with-x -</pre> - <li><a name="index-g_t_0040TeX_007b_007d-hierarchy_002c-one-125"></a>Putting the binaries, TeX files, GNU info files, etc. into a single -TeX hierarchy, say <samp><span class="file">/here/texmf</span></samp>, requires overriding defaults in -<code>configure</code>: - <pre class="example"> configure --prefix=/here/texmf --datadir=/here -</pre> - <li><a name="index-multiple-architectures_002c-compiling-on-126"></a><a name="index-architectures_002c-compiling-multiple-127"></a><a name="index-symbolic-link-trees_002c-for-multiple-architectures-128"></a><a name="index-g_t_002d_002dsrcdir_0040r_007b_002c-for-building-multiple-architectures_007d-129"></a><a name="index-lndir-_0040r_007bfor-building-symlink-trees_007d-130"></a>You can compile on multiple architectures simultaneously either by -building symbolic link trees with the <code>lndir</code> script from the X11 -distribution, or with the ‘<samp><span class="samp">--srcdir</span></samp>’ option: - <pre class="example"> configure --srcdir=<var>srcdir</var> -</pre> - <li><a name="index-multiple-architectures_002c-directories-for-131"></a>If you are installing binaries for multiple architectures into a single -hierarchy, you will probably want to override the default <samp><span class="file">bin</span></samp> and -<samp><span class="file">lib</span></samp> directories, something like this: - <pre class="example"> configure --prefix=<var>texmf</var> --datadir=<var>texmf</var> \ - --bindir=<var>texmf</var>/<var>arch</var>/bin --libdir=<var>texmf</var>/<var>arch</var>/lib - make texmf=<var>texmf</var> -</pre> - <p><a name="index-depot-132"></a><a name="index-automounter_002c-and-configuration-133"></a>(Unless you make provisions for architecture-specific files in -other ways, e.g., with Depot or an automounter.) - - <li><a name="index-g_t_002dO_0040r_007b_002c-compiling-with_007d-134"></a><a name="index-g_t_002dg_0040r_007b_002c-compiling-without_007d-135"></a><a name="index-optimization_002c-enabling-136"></a><a name="index-debugging-with-_0040samp_007b_002dg_007d_002c-disabling-137"></a>To compile with optimization (to compile without debugging, remove the -‘<samp><span class="samp">-g</span></samp>’): - <pre class="example"> env CFLAGS="-g -O" sh configure ... -</pre> - <p class="noindent">For a potential problem if you optimize, see <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a>. -</ul> - -<div class="node"> -<a name="Shared-library"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#configure-scenarios">configure scenarios</a>, -Up: <a rel="up" accesskey="u" href="#Running-configure">Running configure</a> - -</div> - -<h5 class="subsubsection">2.2.4.5 Shared library</h5> - -<p><a name="index-shared-library_002c-making-138"></a> -<a name="index-g_t_002d_002denable_002dshared-139"></a>You can compile Kpathsea as a shared library on a few systems, by -specifying the option ‘<samp><span class="samp">--enable-shared</span></samp>’ when you run -‘<samp><span class="samp">configure</span></samp>’. - - <p><a name="index-code-sharing-140"></a>The main advantage in doing this is that the executables can then share -the code, thus decreasing memory and disk space requirements. - - <p>On some systems, you can record the location of shared libraries in a -binary, usually by giving certain options to the linker. Then -individual users do not need to set their system's environment variable -(e.g., <code>LD_LIBRARY_PATH</code>) to find shared libraries. If you want to -do this, you will need to add the necessary options to <code>LDFLAGS</code> -yourself; for example, on Solaris, include something like -‘<samp><span class="samp">-R${prefix}/lib</span></samp>’, on IRIX or Linux, use -‘<samp><span class="samp">-rpath${prefix}/lib</span></samp>’. (Unfortunately, making this happen by -default is very difficult, because of interactions with an existing -installed shared library.) - -<div class="node"> -<a name="Running-make"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Installing-files">Installing files</a>, -Previous: <a rel="previous" accesskey="p" href="#Running-configure">Running configure</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.5 Running <code>make</code></h4> - -<p><a name="index-make_0040r_007b_002c-running_007d-141"></a> -<a name="index-texmf_002ecnf_0040r_007b_002c-creating_007d-142"></a><a name="index-paths_002eh_0040r_007b_002c-creating_007d-143"></a><code>make</code> (still in the top-level directory). This also creates the -<samp><span class="file">texmf.cnf</span></samp> and <samp><span class="file">paths.h</span></samp> files that define the default search -paths, and (by default) the ‘<samp><span class="samp">plain</span></samp>’ and ‘<samp><span class="samp">latex</span></samp>’ TeX formats. - - <p><a name="index-fallback-resolutions_002c-overriding-144"></a>You can override directory names and other values at <code>make</code>-time. -<samp><span class="file">make/paths.make</span></samp> lists the variables most commonly reset. For -example, ‘<samp><span class="samp">make default_texsizes=600</span></samp>’ changes the list of fallback -resolutions. - - <p>You can also override each of <code>configure</code>'s environment variables -(see <a href="#configure-environment">configure environment</a>). The Make variables have the same names. - - <p>Finally, you can supply additional options via the following variables. -(<code>configure</code> does not use these.) - - <dl> -<dt>‘<samp><span class="samp">XCPPFLAGS</span></samp>’<a name="index-XCPPFLAGS-145"></a><dt>‘<samp><span class="samp">XDEFS</span></samp>’<a name="index-XDEFS-146"></a><dd><a name="index-preprocessor-options_002c-additional-147"></a>Preprocessor options. - - <br><dt>‘<samp><span class="samp">XCFLAGS</span></samp>’<a name="index-XCFLAGS-148"></a><dd><a name="index-compiler-options_002c-additional-149"></a>Compiler options. - - <br><dt>‘<samp><span class="samp">XLDFLAGS</span></samp>’<a name="index-XLDFLAGS-150"></a><dd><a name="index-loader-options_002c-initial-151"></a>Loader options (included at beginning of link commands). - - <br><dt>‘<samp><span class="samp">XLOADLIBES</span></samp>’<a name="index-XLOADLIBES-152"></a><dd><a name="index-loader-options_002c-final-153"></a>More loader options (included at end of link commands). - - <br><dt>‘<samp><span class="samp">XMAKEARGS</span></samp>’<a name="index-XMAKEARGS-154"></a><dd><a name="index-Make-arguments_002c-additional-155"></a>Additional Make arguments passed to all sub-<code>make</code>'s. You may need -to include assignments to the other variables here via <code>XMAKEARGS</code>; -for example: ‘<samp><span class="samp">make XMAKEARGS="CFLAGS=-O XDEFS=-DA4"</span></samp>’. -</dl> - - <p><a name="index-compiler_002c-changing-156"></a><a name="index-libraries_002c-changing-157"></a>It's generally a bad idea to use a different compiler (‘<samp><span class="samp">CC</span></samp>’) or -libraries (<code>LIBS</code>) for compilation than you did for configuration, -since the values <code>configure</code> determined may then be incorrect. - - <p><a name="index-universe_002c-BSD-vs_002e_0040_003a-system-V-158"></a><a name="index-BSD-universe-159"></a><a name="index-system-V-universe-160"></a><a name="index-Solaris-BSD-compatibility_002c-not-161"></a><a name="index-libucb_0040r_007b_002c-avoiding_007d-162"></a><a name="index-ucbinclude_0040r_007b_002c-avoiding_007d-163"></a>Adding compiler options to change the “universe” you are using -(typically BSD vs. system V) is generally a cause of trouble. It's -best to use the native environment, whatever that is; <code>configure</code> -and the software usually adapt best to that. In particular, under -Solaris 2.x, you should not use the BSD-compatibility library -(<samp><span class="file">libucb</span></samp>) or include files (<samp><span class="file">ucbinclude</span></samp>). - - <p><a name="index-Babel-164"></a>If you want to use the Babel LaTeX package for support of non-English -typesetting, you need to modify some files before making the LaTeX -format. See the file <samp><span class="file">install.txt</span></samp> in the Babel distribution. - -<div class="node"> -<a name="Installing-files"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Cleaning-up">Cleaning up</a>, -Previous: <a rel="previous" accesskey="p" href="#Running-make">Running make</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.6 Installing files</h4> - -<p><a name="index-installing-files-165"></a> -The basic command is the usual <code>make install</code>. For security -issues, see <a href="#Security">Security</a>. - - <p>The first time you install any manual in the GNU Info system, you should -add a line (you choose where) to the file <samp><span class="file">dir</span></samp> in your -‘<samp><span class="samp">$(infodir)</span></samp>’ directory. Sample text for this is given near the top -of the Texinfo source files (<samp><span class="file">kpathsea/kpathsea.texi</span></samp>, -<samp><span class="file">dvipsk/dvips.texi</span></samp>, and <samp><span class="file">web2c/doc/web2c.texi</span></samp>). -If you have a recent version of the GNU Texinfo distribution installed -(<a href="ftp://prep.ai.mit.edu/pub/gnu/texinfo-3.9.tar.gz">ftp://prep.ai.mit.edu/pub/gnu/texinfo-3.9.tar.gz</a> or later), this -should happen automatically. - - <p>On the offchance that this is your first Info installation, the -<samp><span class="file">dir</span></samp> file I use is included in the distribution as -<samp><span class="file">etc/dir-example</span></samp>. - - <p><a name="index-multiple-architectures_002c-installing-on-166"></a><a name="index-architecture_002d_0028in_0029dependent-files_002c-installing-only-167"></a><a name="index-installation_002c-architecture_002d_0028in_0029dependent-files-only-168"></a>You may wish to use one of the following targets, especially if you are -installing on multiple architectures: - <ul> -<li><a name="index-install_002dexec-_0040r_007bMake-target_007d-169"></a><code>make install-exec</code> to install in architecture-dependent -directories, i.e., ones that depend on the <code>$(exec_prefix)</code> Make -variable. This includes links to binaries, libraries, etc., not just -“executables”. - - <li><a name="index-install_002ddata-_0040r_007bMake-target_007d-170"></a><code>make install-data</code> to install in architecture-independent -directories, such as documentation, configuration files, pool files, etc. -</ul> - - <p><a name="index-AFS-171"></a><a name="index-Andrew-File-System_002c-installing-with-172"></a><a name="index-g_t_002fafs_002f_0040dots_007b_007d-_0040r_007b_002c-installing-into_007d-173"></a>If you use the Andrew File System, the normal path (e.g., -<var>prefix</var>/bin) only gets you to a read-only copy of the files, and -you must specify a different path for installation. The best way to do this -is by setting the ‘<samp><span class="samp">prefix</span></samp>’ variable on the <code>make</code> command -line. The sequence becomes something like this: -<pre class="example"> configure --prefix=/whatever - make - make install prefix=/afs/.<var>system.name</var>/system/1.3/@sys/whatever -</pre> - <p><a name="index-ls_002dR-_0040r_007band-AFS_007d-174"></a><a name="index-relative-filenames-in-_0040file_007bls_002dR_007d-175"></a>With AFS, you will definitely want to use relative filenames in -<samp><span class="file">ls-R</span></samp> (see <a href="#Filename-database">Filename database</a>), not absolute filenames. This -is done by default, but check anyway. - -<div class="node"> -<a name="Cleaning-up"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Filename-database-generation">Filename database generation</a>, -Previous: <a rel="previous" accesskey="p" href="#Installing-files">Installing files</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.7 Cleaning up</h4> - -<p><a name="index-distclean-_0040r_007bMake-target_007d-176"></a>The basic command is <code>make distclean</code>. This removes all files -created by the build. - - <p>Alternatively, - <ul> -<li><a name="index-mostlyclean-_0040r_007bMake-target_007d-177"></a><code>make mostlyclean</code> if you intend to compile on another -architecture. For Web2C, since the generated C files are portable, -they are not removed. If the <code>lex</code> vs. <code>flex</code> situation -is going to be different on the next machine, <code>rm -web2c/lex.yy.c</code>. - - <li><a name="index-clean-_0040r_007bMake-target_007d-178"></a><code>make clean</code> to remove files created by compiling, but leave -configuration files and Makefiles. - - <li><a name="index-maintainer_002dclean-_0040r_007bMake-target_007d-179"></a><code>make maintainer-clean</code> to remove everything that the Makefiles can -rebuild. This is more than ‘<samp><span class="samp">distclean</span></samp>’ removes, and you should -only use it if you are thoroughly conversant with (and have the necessary -versions of) Autoconf. - - <li><a name="index-extraclean-_0040r_007bMake-target_007d-180"></a><code>make extraclean</code> to remove other junk, e.g., core files, log -files, patch rejects. This is independent of the other ‘<samp><span class="samp">clean</span></samp>’ -targets. -</ul> - -<div class="node"> -<a name="Filename-database-generation"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#mktex-scripts">mktex scripts</a>, -Previous: <a rel="previous" accesskey="p" href="#Cleaning-up">Cleaning up</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.8 Filename database generation</h4> - -<p><a name="index-filename-database-generation-181"></a><a name="index-generation-of-filename-database-182"></a> -You will probably want to set up a <code>cron</code> entry on the appropriate -machine(s) to rebuild the filename database nightly or so, as in: -<pre class="example"> 0 0 * * * cd <var>texmf</var> && <var>/bindir</var>/mktexlsr -</pre> - <p class="noindent">See <a href="#Filename-database">Filename database</a>. - - <p>Although the <code>mktex...</code> scripts make every effort to add -newly-created files on the fly, it can't hurt to make sure you get a -fresh version every so often. - -<div class="node"> -<a name="mktex-scripts"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Installation-testing">Installation testing</a>, -Previous: <a rel="previous" accesskey="p" href="#Filename-database-generation">Filename database generation</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - -</div> - -<h4 class="subsection">2.2.9 <samp><span class="file">mktex</span></samp> scripts</h4> - -<p><a name="index-g_t_0040file_007bmktex_007d-scripts-183"></a><a name="index-scripts-for-file-creation-184"></a> -<a name="index-font-set_002c-infinite-185"></a><a name="index-dynamic-creation-of-files-186"></a><a name="index-Sauter-fonts_002c-and-dynamic-source-creation-187"></a><a name="index-EC-fonts_002c-and-dynamic-source-creation-188"></a>If Kpathsea cannot otherwise find a file, for some file types it is -configured by default to invoke an external program to create it -dynamically (see <a href="#mktex-configuration">mktex configuration</a>). These are collectively -known as <code>mktex</code><dfn> scripts</dfn>, since most of them are named -<code>mktex...</code>. - - <p>For example, this is useful for fonts (bitmaps, TFM's, and -arbitrarily-sizable Metafont sources such as the Sauter and EC fonts), -since any given document can use fonts never before referenced. -Building all fonts in advance is therefore impractical, if not -impossible. - - <p>It is also useful for the TeX ‘<samp><span class="samp">.fmt</span></samp>’ (and Metafont -‘<samp><span class="samp">.base</span></samp>’ and Metapost ‘<samp><span class="samp">.mem</span></samp>’ files, see <a href="Web2c.html#Memory-dumps">Memory dumps</a>), where pre-generating every format consumes a -lot of both time and space. - - <p>The script is passed the name of the file to create and possibly other -arguments, as explained below. It must echo the full pathname of the -file it created (and nothing else) to standard output; it can write -diagnostics to standard error. - -<ul class="menu"> -<li><a accesskey="1" href="#mktex-configuration">config</a> -<li><a accesskey="2" href="#mktex-script-names">names</a> -<li><a accesskey="3" href="#mktex-script-arguments">args</a> -</ul> - -<div class="node"> -<a name="mktex-configuration"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#mktex-script-names">mktex script names</a>, -Up: <a rel="up" accesskey="u" href="#mktex-scripts">mktex scripts</a> - -</div> - -<h5 class="subsubsection">2.2.9.1 <samp><span class="file">mktex</span></samp> configuration</h5> - -<p><a name="index-g_t_0040file_007bmktex_007d-script-configuration-189"></a><a name="index-configuration-of-_0040file_007bmktex_007d-scripts-190"></a><a name="index-enabling-_0040file_007bmktex_007d-scripts-191"></a><a name="index-disabling-_0040file_007bmktex_007d-scripts-192"></a> -The list of file types and program names that can run an external -program to create missing files is listed in the next section. In the -absence of <code>configure</code> options specifying otherwise, everything -but <samp><span class="file">mktextex</span></samp> will be enabled by default. The <code>configure</code> -options to change the defaults are: - - <p><a name="index-g_t_0040code_007bconfigure_007d-options-for-_0040file_007bmktex_007d-scripts-193"></a><a name="index-g_t_002d_002dwithout_002dmktexfmt_002ddefault-194"></a><a name="index-g_t_002d_002dwithout_002dmktexmf_002ddefault-195"></a><a name="index-g_t_002d_002dwithout_002dmktexocp_002ddefault-196"></a><a name="index-g_t_002d_002dwithout_002dmktexofm_002ddefault-197"></a><a name="index-g_t_002d_002dwithout_002dmktexpk_002ddefault-198"></a><a name="index-g_t_002d_002dwithout_002dmktextfm_002ddefault-199"></a><a name="index-g_t_002d_002dwith_002dmktextex_002ddefault-200"></a> -<pre class="example"> --without-mktexfmt-default - --without-mktexmf-default - --without-mktexocp-default - --without-mktexofm-default - --without-mktexpk-default - --without-mktextfm-default - --with-mktextex-default -</pre> - <p>The <code>configure</code> setting is overridden if the environment variable -or configuration file value named for the script is set; e.g., -<samp><span class="file">MKTEXPK</span></samp> (see <a href="#mktex-script-arguments">mktex script arguments</a>). - - <p><a name="index-fmtutils_002ecnf-201"></a><code>mktexfmt</code> reads a file <samp><span class="file">fmtutil.cnf</span></samp>, typically located in -<samp><span class="file">texmf/web2c/</span></samp> to glean its configuration information. The rest -of the files and features in this section are primarily intended for -the font generation scripts. - - <p><a name="index-mktex_002ecnf-202"></a><a name="index-mktex_002eopt-203"></a><a name="index-site-overrides-for-_0040code_007bmktex_0040dots_007b_007d_007d-204"></a>As distributed, all the scripts source a file -<samp><span class="file">texmf/web2c/mktex.cnf</span></samp> if it exists, so you can override various -defaults. -See <samp><span class="file">mktex.opt</span></samp>, for instance, which defines the default mode, -resolution, some special directory names, etc. If you prefer not to -change the distributed scripts, you can simply create <samp><span class="file">mktex.cnf</span></samp> -with the appropriate definitions (you do not need to create it if you -have nothing to put in it). <samp><span class="file">mktex.cnf</span></samp> has no special syntax; -it's an arbitrary Bourne shell script. The distribution contains a -sample <samp><span class="file">mktex.cnf</span></samp> for you to copy and modify as you please (it -is not installed anywhere). - - <p><a name="index-mktex_002eopt-205"></a><a name="index-MT_005fFEATURES-206"></a>In addition, you can configure a number of features with the -<code>MT_FEATURES</code> variable, which you can define: - - <ul> -<li>in <samp><span class="file">mktex.opt</span></samp>, as just mentioned; - - <li>by editing the file <samp><span class="file">mktex.opt</span></samp>, either before ‘<samp><span class="samp">make -install</span></samp>’ (in the source hierarchy) or after (in the installed -hierarchy); - - <li>or in the environment. -</ul> - - <p>If none of the options below are enabled, <code>mktexpk</code>, -<code>mktextfm</code>, and <code>mktexmf</code> follow the following procedure to -decide where fonts should be installed. Find the tree where the font's -sources are, and test the permissions of the ‘<samp><span class="samp">fonts</span></samp>’ directory of -that tree to determine whether it is writable. If it is, put the files -in the tree in appropriate locations. If it isn't writable, see whether -the tree is a system tree (named in <code>SYSTEXMF</code>). If so, the -<code>VARTEXFONTS</code> tree is used. In all other cases the working -directory is used. - - <p>The ‘<samp><span class="samp">appendonlydir</span></samp>’ option is enabled by default. - - <dl> -<dt>‘<samp><span class="samp">appendonlydir</span></samp>’<a name="index-appendonlydir-207"></a><dd><a name="index-directories_002c-making-append_002donly-208"></a><a name="index-mktexdir-209"></a>Tell <code>mktexdir</code> to create directories append-only, i.e., set -their sticky bit (see <a href="coreutils.html#Mode-Structure">Mode Structure</a>). This feature is silently ignored on non-Unix platforms -(e.g. Windows/NT and MS-DOS) which don't support similar functionality. -This feature is enabled by default. - - <br><dt>‘<samp><span class="samp">dosnames</span></samp>’<a name="index-dosnames-210"></a><dd><a name="index-g_t8_002e3-filenames_002c-using-211"></a><a name="index-DOS-compatible-names-212"></a><a name="index-dpi_0040var_007bnnn_007d-directories-213"></a>Use 8.3 names; e.g., <samp><span class="file">dpi600/cmr10.pk</span></samp> instead of -<samp><span class="file">cmr10.600pk</span></samp>. Note that this feature only affects filenames that -would otherwise clash with other TeX-related filenames; <samp><span class="file">mktex</span></samp> -scripts do nothing about filenames which exceed the 8+3 MS-DOS limits -but remain unique when truncated (by the OS) to these limits, and nether -do the scripts care about possible clashes with files which aren't -related with TeX. For example, <samp><span class="file">cmr10.600pk</span></samp> would clash with -<samp><span class="file">cmr10.600gf</span></samp> and is therefore changed when ‘<samp><span class="samp">dosnames</span></samp>’ is in -effect, but <samp><span class="file">mf.pool</span></samp> and <samp><span class="file">mp.base</span></samp> don't clash with any -TeX-related files and are therefore unchanged. - - <p>This feature is turned on by default on MS-DOS. If you do not wish -‘<samp><span class="samp">dosnames</span></samp>’ to be set on an MS-DOS platform, you need to set the -<code>MT_FEATURES</code> environment variable to a value that doesn't include -‘<samp><span class="samp">dosnames</span></samp>’. You can also change the default setting by editing -<samp><span class="file">mktex.opt</span></samp>, but only if you use the <samp><span class="file">mktex</span></samp> shell scripts; -the emulation programs don't consult <samp><span class="file">mktex.opt</span></samp>. - - <br><dt>‘<samp><span class="samp">fontmaps</span></samp>’<a name="index-fontmaps-214"></a><dd><a name="index-fontmaps-215"></a><a name="index-fontname-216"></a>Instead of deriving the location of a font in the destination tree from -the location of the sources, the aliases and directory names from the -Fontname distribution are used. (see <a href="fontname.html#Top">Introduction</a>). - - <br><dt>‘<samp><span class="samp">nomfdrivers</span></samp>’<a name="index-nomfdrivers-217"></a><dd><a name="index-metafont-driver-files-218"></a>Let mktexpk and mktextfm create metafont driver files in a temporary -directory. These will be used for just one metafont run and not -installed permanently. - - <br><dt>‘<samp><span class="samp">nomode</span></samp>’<a name="index-nomode-219"></a><dd><a name="index-mode-directory_002c-omitting-220"></a>Omit the directory level for the mode name; this is fine as long as -you generate fonts for only one mode. - - <br><dt>‘<samp><span class="samp">stripsupplier</span></samp>’<a name="index-stripsupplier-221"></a><dd><a name="index-supplier-directory_002c-omitting-222"></a>Omit the font supplier name directory level. - - <br><dt>‘<samp><span class="samp">striptypeface</span></samp>’<a name="index-striptypeface-223"></a><dd><a name="index-typeface-directory_002c-omitting-224"></a>Omit the font typeface name directory level. - - <br><dt>‘<samp><span class="samp">strip</span></samp>’<a name="index-strip-225"></a><dd><a name="index-supplier-directory_002c-omitting-226"></a><a name="index-typeface-directory_002c-omitting-227"></a>Omit the font supplier and typeface name directory levels. This feature -is deprecated in favour of ‘<samp><span class="samp">stripsupplier</span></samp>’ and ‘<samp><span class="samp">striptypeface</span></samp>’. - - <br><dt>‘<samp><span class="samp">varfonts</span></samp>’<a name="index-varfonts-228"></a><dd><a name="index-g_t_002fvar_002ftmp_002ftexfonts-229"></a><a name="index-VARTEXFONTS-230"></a><a name="index-Linux-File-System-Standard-231"></a>When this option is enabled, fonts that would otherwise be written in -system texmf tree go to the <code>VARTEXFONTS</code> tree instead. The -default value in <samp><span class="file">kpathsea/Makefile.in</span></samp> is -<samp><span class="file">/var/tmp/texfonts</span></samp>. The <cite>Linux File System Standard</cite> -recommends <samp><span class="file">/var/tex/fonts</span></samp>. - - <p><a name="index-USE_005fVARTEXFONTS-232"></a>The ‘<samp><span class="samp">varfonts</span></samp>’ setting in <code>MT_FEATURES</code> is overridden by the -<code>USE_VARTEXFONTS</code> environment variable: if set to ‘<samp><span class="samp">1</span></samp>’, the -feature is enabled, and if set to ‘<samp><span class="samp">0</span></samp>’, the feature is disabled. - - <br><dt>‘<samp><span class="samp">texmfvar</span></samp>’<a name="index-texmfvar-233"></a><dd><a name="index-TEXMFVAR-234"></a>Force generated files that would go into a system tree (as defined by -<code>SYSTEXMF</code>) into <code>TEXMFVAR</code>. Starting with teTeX-3.0, the -variable <code>TEXMFVAR</code> is always set. The ‘<samp><span class="samp">varfonts</span></samp>’ feature takes -precedence if also set. - - <p><a name="index-USE_005fTEXMFVAR-235"></a>The ‘<samp><span class="samp">texmfvar</span></samp>’ setting in <code>MT_FEATURES</code> is overridden by the -<code>USE_TEXMFVAR</code> environment variable: if set to ‘<samp><span class="samp">1</span></samp>’, the -feature is enabled, and if set to ‘<samp><span class="samp">0</span></samp>’, the feature is disabled. -</dl> - -<div class="node"> -<a name="mktex-script-names"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#mktex-script-arguments">mktex script arguments</a>, -Previous: <a rel="previous" accesskey="p" href="#mktex-configuration">mktex configuration</a>, -Up: <a rel="up" accesskey="u" href="#mktex-scripts">mktex scripts</a> - -</div> - -<h5 class="subsubsection">2.2.9.2 <samp><span class="file">mktex</span></samp> script names</h5> - -<p><a name="index-g_t_0040file_007bmktex_007d-script-names-236"></a><a name="index-names-for-_0040file_007bmktex_007d-scripts-237"></a> -The following table shows the default name of the script for each -of the file types which support runtime generation. - - <dl> -<dt><samp><span class="file">mktexfmt</span></samp><dd><a name="index-mktexfmt-238"></a><a name="index-fmtutil-239"></a>(‘<samp><span class="samp">.fmt</span></samp>’, ‘<samp><span class="samp">.base</span></samp>’, ‘<samp><span class="samp">.mem</span></samp>’) TeX/Metafont/MetaPost -formats. This script is also named <samp><span class="command">fmtutil</span></samp>, and reads -<samp><span class="file">fmtutil.cnf</span></samp> for configuration information. - - <br><dt><samp><span class="file">mktexmf</span></samp><dd><a name="index-mktexmf-240"></a>(‘<samp><span class="samp">.mf</span></samp>’) Metafont input files. - - <br><dt><samp><span class="file">mkocp</span></samp><dd><a name="index-mkocp-241"></a>(‘<samp><span class="samp">.ocp</span></samp>’) Omega compiled process files. - - <br><dt><samp><span class="file">mkofm</span></samp><dd><a name="index-mkofm-242"></a>(‘<samp><span class="samp">.ofm</span></samp>’) Omega font metric files. - - <br><dt><samp><span class="file">mktexpk</span></samp><dd><a name="index-mktexpk-243"></a>(‘<samp><span class="samp">pk</span></samp>’) Glyph fonts. - - <br><dt><samp><span class="file">mktextex</span></samp><dd><a name="index-mktextex-244"></a>(‘<samp><span class="samp">.tex</span></samp>’) TeX input files (disabled by default). - - <br><dt><samp><span class="file">mktextfm</span></samp><dd><a name="index-mktextfm-245"></a>(‘<samp><span class="samp">.tfm</span></samp>’) TFM files. -</dl> - - <p><a name="index-DVIPSMAKEPK-246"></a><a name="index-XDVIMAKEPK-247"></a><a name="index-DVILJMAKEPK-248"></a>These names can be overridden by an environment variable specific -to the program—for example, <code>DVIPSMAKEPK</code> for Dvipsk. - -<!-- next two paragraphs are repeated in dvips.texi --> - <p><a name="index-missfont_002elog-249"></a><a name="index-failed-_0040code_007bmktex_0040dots_007b_007d_007d-script-invocation-250"></a>If a <code>mktex...</code> script fails, the invocation is appended to a -file <samp><span class="file">missfont.log</span></samp> (by default) in the current directory. You can -then execute the log file to create the missing files after fixing the -problem. - - <p><a name="index-TEXMFOUTPUT-251"></a><a name="index-MISSFONT_005fLOG-252"></a>If the current directory is not writable and the environment variable or -configuration file value <code>TEXMFOUTPUT</code> is set, its value is -used. Otherwise, nothing is written. The name ‘<samp><span class="samp">missfont.log</span></samp>’ is -overridden by the <code>MISSFONT_LOG</code> environment variable or -configuration file value. - -<div class="node"> -<a name="mktex-script-arguments"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#mktex-script-names">mktex script names</a>, -Up: <a rel="up" accesskey="u" href="#mktex-scripts">mktex scripts</a> - -</div> - -<h5 class="subsubsection">2.2.9.3 <samp><span class="file">mktex</span></samp> script arguments</h5> - -<p><a name="index-arguments-to-_0040file_007bmktex_007d-253"></a> -The first argument to a <samp><span class="file">mktex</span></samp> script is always the name -of the file to be created. - - <p>In the default <samp><span class="file">mktexpk</span></samp> implementation, additional arguments may -also be passed: - - <dl> -<dt>‘<samp><span class="samp">--dpi </span><var>num</var></samp>’<dd>Sets the resolution of the generated font to <var>num</var>. -<br><dt>‘<samp><span class="samp">--mfmode </span><var>name</var></samp>’<dd>Sets the Metafont mode to <var>name</var>. -<br><dt>‘<samp><span class="samp">--bdpi </span><var>num</var></samp>’<dd>Sets the “base dpi” for the font. This must match the mode being -used. -<br><dt>‘<samp><span class="samp">--mag </span><var>string</var></samp>’<dd>A “magstep” string suitable for the Metafont <code>mag</code> variable. -This must match the combination of <var>bdpi</var> and <var>dpi</var> being used. -<br><dt>‘<samp><span class="samp">--destdir </span><var>string</var></samp>’<dd>A directory name. If the directory is absolute, it is used as-is. -Otherwise, it is appended to the root destination directory set in the -script. -</dl> - -<div class="node"> -<a name="Installation-testing"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#mktex-scripts">mktex scripts</a>, -Up: <a rel="up" accesskey="u" href="#Custom-installation">Custom installation</a> - +</p> +<a name="index-Hoekwater_002c-Taco"></a> +<a name="index-Breitenlohner_002c-Peter"></a> +<p>[Karl writes again.] Indeed, time goes on. As of 2006 or so, Olaf’s +available time for Kpathsea became rather reduced, and I started +taking overall care of it again, although I did not do any significant +new development. In 2009, Taco Hoekwater made a major rearrangement +to make the library suitable for use within the MetaPost library +(see <a href="#Programming-overview">Programming overview</a>). Also, for some years now, Peter +Breitenlohner has made many improvements to the infrastructure and +kept up-to-date with respect to the overall TeX Live build, where +Kpathsea is now maintained. +</p> + + +<hr> +<a name="unixtex_002eftp"></a> +<div class="header"> +<p> +Next: <a href="#Security" accesskey="n" rel="next">Security</a>, Previous: <a href="#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="unixtex_002eftp_003a-Obtaining-TeX"></a> +<h2 class="chapter">2 <samp>unixtex.ftp</samp>: Obtaining TeX</h2> -<h4 class="subsection">2.2.10 Installation testing</h4> +<a name="index-obtaining-TeX"></a> +<a name="index-retrieving-TeX"></a> -<p><a name="index-testing_002c-post_002dinstallation-254"></a><a name="index-installation-testing-255"></a> -Besides the tests listed in <a href="#Simple-installation">Simple installation</a>, you can try -running ‘<samp><span class="samp">make check</span></samp>’. This includes the torture tests (trip, trap, -and mptrap) that come with Web2c (see <a href="web2c.html#Triptrap">Triptrap</a>). - -<div class="node"> +<a name="index-unixtex_002eftp"></a> +<a name="index-tug_002eorg"></a> +<a name="index-www_002etug_002eorg"></a> +<a name="index-ftp_002etug_002eorg"></a> +<p>This +is <a href="ftp://ftp.tug.org/tex/unixtex.ftp">ftp://ftp.tug.org/tex/unixtex.ftp</a>, last updated 13 June +2010. Also available as <a href="http://www.tug.org/unixtex.ftp">http://www.tug.org/unixtex.ftp</a>. Email +<a href="mailto:tex-k@tug.org">tex-k@tug.org</a> with comments or questions. +</p> +<p>The principal free TeX distribution for Unix-like systems is TeX +Live, on the web at <a href="http://tug.org/texlive">http://tug.org/texlive</a>. The pages there +describe many ways to acquire and build TeX, over the Internet or +on physical media, both the sources and precompiled binaries for many +systems, either standalone or as part of various operating system +distributions. +</p> +<p>Web2C, Kpathsea, Dvips, and Dviljk are no longer released as a +separate packages. Their sources are now maintained as part of TeX +Live. +</p> +<a name="index-ftp_002ecs_002estanford_002eedu"></a> +<a name="index-tex_002eweb"></a> +<a name="index-Knuth_002c-Donald-E_002e_002c-archive-of-programs-by"></a> +<p>The host <tt>ftp.cs.stanford.edu</tt> is the original source for the files +for which Donald Knuth is directly responsible: <samp>tex.web</samp>, +<samp>plain.tex</samp>, etc. However, unless you want to undertake the very +significant project of building your TeX installation from scratch, +it is far more reliable and less work to retrieve these files as part +of a larger package +</p> +<p>In any case, the Stanford ftp site is not the canonical source for +anything except what was created as part of Knuth’s original TeX, +so do not rely on any other files available there being up-to-date. +The best place to check for up-to-date files is CTAN (the +Comprehensive TeX Archive Network), <a href="http://www.ctan.org">http://www.ctan.org</a>. +</p> + + +<hr> <a name="Security"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#TeX-directory-structure">TeX directory structure</a>, -Previous: <a rel="previous" accesskey="p" href="#Custom-installation">Custom installation</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - +<div class="header"> +<p> +Next: <a href="#TeX-directory-structure" accesskey="n" rel="next">TeX directory structure</a>, Previous: <a href="#unixtex_002eftp" accesskey="p" rel="prev">unixtex.ftp</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Security-1"></a> +<h2 class="chapter">3 Security</h2> -<h3 class="section">2.3 Security</h3> +<a name="index-security-considerations"></a> -<p><a name="index-security-considerations-256"></a> -None of the programs in the TeX system require any special system -privileges, so there's no first-level security concern of people gaining +<p>None of the programs in the TeX system require any special system +privileges, so there’s no first-level security concern of people gaining illegitimate root access. - - <p><a name="index-trojan-horse-attack-257"></a><a name="index-g_t_002erhosts_0040r_007b_002c-writable-by-_0040TeX_007b_007d_007d-258"></a>A TeX document, however, can write to arbitrary files, e.g., -<samp><span class="file">~/.rhosts</span></samp>, and thus an unwitting user who runs TeX on a random +</p> +<a name="index-trojan-horse-attack"></a> +<a name="index-_002erhosts_002c-writable-by-TeX"></a> +<p>A TeX document, however, can write to arbitrary files, e.g., +<samp>~/.rhosts</samp>, and thus an unwitting user who runs TeX on a random document is vulnerable to a trojan horse attack. This loophole is closed by default, but you can be permissive if you so desire in -<samp><span class="file">texmf.cnf</span></samp>. See <a href="web2c.html#tex-invocation">tex invocation</a>. MetaPost has +<samp>texmf.cnf</samp>. See <a href="web2c.html#tex-invocation">tex invocation</a> in <cite>Web2c</cite>. MetaPost has the same issue. - - <p>Dvips, Xdvi, and TeX can also execute shell commands under some -circumstances. To disable this, see the ‘<samp><span class="samp">-R</span></samp>’ option in <a href="dvips.html#Option-details">Option details</a>, the xdvi man page, and <a href="web2c.html#tex-invocation">tex invocation</a>, respectively. - - <p><a name="index-local-cache-of-fonts-259"></a><a name="index-cache-of-fonts_002c-local-260"></a>Another security issue arises because it's very useful—almost +</p> +<p>Dvips, Xdvi, and TeX can also execute shell commands under some +circumstances. To disable this, see the ‘<samp>-R</samp>’ option in <a href="dvips.html#Option-details">Option +details</a> in <cite>Dvips</cite>, the xdvi man page, and <a href="web2c.html#tex-invocation">tex +invocation</a> in <cite>Web2c</cite>, respectively. +</p> +<a name="index-local-cache-of-fonts"></a> +<a name="index-cache-of-fonts_002c-local"></a> +<p>Another security issue arises because it’s very useful—almost necessary—to make arbitrary fonts on user demand with <code>mktexpk</code> and friends. Where do these files get installed? By default, the <code>mktexpk</code> distributed with Kpathsea assumes a world-writable -<samp><span class="file">/var/tmp</span></samp> directory; this is a simple and convenient approach, but +<samp>/var/tmp</samp> directory; this is a simple and convenient approach, but it may not suit your situation because it means that a local cache of fonts is created on every machine. - - <p><a name="index-globally-writable-directories-261"></a>To avoid this duplication, many people consider a shared, globally +</p> +<a name="index-globally-writable-directories"></a> +<p>To avoid this duplication, many people consider a shared, globally writable font tree desirable, in spite of the potential security problems. To do this you should change the value of <code>VARTEXFONTS</code> -in <samp><span class="file">texmf.cnf</span></samp> to refer to some globally known directory. +in <samp>texmf.cnf</samp> to refer to some globally known directory. See <a href="#mktex-configuration">mktex configuration</a>. - - <p><a name="index-append_002donly-directories-and-_0040code_007bmktexpk_007d-262"></a>The first restriction you can apply is to make newly-created directories -under <samp><span class="file">texmf</span></samp> be append-only with an option in <samp><span class="file">mktex.cnf</span></samp>. +</p> +<a name="index-append_002donly-directories-and-mktexpk"></a> +<p>The first restriction you can apply is to make newly-created directories +under <samp>texmf</samp> be append-only with an option in <samp>mktex.cnf</samp>. See <a href="#mktex-configuration">mktex configuration</a>. - - <p><a name="index-group_002dwritable-directories-263"></a><a name="index-setgid-scripts-264"></a>Another approach is to establish a group (or user) for TeX files, -make the <samp><span class="file">texmf</span></samp> tree writable only to that group (or user), and +</p> +<a name="index-group_002dwritable-directories"></a> +<a name="index-setgid-scripts"></a> +<p>Another approach is to establish a group (or user) for TeX files, +make the <samp>texmf</samp> tree writable only to that group (or user), and make <code>mktexpk</code> et al. setgid to that group (or setuid to that user). Then users must invoke the scripts to install things. (If -you're worried about the inevitable security holes in scripts, then you +you’re worried about the inevitable security holes in scripts, then you could write a C wrapper to exec the script.) - - <p><a name="index-file-permissions-265"></a><a name="index-permissions_002c-file-266"></a>The <samp><span class="file">mktex...</span></samp> scripts install files with the same read and +</p> +<a name="index-file-permissions"></a> +<a name="index-permissions_002c-file"></a> +<p>The <samp>mktex…</samp> scripts install files with the same read and write permissions as the directory they are installed in. The executable, sgid, suid, and sticky bits are always cleared. - - <p><a name="index-directory-permissions-267"></a><a name="index-permissions_002c-directory-268"></a>Any directories created by the <samp><span class="file">mktex...</span></samp> scripts have the +</p> +<a name="index-directory-permissions"></a> +<a name="index-permissions_002c-directory"></a> +<p>Any directories created by the <samp>mktex…</samp> scripts have the same permissions as their parent directory, unless the <code>appendonlydir</code> feature is used, in which case the sticky bit is always set. +</p> -<div class="node"> +<hr> <a name="TeX-directory-structure"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#unixtex_002eftp">unixtex.ftp</a>, -Previous: <a rel="previous" accesskey="p" href="#Security">Security</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - +<div class="header"> +<p> +Next: <a href="#Path-searching" accesskey="n" rel="next">Path searching</a>, Previous: <a href="#Security" accesskey="p" rel="prev">Security</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="TeX-directory-structure-1"></a> +<h2 class="chapter">4 TeX directory structure</h2> -<h3 class="section">2.4 TeX directory structure</h3> +<a name="index-TEXMF"></a> +<a name="index-TeX-directory-structure"></a> +<a name="index-directory-structure_002c-for-TeX-files"></a> +<a name="index-skeleton-TeX-directory"></a> +<a name="index-TDS"></a> -<p><a name="index-TEXMF-269"></a><a name="index-g_t_0040TeX_007b_007d-directory-structure-270"></a><a name="index-directory-structure_002c-for-_0040TeX_007b_007d-files-271"></a><a name="index-skeleton-_0040TeX_007b_007d-directory-272"></a><a name="index-TDS-273"></a> -This section describes the default installation hierarchy of the +<p>This section describes the default installation hierarchy of the distribution. It conforms to both the GNU coding standards and the TeX directory structure (TDS) standard. For rationale and further -explanation, please see those documents. The GNU standard is available -as <a href="ftp://prep.ai.mit.edu/pub/gnu/standards/standards.texi">ftp://prep.ai.mit.edu/pub/gnu/standards/standards.texi</a> and -mirrors. The TDS document is available from -<samp><var>CTAN:</var><span class="file">/tex-archive/tds</span></samp> (see <a href="#unixtex_002eftp">unixtex.ftp</a>). - - <p>You can change the default paths in many ways (see <a href="#Changing-search-paths">Changing search paths</a>). One common desire is to put everything (binaries and all) -under a single top-level directory such as <samp><span class="file">/usr/local/texmf</span></samp> or -<samp><span class="file">/opt/texmf</span></samp>—in the terms used below, make <var>prefix</var> and -<var>texmf</var> the same. For specific instructions on doing that, -see <a href="#configure-scenarios">configure scenarios</a>. - - <p>Here is a skeleton of the default directory structure, extracted from -the TDS document: - -<pre class="example"> <var>prefix</var>/ <span class="roman">installation root (</span><samp><span class="file">/usr/local</span></samp><span class="roman"> by default)</span> - bin/ <span class="roman">executables</span> - man/ <span class="roman">man pages</span> - include/ <span class="roman">C header files</span> - info/ <span class="roman">GNU info files</span> - lib/ <span class="roman">libraries (</span><samp><span class="file">libkpathsea.*</span></samp><span class="roman">)</span> - share/ <span class="roman">architecture-independent files</span> - texmf/ <span class="roman">TDS root</span> - bibtex/ <span class="roman">BibTeX input files</span> - bib/ <span class="roman">BibTeX databases</span> - base/ <span class="roman">base distribution (e.g., ‘</span><samp><span class="samp">xampl.bib</span></samp><span class="roman">’)</span> - misc/ <span class="roman">single-file databases</span> - <var>pkg</var>/ <span class="roman">name of a package</span> - bst/ <span class="roman">BibTeX style files</span> - base/ <span class="roman">base distribution (e.g., ‘</span><samp><span class="samp">plain.bst</span></samp><span class="roman">’, ‘</span><samp><span class="samp">acm.bst</span></samp><span class="roman">’)</span> - misc/ <span class="roman">single-file styles</span> - <var>pkg</var>/ <span class="roman">name of a package</span> - doc/ <span class="roman">additional documentation</span> - dvips/ <span class="roman">‘</span><samp><span class="samp">.pro</span></samp><span class="roman">’, ‘</span><samp><span class="samp">.ps</span></samp><span class="roman">’, ‘</span><samp><span class="samp">psfonts.map</span></samp><span class="roman">’</span> - fonts/ <span class="roman">font-related files</span> - <var>type</var>/ <span class="roman">file type (e.g., ‘</span><samp><span class="samp">tfm</span></samp><span class="roman">’, ‘</span><samp><span class="samp">pk</span></samp><span class="roman">’)</span> - <var>mode</var>/ <span class="roman">type of output device (types ‘</span><samp><span class="samp">pk</span></samp><span class="roman">’ and ‘</span><samp><span class="samp">gf</span></samp><span class="roman">’ only)</span> - <var>supplier</var>/ <span class="roman">name of a font supplier (e.g., ‘</span><samp><span class="samp">public</span></samp><span class="roman">’)</span> - <var>typeface</var>/ <span class="roman">name of a typeface (e.g., ‘</span><samp><span class="samp">cm</span></samp><span class="roman">’)</span> - dpi<var>nnn</var>/ <span class="roman">font resolution (types ‘</span><samp><span class="samp">pk</span></samp><span class="roman">’ and ‘</span><samp><span class="samp">gf</span></samp><span class="roman">’ only)</span> - metafont/ <span class="roman">Metafont (non-font) input files</span> - base/ <span class="roman">base distribution (e.g., ‘</span><samp><span class="samp">plain.mf</span></samp><span class="roman">’)</span> - misc/ <span class="roman">single-file packages (e.g., ‘</span><samp><span class="samp">modes.mf</span></samp><span class="roman">’)</span> - <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘</span><samp><span class="samp">mfpic</span></samp><span class="roman">’)</span> - metapost/ <span class="roman">MetaPost input files</span> - base/ <span class="roman">base distribution (e.g., ‘</span><samp><span class="samp">plain.mp</span></samp><span class="roman">’)</span> - misc/ <span class="roman">single-file packages</span> - <var>pkg</var>/ <span class="roman">name of a package</span> - support/ <span class="roman">support files for MetaPost-related utilities (e.g., ‘</span><samp><span class="samp">trfonts.map</span></samp><span class="roman">’)</span> - mft/ <span class="roman">‘</span><samp><span class="samp">MFT</span></samp><span class="roman">’ inputs (e.g., ‘</span><samp><span class="samp">plain.mft</span></samp><span class="roman">’)</span> - tex/ <span class="roman">TeX input files</span> - <var>format</var>/ <span class="roman">name of a format (e.g., ‘</span><samp><span class="samp">plain</span></samp><span class="roman">’)</span> - base/ <span class="roman">base distribution for </span><var>format</var><span class="roman"> (e.g., ‘</span><samp><span class="samp">plain.tex</span></samp><span class="roman">’)</span> - misc/ <span class="roman">single-file packages (e.g., ‘</span><samp><span class="samp">webmac.tex</span></samp><span class="roman">’)</span> - local/ <span class="roman">local additions to or local configuration files for </span><var>format</var> - <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘</span><samp><span class="samp">graphics</span></samp><span class="roman">’, ‘</span><samp><span class="samp">mfnfss</span></samp><span class="roman">’)</span> - generic/ <span class="roman">format-independent packages</span> - hyphen/ <span class="roman">hyphenation patterns (e.g., ‘</span><samp><span class="samp">hyphen.tex</span></samp><span class="roman">’)</span> - images/ <span class="roman">image input files (e.g., Encapsulated PostScript)</span> - misc/ <span class="roman">single-file format-independent packages (e.g., ‘</span><samp><span class="samp">null.tex</span></samp><span class="roman">’).</span> - <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘</span><samp><span class="samp">babel</span></samp><span class="roman">’)</span> - web2c/ <span class="roman">implementation-dependent files (</span><samp><span class="file">.pool</span></samp><span class="roman">, </span><samp><span class="file">.fmt</span></samp><span class="roman">, </span><samp><span class="file">texmf.cnf</span></samp><span class="roman">, etc.)</span> -</pre> - <p>Some concrete examples for most file types: - -<pre class="example"> /usr/local/bin/tex - /usr/local/man/man1/xdvi.1 - /usr/local/info/kpathsea.info - /usr/local/lib/libkpathsea.a - /usr/local/share/texmf/bibtex/bst/base/plain.bst - /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmr10.600pk - /usr/local/share/texmf/fonts/source/public/pandora/pnr10.mf - /usr/local/share/texmf/fonts/tfm/public/cm/cmr10.tfm - /usr/local/share/texmf/fonts/type1/adobe/utopia/putr.pfa - /usr/local/share/texmf/metafont/base/plain.mf - /usr/local/share/texmf/metapost/base/plain.mp - /usr/local/share/texmf/tex/plain/base/plain.tex - /usr/local/share/texmf/tex/generic/hyphen/hyphen.tex - /usr/local/share/texmf/web2c/tex.pool - /usr/local/share/texmf/web2c/tex.fmt - /usr/local/share/texmf/web2c/texmf.cnf -</pre> - <div class="node"> -<a name="unixtex.ftp"></a> -<a name="unixtex_002eftp"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Reporting-bugs">Reporting bugs</a>, -Previous: <a rel="previous" accesskey="p" href="#TeX-directory-structure">TeX directory structure</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - -</div> - -<h3 class="section">2.5 <samp><span class="file">unixtex.ftp</span></samp>: Obtaining TeX</h3> - -<p><a name="index-obtaining-_0040TeX_007b_007d-274"></a><a name="index-retrieving-_0040TeX_007b_007d-275"></a> -<a name="index-unixtex_002eftp-276"></a><a name="index-tug_002eorg-277"></a><a name="index-www_002etug_002eorg-278"></a><a name="index-ftp_002etug_002eorg-279"></a>This -is <a href="ftp://ftp.tug.org/tex/unixtex.ftp">ftp://ftp.tug.org/tex/unixtex.ftp</a>, last updated 13 June -2010. Also available as <a href="http://www.tug.org/unixtex.ftp">http://www.tug.org/unixtex.ftp</a>. Email -<a href="mailto:tex-k@tug.org">tex-k@tug.org</a> with comments or questions. - - <p>The principal free TeX distribution for Unix-like systems is TeX -Live, on the web at <a href="http://tug.org/texlive">http://tug.org/texlive</a>. The pages there -describe many ways to acquire TeX, over the Internet or on physical -media, both the sources and precompiled binaries for many systems, -either standalone or as part of various operating system -distributions. - - <p>Web2C, Kpathsea, Dvips, and Dviljk are no longer released as a -separate packages. Their sources are now maintained as part of TeX -Live. - - <p><a name="index-ftp_002ecs_002estanford_002eedu-280"></a><a name="index-tex_002eweb-281"></a><a name="index-Knuth_002c-Donald-E_002e_002c-archive-of-programs-by-282"></a>The host <tt>ftp.cs.stanford.edu</tt> is the original source for the files -for which Donald Knuth is directly responsible: <samp><span class="file">tex.web</span></samp>, -<samp><span class="file">plain.tex</span></samp>, etc. However, unless you want to build your TeX -library tree ab initio, it is more reliable and less work to retrieve -these files as part of a larger package. In any case, that ftp site is -not the canonical source for anything except what was created as part -of Stanford TeX project, so do not rely on the other files available -there being up-to-date. - -<div class="node"> -<a name="Reporting-bugs"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#unixtex_002eftp">unixtex.ftp</a>, -Up: <a rel="up" accesskey="u" href="#Installation">Installation</a> - -</div> - -<h3 class="section">2.6 Reporting bugs</h3> - -<p><a name="index-reporting-bugs-283"></a><a name="index-bugs_002c-reporting-284"></a> -(A copy of this chapter is in the file <samp><span class="file">kpathsea/BUGS</span></samp>.) - - <p><a name="index-tex_002dk_0040_0040tug_002eorg-_0040r_007b_0028bug-address_0029_007d-285"></a><a name="index-bug-address-286"></a>If you have problems or suggestions, please report them to -<a href="mailto:tex-k@tug.org">tex-k@tug.org</a> using the bug checklist below. - - <p>Please report bugs in the documentation; not only factual errors or -inconsistent behavior, but unclear or incomplete explanations, typos, -wrong fonts, <small class="dots">...</small> - -<ul class="menu"> -<li><a accesskey="1" href="#Bug-checklist">Bug checklist</a>: What to include in a good bug report. -<li><a accesskey="2" href="#Mailing-lists">Mailing lists</a>: Joining the bugs or announcements mailing lists. -<li><a accesskey="3" href="#Debugging">Debugging</a>: Analyzing runtime problems. -<li><a accesskey="4" href="#Logging">Logging</a>: Recording searches. -<li><a accesskey="5" href="#Common-problems">Common problems</a>: When things go wrong. -</ul> - -<div class="node"> -<a name="Bug-checklist"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Mailing-lists">Mailing lists</a>, -Up: <a rel="up" accesskey="u" href="#Reporting-bugs">Reporting bugs</a> - -</div> - -<h4 class="subsection">2.6.1 Bug checklist</h4> - -<p><a name="index-checklist-for-bug-reports-287"></a><a name="index-bug-checklist-288"></a> -Before reporting a bug, please check below to be sure it isn't already -known (see <a href="#Common-problems">Common problems</a>). - - <p>Bug reports should be sent via electronic mail to -<a href="mailto:tex-k@tug.org">tex-k@tug.org</a>. - - <p>The general principle is that a good bug report includes all the -information necessary for reproduction. Therefore, to enable -investigation, your report should include the following: - - <ul> -<li><a name="index-version-numbers_002c-determining-289"></a>The version number(s) of the program(s) involved, and of Kpathsea -itself. You can get the former by giving a sole option ‘<samp><span class="samp">--version</span></samp>’ -to the program, and the latter by running ‘<samp><span class="samp">kpsewhich --version</span></samp>’. -The <samp><span class="file">NEWS</span></samp> and <samp><span class="file">ChangeLog</span></samp> files also contain the version -number. - - <li><a name="index-uname-290"></a>The hardware, operating system (including version number), compiler, and -<code>make</code> program you are using (the output of <code>uname -a</code> is a -start on the first two, though often incomplete). If the bug involves -the X window system, include X version and supplier information as well -(examples: X11R6 from MIT; X11R4 from HP; OpenWindows 3.3 bundled with -SunOS 4.1.4). - - <li><a name="index-config_002elog-291"></a>Any options you gave to <code>configure</code>. This is recorded in the -<samp><span class="file">config.status</span></samp> files. - - <p><a name="index-configuration-bugs-292"></a><a name="index-config_002estatus-293"></a>If you are reporting a bug in ‘<samp><span class="samp">configure</span></samp>’ itself, it's probably -system-dependent, and it will be unlikely the maintainers can do -anything useful if you merely report that thus-and-such is broken. -Therefore, you need to do some additional work: for some bugs, you can -look in the file <samp><span class="file">config.log</span></samp> where the test that failed should -appear, along with the compiler invocation and source program in -question. You can then compile it yourself by hand, and discover why -the test failed. Other ‘<samp><span class="samp">configure</span></samp>’ bugs do not involve the -compiler; in that case, the only recourse is to inspect the -<code>configure</code> shell script itself, or the Autoconf macros that -generated <code>configure</code>. - - <li>The log of all debugging output, if the bug is in path searching. You -can get this by setting the environment variable <code>KPATHSEA_DEBUG</code> -to ‘<samp><span class="samp">-1</span></samp>’ before running the program. Please look at the log -yourself to make sure the behavior is really a bug before reporting it; -perhaps “old” environment variable settings are causing files not to -be found, for example. - - <li>The contents of any input files necessary to reproduce the bug. For -bugs in DVI-reading programs, for example, this generally means a DVI -file (and any EPS or other files it uses)—TeX source files are -helpful, but the DVI file is necessary, because that's the actual -program input. - - <li><a name="index-context-diff-294"></a><a name="index-sending-patches-295"></a><a name="index-ChangeLog-_0040r_007bentry_007d-296"></a>If you are sending a patch (do so if you can!), please do so in the form -of a context diff (‘<samp><span class="samp">diff -c</span></samp>’) against the original distribution -source. Any other form of diff is either not as complete or harder for -me to understand. Please also include a <samp><span class="file">ChangeLog</span></samp> entry. - - <li><a name="index-stack-trace-297"></a><a name="index-debugger-298"></a><a name="index-crashes_002c-reporting-299"></a><a name="index-core-dumps_002c-reporting-300"></a><a name="index-null-pointers_002c-dereferencing-301"></a><a name="index-gdb_0040r_007b_002c-recommended_007d-302"></a>If the bug involved is an actual crash (i.e., core dump), it is easy and -useful to include a stack trace from a debugger (I recommend the GNU -debugger GDB, available from <a href="ftp://prep.ai.mit.edu/pub/gnu">ftp://prep.ai.mit.edu/pub/gnu</a>). If -the cause is apparent (a <code>NULL</code> value being dereferenced, for -example), please send the details along. If the program involved is -TeX or Metafont, and the crash is happening at apparently-sound code, -however, the bug may well be in the compiler, rather than in the program -or the library (see <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a>). - - <li>Any additional information that will be helpful in reproducing, -diagnosing, or fixing the bug. -</ul> - -<div class="node"> -<a name="Mailing-lists"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Debugging">Debugging</a>, -Previous: <a rel="previous" accesskey="p" href="#Bug-checklist">Bug checklist</a>, -Up: <a rel="up" accesskey="u" href="#Reporting-bugs">Reporting bugs</a> - -</div> - -<h4 class="subsection">2.6.2 Mailing lists</h4> - -<p><a name="index-mailing-lists-303"></a><a name="index-bug-mailing-list-304"></a><a name="index-announcement-mailing-list-305"></a> -Web2c and Kpathsea in general are discussed on the mailing list -<a href="mailto:tex-k@tug.org">tex-k@tug.org</a>. -<a name="index-tex_002dk_002drequest_0040_0040tug_002eorg-306"></a>To join, email <a href="mailto:tex-k-request@tug.org">tex-k-request@tug.org</a> with a line -consisting of - -<pre class="example"> subscribe <var>you</var>@<var>your.preferred.email.address</var> -</pre> - <p class="noindent">in the body of the message. - - <p>You do not need to join to submit a report, nor will it affect whether -you get a response. There is no Usenet newsgroup equivalent (if you can -be the one to set this up, email ‘<samp><span class="samp">tex-k-request</span></samp>’). Traffic on the -list is fairly light, and is mainly bug reports and enhancement requests -to the software. The best way to decide if you want to join or not is -read some of the archives from <a href="ftp://ftp.tug.org/mail/archives/tex-k/">ftp://ftp.tug.org/mail/archives/tex-k/</a>. - - <p>Be aware that large data files are sometimes included in bug reports. -If this is a problem for you, do not join the list. - - <p><a name="index-g_t_0040TeX_007b_007d-help-mailing-list-307"></a><a name="index-La_0040TeX_007b_007d-help-mailing-list-308"></a><a name="index-Usenet-_0040TeX_007b_007d-newsgroup-309"></a><a name="index-newsgroup-for-_0040TeX_007b_007d-310"></a><a name="index-help_002c-mailing-list-for-general-_0040TeX_007b_007d-311"></a><a name="index-info_002dtex_0040_0040shsu_002eedu-312"></a><a name="index-comp_002etext_002etex-313"></a>If you are looking for general TeX help, such as how to use -LaTeX, please use the mailing list <a href="mailto:texhax@tug.org">texhax@tug.org</a> mailing -list (<a href="http://lists.tug.org/texhax">http://lists.tug.org/texhax</a>) which is gatewayed to the -‘<samp><span class="samp">comp.text.tex</span></samp>’ Usenet newsgroup (or post to the newsgroup; the -gateway is bidirectional). - -<div class="node"> -<a name="Debugging"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Logging">Logging</a>, -Previous: <a rel="previous" accesskey="p" href="#Mailing-lists">Mailing lists</a>, -Up: <a rel="up" accesskey="u" href="#Reporting-bugs">Reporting bugs</a> - -</div> - -<h4 class="subsection">2.6.3 Debugging</h4> - -<p><a name="index-debugging-314"></a><a name="index-runtime-debugging-315"></a><a name="index-options-for-debugging-316"></a> -<a name="index-kpse_002d_003edebug-317"></a><a name="index-debug_002eh-318"></a>Kpathsea provides a number of runtime debugging options, detailed below -by their names and corresponding numeric values. When the files you -expect aren't being found, the thing to do is enable these options and -examine the output. - - <p>You can set these with some runtime argument (e.g., ‘<samp><span class="samp">-d</span></samp>’) to the -program; in that case, you should use the numeric values described in -the program's documentation (which, for Dvipsk and Xdvik, are different -than those below). It's best to give the ‘<samp><span class="samp">-d</span></samp>’ (or whatever) option -first, for maximal output. Dvipsk and Xdvik have additional -program-specific debugging options as well. - - <p><a name="index-KPATHSEA_005fDEBUG-319"></a><a name="index-kpse_002d_003edebug-320"></a>You can also set the environment variable <code>KPATHSEA_DEBUG</code>; in this -case, you should use the numbers below. If you run the program under a -debugger and set the instance variable <code>kpse->debug</code>, also use the numbers -below. - - <p><a name="index-g_t_002d1-_0040r_007bdebugging-value_007d-321"></a>In any case, by far the simplest value to use is ‘<samp><span class="samp">-1</span></samp>’, which will -turn on all debugging output. This is usually better than guessing -which particular values will yield the output you need. - - <p><a name="index-debugging-output-322"></a><a name="index-standard-error-and-debugging-output-323"></a>Debugging output always goes to standard error, so you can redirect it -easily. For example, in Bourne-compatible shells: -<pre class="example"> dvips -d -1 ... 2>/tmp/debug -</pre> - <p><a name="index-Kpsewhich_002c-and-debugging-324"></a>It is sometimes helpful to run the standalone Kpsewhich utility -(see <a href="#Invoking-kpsewhich">Invoking kpsewhich</a>), instead of the original program. - - <p><a name="index-numeric-debugging-values-325"></a>In any case, you can <em>not</em> use the <em>names</em> below; you must -always use somebody's numbers. (Sorry.) To set more than one -option, just sum the corresponding numbers. - - <dl> -<dt><code>KPSE_DEBUG_STAT </code><span class="roman">(1)</span><a name="index-KPSE_005fDEBUG_005fSTAT-_0040r_007b_00281_0029_007d-326"></a><dd>Report ‘<samp><span class="samp">stat</span></samp>’(2) calls. This is useful for verifying that your -directory structure is not forcing Kpathsea to do many additional file -tests (see <a href="#Slow-path-searching">Slow path searching</a>, and see <a href="#Subdirectory-expansion">Subdirectory expansion</a>). If you are using an up-to-date <samp><span class="file">ls-R</span></samp> database -(see <a href="#Filename-database">Filename database</a>), this should produce no output unless a -nonexistent file that must exist is searched for. - - <br><dt><code>KPSE_DEBUG_HASH </code><span class="roman">(2)</span><a name="index-KPSE_005fDEBUG_005fHASH-_0040r_007b_00282_0029_007d-327"></a><dd>Report lookups in all hash tables: <samp><span class="file">ls-R</span></samp> and <samp><span class="file">aliases</span></samp> -(see <a href="#Filename-database">Filename database</a>); font aliases (see <a href="#Fontmap">Fontmap</a>); and config -file values (see <a href="#Config-files">Config files</a>). Useful when expected values are not -being found, e.g.., file searches are looking at the disk instead of -using <samp><span class="file">ls-R</span></samp>. - - <br><dt><code>KPSE_DEBUG_FOPEN </code><span class="roman">(4)</span><a name="index-KPSE_005fDEBUG_005fFOPEN-_0040r_007b_00284_0029_007d-328"></a><dd><a name="index-fopen_0040r_007b_002c-redefined_007d-329"></a>Report file openings and closings. Especially useful when your system's -file table is full, for seeing which files have been opened but never -closed. In case you want to set breakpoints in a debugger: this works by -redefining ‘<samp><span class="samp">fopen</span></samp>’ (‘<samp><span class="samp">fclose</span></samp>’) to be ‘<samp><span class="samp">kpse_fopen_trace</span></samp>’ -(‘<samp><span class="samp">kpse_fclose_trace</span></samp>’). - - <br><dt><code>KPSE_DEBUG_PATHS </code><span class="roman">(8)</span><a name="index-KPSE_005fDEBUG_005fPATHS-_0040r_007b_00288_0029_007d-330"></a><dd><a name="index-kpse_005fformat_005finfo_005ftype-331"></a>Report general path information for each file type Kpathsea is asked to -search. This is useful when you are trying to track down how a -particular path got defined—from <samp><span class="file">texmf.cnf</span></samp>, <samp><span class="file">config.ps</span></samp>, -an environment variable, the compile-time default, etc. This is the -contents of the <code>kpse_format_info_type</code> structure defined in -<samp><span class="file">tex-file.h</span></samp>. - - <br><dt><code>KPSE_DEBUG_EXPAND </code><span class="roman">(16)</span><a name="index-KPSE_005fDEBUG_005fEXPAND-_0040r_007b_002816_0029_007d-332"></a><dd>Report the directory list corresponding to each path element Kpathsea -searches. This is only relevant when Kpathsea searches the disk, since -<samp><span class="file">ls-R</span></samp> searches don't look through directory lists in this way. - - <br><dt><code>KPSE_DEBUG_SEARCH </code><span class="roman">(32)</span><a name="index-KPSE_005fDEBUG_005fSEARCH-_0040r_007b_002832_0029_007d-333"></a><dd>Report on each file search: the name of the file searched for, the path -searched in, whether or not the file must exist (when drivers search for -<samp><span class="file">cmr10.vf</span></samp>, it need not exist), and whether or not we are -collecting all occurrences of the file in the path (as with, e.g., -<samp><span class="file">texmf.cnf</span></samp> and <samp><span class="file">texfonts.map</span></samp>), or just the first (as with -most lookups). This can help you correlate what Kpathsea is doing with -what is in your input file. - - <br><dt><code>KPSE_DEBUG_VARS </code><span class="roman">(64)</span><a name="index-KPSE_005fDEBUG_005fVARS-_0040r_007b_002864_0029_007d-334"></a><dd>Report the value of each variable Kpathsea looks up. This is useful for -verifying that variables do indeed obtain their correct values. - - <br><dt><code>GSFTOPK_DEBUG </code><span class="roman">(128)</span><a name="index-GSFTOPK_005fDEBUG-_0040r_007b_0028128_0029_007d-335"></a><dd>Activates debugging printout specific to <code>gsftopk</code> program. - - <br><dt><code>MAKETEX_DEBUG </code><span class="roman">(512)</span><a name="index-MAKETEX_005fDEBUG-_0040r_007b_0028512_0029_007d-336"></a><dd>If you use the optional <code>mktex</code> programs instead of the -traditional shell scripts, this will report the name of the site file -(<samp><span class="file">mktex.cnf</span></samp> by default) which is read, directories created by -<code>mktexdir</code>, the full path of the <samp><span class="file">ls-R</span></samp> database built by -<code>mktexlsr</code>, font map searches, <code>MT_FEATURES</code> in effect, -parameters from <code>mktexnam</code>, filenames added by -<code>mktexupd</code>, and some subsidiary commands run by the programs. - - <br><dt><code>MAKETEX_FINE_DEBUG </code><span class="roman">(1024)</span><a name="index-MAKETEX_005fFINE_005fDEBUG-_0040r_007b_00281024_0029_007d-337"></a><dd>When the optional <code>mktex</code> programs are used, this will print -additional debugging info from functions internal to these programs. -</dl> - - <p><a name="index-g_t_0040samp_007bkdebug_003a_007d-338"></a><a name="index-hash_005fsummary_005fonly-_0040r_007bvariable-for-debugging_007d-339"></a><a name="index-hash-table-buckets_002c-printing-340"></a>Debugging output from Kpathsea is always written to standard error, and -begins with the string ‘<samp><span class="samp">kdebug:</span></samp>’. (Except for hash table buckets, -which just start with the number, but you can only get that output -running under a debugger. See comments at the <code>hash_summary_only</code> -variable in <samp><span class="file">kpathsea/db.c</span></samp>.) - -<div class="node"> -<a name="Logging"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Common-problems">Common problems</a>, -Previous: <a rel="previous" accesskey="p" href="#Debugging">Debugging</a>, -Up: <a rel="up" accesskey="u" href="#Reporting-bugs">Reporting bugs</a> - -</div> - -<h4 class="subsection">2.6.4 Logging</h4> - -<p><a name="index-log-file-341"></a> -<a name="index-logging-successful-searches-342"></a><a name="index-recording-successful-searches-343"></a><a name="index-usage-patterns_002c-finding-344"></a><a name="index-disk-usage_002c-reducing-345"></a>Kpathsea can record the time and filename found for each successful -search. This may be useful in finding good candidates for deletion when -your filesystem is full, or in discovering usage patterns -at your site. - - <p><a name="index-TEXMFLOG-346"></a>To do this, define the environment or config file variable -<code>TEXMFLOG</code>. The value is the name of the file to append the -information to. The file is created if it doesn't exist, and appended -to if it does. - - <p><a name="index-epoch_002c-seconds-since-347"></a><a name="index-time-_0040r_007bsystem-call_007d-348"></a>Each successful search turns into one line in the log file: two words -separated by a space. The first word is the time of the search, as the -integer number of seconds since “the epoch”, i.e., UTC midnight 1 -January 1970 (more precisely, the result of the <code>time</code> system -call). The second word is the filename. - - <p>For example, after <code>setenv TEXMFLOG /tmp/log</code>, running Dvips on -<samp><span class="file">story.dvi</span></samp> appends the following lines: - -<pre class="example"> 774455887 /usr/local/share/texmf/dvips/config.ps - 774455887 /usr/local/share/texmf/dvips/psfonts.map - 774455888 /usr/local/share/texmf/dvips/texc.pro - 774455888 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmbx10.600pk - 774455889 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmsl10.600pk - 774455889 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmr10.600pk - 774455889 /usr/local/share/texmf/dvips/texc.pro -</pre> - <p><a name="index-privacy_002c-semblance-of-349"></a>Only filenames that are absolute are recorded, to preserve -some semblance of privacy. - - <p>In addition to this Kpathsea-specific logging, <samp><span class="command">pdftex</span></samp> -provides an option <samp><span class="option">-recorder</span></samp> to write the names of all files -accessed during a run to the file <samp><var>basefile</var><span class="file">.fls</span></samp>. - - <p>Finally, most systems provide a general tool to output each system -call, thus including opening and closing files. It might be named -<samp><span class="command">strace</span></samp>, <samp><span class="command">truss</span></samp>, <samp><span class="command">struss</span></samp>, or something -else. - -<div class="node"> -<a name="Common-problems"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Logging">Logging</a>, -Up: <a rel="up" accesskey="u" href="#Reporting-bugs">Reporting bugs</a> - -</div> - -<h4 class="subsection">2.6.5 Common problems</h4> - -<p><a name="index-common-problems-350"></a><a name="index-problems_002c-common-351"></a><a name="index-FAQ_002c-Kpathsea-352"></a> -Here are some common problems with configuration, compilation, linking, -execution, <small class="dots">...</small> - -<ul class="menu"> -<li><a accesskey="1" href="#Unable-to-find-files">Unable to find files</a>: If your program can't find fonts (or whatever). -<li><a accesskey="2" href="#Slow-path-searching">Slow path searching</a>: If it takes forever to find anything. -<li><a accesskey="3" href="#Unable-to-generate-fonts">Unable to generate fonts</a>: If mktexpk fails. -<li><a accesskey="4" href="#TeX-or-Metafont-failing">TeX or Metafont failing</a>: Likely compiler bugs. - -<li><a accesskey="5" href="#Empty-Makefiles">Empty Makefiles</a>: When configure produces empty makefiles. -<li><a accesskey="6" href="#XtStrings">XtStrings</a>: When _XtStrings is undefined. -<li><a accesskey="7" href="#dlopen">dlopen</a>: When dlopen is undefined. -<li><a accesskey="8" href="#ShellWidgetClass">ShellWidgetClass</a>: For dynamic linking troubles under OpenWindows. -<li><a accesskey="9" href="#Pointer-combination-warnings">Pointer combination warnings</a>: For old compilers that don't grok char *. -</ul> - -<div class="node"> -<a name="Unable-to-find-files"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Slow-path-searching">Slow path searching</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.1 Unable to find files</h5> - -<p><a name="index-unable-to-find-files-353"></a><a name="index-files_002c-unable-to-find-354"></a> -If a program complains it cannot find fonts (or other input files), any -of several things might be wrong. In any case, you may find the -debugging options helpful. See <a href="#Debugging">Debugging</a>. - - <ul> -<li>Perhaps you simply haven't installed all the necessary files; the basic -fonts and input files are distributed separately from the programs. -See <a href="#unixtex_002eftp">unixtex.ftp</a>. - - <li><a name="index-g_t_002fetc_002fprofile-355"></a><a name="index-environment-variables_002c-old-356"></a>You have (perhaps unknowingly) told Kpathsea to use search paths that -don't reflect where the files actually are. One common cause is having -environment variables set from a previous installation, thus overriding -what you carefully set in <samp><span class="file">texmf.cnf</span></samp> (see <a href="#Supported-file-formats">Supported file formats</a>). System <samp><span class="file">/etc/profile</span></samp> or other files such may be the -culprit. - - <li><a name="index-symbolic-links-not-found-357"></a><a name="index-leaf-directories-wrongly-guessed-358"></a>Your files reside in a directory that is only pointed to via a symbolic -link, in a leaf directory and is not listed in <samp><span class="file">ls-R</span></samp>. - - <p>Unfortunately, Kpathsea's subdirectory searching has an irremediable -deficiency: If a directory <var>d</var> being searched for subdirectories -contains plain files and symbolic links to other directories, but no -true subdirectories, <var>d</var> will be considered a leaf directory, i.e., -the symbolic links will not be followed. See <a href="#Subdirectory-expansion">Subdirectory expansion</a>. - - <p>You can work around this problem by creating an empty dummy subdirectory -in <var>d</var>. Then <var>d</var> will no longer be a leaf, and the symlinks will -be followed. - - <p>The directory immediately followed by the ‘<samp><span class="samp">//</span></samp>’ in the path -specification, however, is always searched for subdirectories, even if -it is a leaf. Presumably you would not have asked for the directory to -be searched for subdirectories if you didn't want it to be. - - <li>If the fonts (or whatever) don't already exist, <code>mktexpk</code> (or -<code>mktexmf</code> or <code>mktextfm</code>) will try to create them. If -these rather complicated shell scripts fail, you'll eventually get an -error message saying something like ‘<samp><span class="samp">Can't find font -</span><var>fontname</var></samp>’. The best solution is to fix (or at least report) the -bug in <code>mktexpk</code>; the workaround is to generate the necessary -fonts by hand with Metafont, or to grab them from a CTAN site +explanation, please see those documents. The GNU document is +available from <a href="http://www.gnu.org/prep/standards">http://www.gnu.org/prep/standards</a>. The TDS +document is available from <a href="http://www.mirror.ctan.org/tds">http://www.mirror.ctan.org/tds</a> (see <a href="#unixtex_002eftp">unixtex.ftp</a>). - - <li>There is a bug in the library. See <a href="#Reporting-bugs">Reporting bugs</a>. -</ul> - -<div class="node"> -<a name="Slow-path-searching"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Unable-to-generate-fonts">Unable to generate fonts</a>, -Previous: <a rel="previous" accesskey="p" href="#Unable-to-find-files">Unable to find files</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.2 Slow path searching</h5> - -<p><a name="index-excessive-startup-time-359"></a><a name="index-slow-startup-time-360"></a><a name="index-startup-time_002c-excessive-361"></a> -If your program takes an excessively long time to find fonts or other -input files, but does eventually succeed, here are some possible culprits: - - <ul> -<li>Most likely, you just have a lot of directories to search, and that -takes a noticeable time. The solution is to create and maintain a -separate <samp><span class="file">ls-R</span></samp> file that lists all the files in your main TeX -hierarchy. See <a href="#Filename-database">Filename database</a>. Kpathsea always uses <samp><span class="file">ls-R</span></samp> -if it's present; there's no need to recompile or reconfigure any of the -programs. - - <li>Your recursively-searched directories (e.g., -<samp><span class="file">/usr/local/share/texmf/fonts//</span></samp>), contain a mixture of files and -directories. This prevents Kpathsea from using a useful optimization -(see <a href="#Subdirectory-expansion">Subdirectory expansion</a>). - - <p>It is best to have only directories (and perhaps a <samp><span class="file">README</span></samp>) in the -upper levels of the directory structure, and it's very important to have -<em>only</em> files, and no subdirectories, in the leaf directories where -the dozens of TFM, PK, or whatever files reside. -</ul> - - <p>In any case, you may find the debugging options helpful in determining -precisely when the disk or network is being pounded. See <a href="#Debugging">Debugging</a>. - -<div class="node"> -<a name="Unable-to-generate-fonts"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#TeX-or-Metafont-failing">TeX or Metafont failing</a>, -Previous: <a rel="previous" accesskey="p" href="#Slow-path-searching">Slow path searching</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.3 Unable to generate fonts</h5> - -<p><a name="index-unable-to-generate-fonts-362"></a><a name="index-font-generation-failures-363"></a> -Metafont outputs fonts in bitmap format, tuned for a particular -device at a particular resolution, in order to allow for the -highest-possible quality of output. Some DVI-to-whatever programs, -such as Dvips, try to generate these on the fly when they are needed, -but this generation may fail in several cases. - - <p><a name="index-g_t_0040code_007bmktexpk_007d-can_0027t-guess-mode-364"></a>If <code>mktexpk</code> runs, but fails with this error: -<pre class="example"> mktexpk: Can't guess mode for <var>nnn</var> dpi devices. - mktexpk: Use a config file to specify the mode, or update me. -</pre> - <p>you need to ensure the resolution and mode match; just -specifying the resolution, as in <code>-D 360</code>, is not enough. - - <p>You can specify the mode name with the <code>-mode</code> option on the -Dvips command line, or in a Dvips configuration file (see <a href="dvips.html#Config-files">Config files</a>), such as <samp><span class="file">config.ps</span></samp> in your document -directory, <samp><span class="file">~/.dvipsrc</span></samp> in your home directory, or in a system -directory (again named <samp><span class="file">config.ps</span></samp>). (Other drivers use other -files, naturally.) - - <p>For example, if you need 360<span class="dmn">dpi</span> fonts, you could include this in -a configuration file: -<pre class="example"> D 360 - M lqmed -</pre> - <p><a name="index-Metafont-using-the-wrong-device-365"></a><a name="index-device_002c-wrong-366"></a>If Metafont runs, but generates fonts at the wrong resolution or for -the wrong device, most likely <code>mktexpk</code>'s built-in guess for the -mode is wrong, and you should override it as above. - - <p>See <a href="ftp://ftp.tug.org/tex/modes.mf">ftp://ftp.tug.org/tex/modes.mf</a> for a list of resolutions and -mode names for most devices (additional submissions are welcome). - - <p><a name="index-g_t_002e2602gf-367"></a><a name="index-g_t2602gf-368"></a><a name="index-Metafont-making-too_002dlarge-fonts-369"></a><a name="index-proof-mode-370"></a><a name="index-online-Metafont-display_002c-spurious-371"></a>If Metafont runs but generates fonts at a resolution of 2602<span class="dmn">dpi</span> -(and prints out the name of each character as well as just a character -number, and maybe tries to display the characters), then your Metafont -base file probably hasn't been made properly. (It's using the default -<code>proof</code> mode, instead of an actual device mode.) To make a proper -<samp><span class="file">plain.base</span></samp>, assuming the local mode definitions are contained in -a file <samp><span class="file">modes.mf</span></samp>, run the following command (assuming Unix): - -<pre class="example"> inimf "plain; input modes; dump" -</pre> - <p class="noindent"><a name="index-plain_002ebase-372"></a>Then copy the <samp><span class="file">plain.base</span></samp> file from the current directory to where -the base files are stored on your system -(<samp><span class="file">/usr/local/share/texmf/web2c</span></samp> by default), and make a link -(either hard or soft) from <samp><span class="file">plain.base</span></samp> to <samp><span class="file">mf.base</span></samp> in that -directory. -See <a href="web2c.html#inimf-invocation">inimf invocation</a>. - - <p><a name="index-Metafont-installation-373"></a>If <code>mf</code> is a command not found at all by <code>mktexpk</code>, then you -need to install Metafont (see <a href="#unixtex_002eftp">unixtex.ftp</a>). - -<div class="node"> -<a name="TeX-or-Metafont-failing"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Empty-Makefiles">Empty Makefiles</a>, -Previous: <a rel="previous" accesskey="p" href="#Unable-to-generate-fonts">Unable to generate fonts</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.4 TeX or Metafont failing</h5> - -<p><a name="index-g_t_0040TeX_007b_007d-failures-374"></a><a name="index-Metafont-failures-375"></a><a name="index-compiler-bugs-376"></a>If TeX or Metafont get a segmentation fault or otherwise fail while -running a normal input file, the problem is usually a compiler bug -(unlikely as that may sound). Even if the trip and trap tests are -passed, problems may lurk. Optimization occasionally causes trouble in -programs other than TeX and Metafont themselves, too. - - <p>Insufficient swap space may also cause core dumps or other erratic -behavior. - - <p><a name="index-optimization-caveat-377"></a>For a workaround, if you enabled any optimization flags, it's best to -omit optimization entirely. In any case, the way to find the facts is -to run the program under the debugger and see where it's failing. - - <p><a name="index-GNU-C-compiler-bugs-378"></a><a name="index-system-C-compiler-bugs-379"></a>Also, if you have trouble with a system C compiler, I advise trying the -GNU C compiler. And vice versa, unfortunately; but in that case I also -recommend reporting a bug to the GCC mailing list; see <a href="gcc.html#Bugs">Bugs</a>. - - <p><a name="index-compiler-bugs_002c-finding-380"></a>To report compiler bugs effectively requires perseverance and -perspicacity: you must find the miscompiled line, and that usually -involves delving backwards in time from the point of error, checking -through TeX's (or whatever program's) data structures. Things are -not helped by all-too-common bugs in the debugger itself. Good luck. - - <p><a name="index-ANSI-C-381"></a><a name="index-HP_002dUX_002c-compiling-on-382"></a><a name="index-compiling-on-HP_002dUX-383"></a>One known cause of trouble is the way arrays are handled. Some of the -Pascal arrays have a lower index other than 0, and the C code will take -the pointer to the allocated memory, subtract the lower index, and use -the resulting pointer for the array. While this trick often works, ANSI -C doesn't guarantee that it will. It it known to fail on HP-UX 10 -machines when the native compiler is used, unless the ‘<samp><span class="samp">+u</span></samp>’ compiler -switch was specified. Using GCC will work on this platform as well. - -<div class="node"> -<a name="Empty-Makefiles"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#XtStrings">XtStrings</a>, -Previous: <a rel="previous" accesskey="p" href="#TeX-or-Metafont-failing">TeX or Metafont failing</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.5 Empty Makefiles</h5> - -<p><a name="index-Makefiles_002c-empty-384"></a><a name="index-sed-_0040r_007berror-from-_0040code_007bconfigure_007d_007d-385"></a><a name="index-configure-_0040r_007berror-from-_0040code_007bsed_007d_007d-386"></a><a name="index-NetBSD-_0040code_007bconfigure_007d-error-387"></a><a name="index-FreeBSD-_0040code_007bconfigure_007d-error-388"></a><a name="index-Mach10-_0040code_007bconfigure_007d-error-389"></a><a name="index-AIX-4_002e1-_0040code_007bconfigure_007d-error-390"></a><a name="index-NeXT-_0040code_007bsed_007d-error-391"></a> -On some systems (NetBSD, FreeBSD, AIX 4.1, and Mach10), <code>configure</code> -may fail to properly create the Makefiles. Instead, you get an error -which looks something like this: - -<pre class="example"> prompt$ ./configure - ... - creating Makefile - sed: 1: "\\@^ac_include make/pat ...": \ can not - be used as a string delimiter -</pre> - <p>So far as I know, the bug here is in <code>/bin/sh</code> on these systems. I -don't have access to a machine running any of them, so if someone can -find a workaround that avoids the quoting bug, I'd be most -grateful. (Search for <code>ac_include</code> in the <code>configure</code> script -to get to the problematic code.) - - <p>It should work to run <code>bash configure</code>, instead of using -<code>/bin/sh</code>. You can get Bash from -<a href="ftp://prep.ai.mit.edu/pub/gnu">ftp://prep.ai.mit.edu/pub/gnu</a> and mirrors. - - <p>Another possible cause (reported for NeXT) is a bug in the <code>sed</code> -command. In that case the error may look like this: - -<pre class="example"> Unrecognized command: \@^ac_include make/paths.make@r make/paths.make -</pre> - <p>In this case, installing GNU <code>sed</code> should solve the problem. You -can get GNU <code>sed</code> from the same places as Bash. - -<div class="node"> -<a name="XtStrings"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#dlopen">dlopen</a>, -Previous: <a rel="previous" accesskey="p" href="#Empty-Makefiles">Empty Makefiles</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.6 <code>XtStrings</code></h5> - -<p><a name="index-XtStrings-392"></a>You may find that linking X programs results in an error from the linker -that ‘<samp><span class="samp">XtStrings</span></samp>’ is undefined, something like this: - -<pre class="example"> gcc -o virmf ... - .../x11.c:130: undefined reference to `XtStrings' -</pre> - <p>This generally happens because of a mismatch between the X include files -with which you compiled and the X libraries with which you linked; -often, the include files are from MIT and the libraries from Sun. - - <p>The solution is to use the same X distribution for compilation and -linking. Probably ‘<samp><span class="samp">configure</span></samp>’ was unable to guess the proper -directories from your installation. You can use the <code>configure</code> -options ‘<samp><span class="samp">--x-includes=</span><var>path</var></samp>’ and -‘<samp><span class="samp">--x-libraries=</span><var>path</var></samp>’ to explicitly specify them. - -<div class="node"> -<a name="dlopen"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#ShellWidgetClass">ShellWidgetClass</a>, -Previous: <a rel="previous" accesskey="p" href="#XtStrings">XtStrings</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.7 <code>dlopen</code></h5> - -<p><a name="index-static-linking-and-_0040code_007bdlsym_007d-393"></a><a name="index-dlopen-394"></a><a name="index-dlsym-395"></a><a name="index-dlclose-396"></a><a name="index-wcstombs-397"></a><a name="index-libdl_002ea-398"></a>(This section adapted from the file <samp><span class="file">dlsym.c</span></samp> in the X distribution.) - - <p>The <code>Xlib</code> library uses the standard C function <code>wcstombs</code>. -Under SunOS 4.1, <code>wcstombs</code> uses the ‘<samp><span class="samp">dlsym</span></samp>’ interface defined -in <samp><span class="file">libdl.so</span></samp>. Unfortunately, the SunOS 4.1 distribution does not -include a static ‘<samp><span class="samp">libdl.a</span></samp>’ library. - - <p>As a result, if you try to link an X program statically under SunOS, you -may get undefined references to <code>dlopen</code>, <code>dlsym</code>, and -<code>dlclose</code>. One workaround is to include these definitions -when you link: - -<pre class="example"> void *dlopen() { return 0; } - void *dlsym() { return 0; } - int dlclose() { return -1; } -</pre> - <p><a name="index-dlsym_002ec-399"></a>These are contained in the <samp><span class="file">dlsym.c</span></samp> file in the MIT X -distribution. - -<div class="node"> -<a name="ShellWidgetClass"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Pointer-combination-warnings">Pointer combination warnings</a>, -Previous: <a rel="previous" accesskey="p" href="#dlopen">dlopen</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.8 <code>ShellWidgetClass</code></h5> - -<p><a name="index-dynamic-linking-problems-with-OpenWin-libraries-400"></a><a name="index-OpenWin-libraries_002c-dynamic-linking-problems-401"></a><a name="index-get_005fwmShellWidgetClass-402"></a><a name="index-get_005fapplicationShellWidgetClass-403"></a> -<a name="index-comp_002esys_002esun_002eadmin-_0040r_007bFAQ_007d-404"></a><a name="index-FAQ_002c-_0040t_007bcomp_002esys_002esun_002eadmin_007d-405"></a>(This section adapted from the <tt>comp.sys.sun.admin</tt> FAQ.) - - <p>If you are linking with Sun's OpenWindows libraries in SunOS 4.1.x, you -may get undefined symbols <code>_get_wmShellWidgetClass</code> and -<code>_get_applicationShellWidgetClass</code> when linking. This problem does -not arise using the standard MIT X libraries under SunOS. - - <p><a name="index-Xmu-_0040r_007blibrary-problems_007d-406"></a>The cause is bugs in the <code>Xmu</code> shared library as shipped from Sun. -There are several fixes: - - <ul> -<li>Install the free MIT distribution from ‘<samp><span class="samp">ftp.x.org</span></samp>’ and mirrors. - - <li>Get the OpenWindows patches listed below. - - <li>Statically link the <code>Xmu</code> library into the executable. - - <li>Avoid using <code>Xmu</code> at all. If you are compiling -Metafont, see <a href="web2c.html#Online-Metafont-graphics">Online Metafont graphics</a>. If you are -compiling Xdvi, see the <code>-DNOTOOL</code> option in <samp><span class="file">xdvik/INSTALL</span></samp>. - - <li>Ignore the errors. The binary runs fine regardless. - - </ul> - - <p><a name="index-Sun-OpenWin-patches-407"></a><a name="index-patches_002c-Sun-OpenWin-408"></a>Here is the information for getting the two patches: - -<pre class="display"> Patch ID: 100512-02 - Bug ID's: 1086793, 1086912, 1074766 - Description: 4.1.x OpenWindows 3.0 <code>libXt</code> jumbo patch - - Patch ID: 100573-03 - Bug ID: 1087332 - Description: 4.1.x OpenWindows 3.0 undefined symbols when using shared <code>libXmu</code>. -</pre> - <p><a name="index-static-linking-409"></a>The way to statically link with <code>libXmu</code> depends on whether you are -using a Sun compiler (e.g., <code>cc</code>) or <code>gcc</code>. If the latter, -alter the <code>x_libs</code> Make variable to include - - <p><a name="index-g_t_002dstatic-410"></a><a name="index-g_t_002ddynamic-411"></a> -<pre class="example"> -static -lXmu -dynamic -</pre> - <p><a name="index-g_t_002dBstatic-412"></a><a name="index-g_t_002dBdynamic-413"></a>If you are using the Sun compiler, use ‘<samp><span class="samp">-Bstatic</span></samp>’ and ‘<samp><span class="samp">-Bdynamic</span></samp>’. - -<div class="node"> -<a name="Pointer-combination-warnings"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#ShellWidgetClass">ShellWidgetClass</a>, -Up: <a rel="up" accesskey="u" href="#Common-problems">Common problems</a> - -</div> - -<h5 class="subsubsection">2.6.5.9 Pointer combination warnings</h5> - -<p><a name="index-warnings_002c-pointer-combinations-414"></a><a name="index-pointer-combination-warnings-415"></a><a name="index-illegal-pointer-combination-warnings-416"></a><a name="index-cc-_0040r_007bwarnings_007d-417"></a>When compiling with old C compilers, you may get some warnings about -“illegal pointer combinations”. These are spurious; just ignore them. -I decline to clutter up the source with casts to get rid of them. - -<!-- This isn't worth including any more, OSF 1.x is too old. --> -<!-- The other XtInherit problem (R4 Xlib on Suns) should never come up, --> -<!-- but the answer from the X faq is included anyway. --> -<!-- @node XtInherit --> -<!-- @subsubsection @code{XtInherit} --> -<!-- @findex XtInherit @r{bug on OSF/1} --> -<!-- @cindex OSF/1 loader bug and @code{XtInherit} --> -<!-- @cindex Alpha OSF/1 loader bug and @code{XtInherit} --> -<!-- On DEC OSF/1 1.x systems, the loader has a bug that manifests itself in --> -<!-- the following error (all on one line, but for the sake of the paper --> -<!-- width it's broken here): --> -<!-- @example --> -<!-- xdvik/xdvi: /sbin/loader: Fatal Error: search_for_undefineds: --> -<!-- symbol _XtInherit should not have any relocation entry --> -<!-- @end example --> -<!-- @noindent According to Michael Rickabaugh @code{<mjr@@quarry.enet.dec.com>}: --> -<!-- @quotation --> -<!-- This is a bug fixed in DEC OSF/1 2.0. --> -<!-- If you know how, installing @file{/sbin/loader} from a 2.0 system onto a --> -<!-- 1.3 system will work. Make sure that @file{/usr} is @emph{not} mounted --> -<!-- when you do this. (If you forget about umounting @code{/usr}, it is --> -<!-- possible most of your filesystems will become corrupted.) --> -<!-- Otherwise, I suggest getting a later CD and running --> -<!-- @file{/usr/sbin/installupdate}. --> -<!-- @end quotation --> -<!-- Alternatively, you may be able to use the freely available X11 libraries --> -<!-- that come with the MIT distribution (on @file{ftp.x.org}, for example). --> -<!-- Linking statically, perhaps only with some of the X libraries, may also --> -<!-- work. --> -<!-- The Sun XtInherit weirdness, from the comp.windows.x FAQ: --> -<!-- Subject: 126)! What are these problems with "*_XtInherit* not found" on the Sun? --> -<!-- When I link a X program that I wrote on a SunOS 4.0.3 or 4.1 machine I get the --> -<!-- error "ld.so: symbol not found *_XtInherit*". --> -<!-- What you are seeing is a side-effect of a kludge in the R4 libXt.a to --> -<!-- get Sun shared libraries working. Apparently, you can't share a function that --> -<!-- is both called and compared, as *_XtInherit* is. This was handled by putting --> -<!-- *_XtInherit* in the same file as a function that is always used, thereby --> -<!-- guaranteeing that it would be loaded - that is, in Initialize.c, where --> -<!-- XtToolkitInitialize() and XtInitialize() reside. These routines would normally --> -<!-- be called. --> -<!-- You are probably seeing this error because your program is not a normal --> -<!-- Xt-based program and does not call XtToolkitInitialize() anywhere. --> -<!-- 1) it may be a program that uses Xt functions but never opens a --> -<!-- connection to the X server. [OSF/Motif's 1.1.0 UIL had this problem; it called --> -<!-- XtMalloc() and other Xt functions.] The solution is to add the call to your --> -<!-- program; the function does not have to be executed, just linked in. --> -<!-- 2) alternatively, your program doesn't need any Xt functions and is --> -<!-- correct in not calling XtToolkitInitialize() - it may be an Xlib or XView --> -<!-- program. In this case, you can remove -lXt from your link command. --> -<!-- It should not be necessary to link the shared libraries statically, --> -<!-- although this will certainly solve the problem. --> -<!-- * Empty Makefiles:: If configure gives you sed errors. --> -<!-- * wchar_t:: For wchar_t difficulties. --> -<div class="node"> +</p> +<p>In short, here is a skeleton of the default directory structure, +extracted from the TDS document: +</p> +<div class="example"> +<pre class="example"><var>prefix</var>/ <span class="roman">installation root (<samp>/usr/local</samp> by default)</span> + bin/ <span class="roman">executables</span> + man/ <span class="roman">man pages</span> + include/ <span class="roman">C header files</span> + info/ <span class="roman">GNU info files</span> + lib/ <span class="roman">libraries (<samp>libkpathsea.*</samp>)</span> + share/ <span class="roman">architecture-independent files</span> + texmf/ <span class="roman">TDS root</span> + bibtex/ <span class="roman">BibTeX input files</span> + bib/ <span class="roman">BibTeX databases</span> + base/ <span class="roman">base distribution (e.g., ‘<samp>xampl.bib</samp>’)</span> + misc/ <span class="roman">single-file databases</span> + <var>pkg</var>/ <span class="roman">name of a package</span> + bst/ <span class="roman">BibTeX style files</span> + base/ <span class="roman">base distribution (e.g., ‘<samp>plain.bst</samp>’, ‘<samp>acm.bst</samp>’)</span> + misc/ <span class="roman">single-file styles</span> + <var>pkg</var>/ <span class="roman">name of a package</span> + doc/ <span class="roman">additional documentation</span> + dvips/ <span class="roman">‘<samp>.pro</samp>’, ‘<samp>.ps</samp>’, ‘<samp>psfonts.map</samp>’</span> + fonts/ <span class="roman">font-related files</span> + <var>type</var>/ <span class="roman">file type (e.g., ‘<samp>tfm</samp>’, ‘<samp>pk</samp>’)</span> + <var>mode</var>/ <span class="roman">type of output device (types ‘<samp>pk</samp>’ and ‘<samp>gf</samp>’ only)</span> + <var>supplier</var>/ <span class="roman">name of a font supplier (e.g., ‘<samp>public</samp>’)</span> + <var>typeface</var>/ <span class="roman">name of a typeface (e.g., ‘<samp>cm</samp>’)</span> + dpi<var>nnn</var>/ <span class="roman">font resolution (types ‘<samp>pk</samp>’ and ‘<samp>gf</samp>’ only)</span> + metafont/ <span class="roman">Metafont (non-font) input files</span> + base/ <span class="roman">base distribution (e.g., ‘<samp>plain.mf</samp>’)</span> + misc/ <span class="roman">single-file packages (e.g., ‘<samp>modes.mf</samp>’)</span> + <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘<samp>mfpic</samp>’)</span> + metapost/ <span class="roman">MetaPost input files</span> + base/ <span class="roman">base distribution (e.g., ‘<samp>plain.mp</samp>’)</span> + misc/ <span class="roman">single-file packages</span> + <var>pkg</var>/ <span class="roman">name of a package</span> + support/ <span class="roman">support files for MetaPost-related utilities (e.g., ‘<samp>trfonts.map</samp>’)</span> + mft/ <span class="roman">‘<samp>MFT</samp>’ inputs (e.g., ‘<samp>plain.mft</samp>’)</span> + tex/ <span class="roman">TeX input files</span> + <var>format</var>/ <span class="roman">name of a format (e.g., ‘<samp>plain</samp>’)</span> + base/ <span class="roman">base distribution for <var>format</var> (e.g., ‘<samp>plain.tex</samp>’)</span> + misc/ <span class="roman">single-file packages (e.g., ‘<samp>webmac.tex</samp>’)</span> + local/ <span class="roman">local additions to or local configuration files for <var>format</var></span> + <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘<samp>graphics</samp>’, ‘<samp>mfnfss</samp>’)</span> + generic/ <span class="roman">format-independent packages</span> + hyphen/ <span class="roman">hyphenation patterns (e.g., ‘<samp>hyphen.tex</samp>’)</span> + images/ <span class="roman">image input files (e.g., Encapsulated PostScript)</span> + misc/ <span class="roman">single-file format-independent packages (e.g., ‘<samp>null.tex</samp>’).</span> + <var>pkg</var>/ <span class="roman">name of a package (e.g., ‘<samp>babel</samp>’)</span> + web2c/ <span class="roman">implementation-dependent files (<samp>.pool</samp>, <samp>.fmt</samp>, <samp>texmf.cnf</samp>, etc.)</span> +</pre></div> + +<p>Some concrete examples for most file types: +</p> +<div class="example"> +<pre class="example">/usr/local/bin/tex +/usr/local/man/man1/xdvi.1 +/usr/local/info/kpathsea.info +/usr/local/lib/libkpathsea.a +/usr/local/share/texmf/bibtex/bst/base/plain.bst +/usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmr10.600pk +/usr/local/share/texmf/fonts/source/public/pandora/pnr10.mf +/usr/local/share/texmf/fonts/tfm/public/cm/cmr10.tfm +/usr/local/share/texmf/fonts/type1/adobe/utopia/putr.pfa +/usr/local/share/texmf/metafont/base/plain.mf +/usr/local/share/texmf/metapost/base/plain.mp +/usr/local/share/texmf/tex/plain/base/plain.tex +/usr/local/share/texmf/tex/generic/hyphen/hyphen.tex +/usr/local/share/texmf/web2c/tex.pool +/usr/local/share/texmf/web2c/tex.fmt +/usr/local/share/texmf/web2c/texmf.cnf +</pre></div> + + +<hr> <a name="Path-searching"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#TeX-support">TeX support</a>, -Previous: <a rel="previous" accesskey="p" href="#Installation">Installation</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> - +<div class="header"> +<p> +Next: <a href="#TeX-support" accesskey="n" rel="next">TeX support</a>, Previous: <a href="#TeX-directory-structure" accesskey="p" rel="prev">TeX directory structure</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Path-searching-1"></a> +<h2 class="chapter">5 Path searching</h2> -<h2 class="chapter">3 Path searching</h2> +<a name="index-path-searching"></a> -<p><a name="index-path-searching-418"></a> -This chapter describes the generic path searching mechanism Kpathsea +<p>This chapter describes the generic path searching mechanism Kpathsea provides. For information about searching for particular file types (e.g., TeX fonts), see the next chapter. - -<ul class="menu"> -<li><a accesskey="1" href="#Searching-overview">Searching overview</a>: Basic scheme for searching. -<li><a accesskey="2" href="#Path-sources">Path sources</a>: Where search paths can be defined. -<li><a accesskey="3" href="#Path-expansion">Path expansion</a>: Special constructs in search paths. -<li><a accesskey="4" href="#Filename-database">Filename database</a>: Using an externally-built list to search. -<li><a accesskey="5" href="#Invoking-kpsewhich">Invoking kpsewhich</a>: Standalone path lookup. -</ul> - -<div class="node"> +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Searching-overview" accesskey="1">Searching overview</a>:</td><td> </td><td align="left" valign="top">Basic scheme for searching. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Path-sources" accesskey="2">Path sources</a>:</td><td> </td><td align="left" valign="top">Where search paths can be defined. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Path-expansion" accesskey="3">Path expansion</a>:</td><td> </td><td align="left" valign="top">Special constructs in search paths. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Filename-database" accesskey="4">Filename database</a>:</td><td> </td><td align="left" valign="top">Using an externally-built list to search. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Invoking-kpsewhich" accesskey="5">Invoking kpsewhich</a>:</td><td> </td><td align="left" valign="top">Standalone path lookup. +</td></tr> +</table> + + +<hr> <a name="Searching-overview"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Path-sources">Path sources</a>, -Up: <a rel="up" accesskey="u" href="#Path-searching">Path searching</a> - +<div class="header"> +<p> +Next: <a href="#Path-sources" accesskey="n" rel="next">Path sources</a>, Up: <a href="#Path-searching" accesskey="u" rel="up">Path searching</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Searching-overview-1"></a> +<h3 class="section">5.1 Searching overview</h3> -<h3 class="section">3.1 Searching overview</h3> +<a name="index-searching-overview"></a> +<a name="index-path-searching_002c-overview"></a> +<a name="index-overview-of-path-searching"></a> -<p><a name="index-searching-overview-419"></a><a name="index-path-searching_002c-overview-420"></a><a name="index-overview-of-path-searching-421"></a> -<a name="index-search-path_002c-defined-422"></a>A <dfn>search path</dfn> is a colon-separated list of <dfn>path elements</dfn>, +<a name="index-search-path_002c-defined"></a> +<p>A <em>search path</em> is a colon-separated list of <em>path elements</em>, which are directory names with a few extra frills. A search path can come from (a combination of) many sources; see below. To look up a file -‘<samp><span class="samp">foo</span></samp>’ along a path ‘<samp><span class="samp">.:/dir</span></samp>’, Kpathsea checks each element of -the path in turn: first <samp><span class="file">./foo</span></samp>, then <samp><span class="file">/dir/foo</span></samp>, returning +‘<samp>foo</samp>’ along a path ‘<samp>.:/dir</samp>’, Kpathsea checks each element of +the path in turn: first <samp>./foo</samp>, then <samp>/dir/foo</samp>, returning the first match (or possibly all matches). - - <p><a name="index-magic-characters-423"></a><a name="index-g_t_003a-_0040r_007bmay-not-be-_003a_007d-424"></a><a name="index-g_t_002f-_0040r_007bmay-not-be-_002f_007d-425"></a>The “colon” and “slash” mentioned here aren't necessarily ‘<samp><span class="samp">:</span></samp>’ -and ‘<samp><span class="samp">/</span></samp>’ on non-Unix systems. Kpathsea tries to adapt to other -operating systems' conventions. - - <p><a name="index-database-search-426"></a><a name="index-searching-the-database-427"></a>To check a particular path element <var>e</var>, Kpathsea first sees if a +</p> +<a name="index-magic-characters"></a> +<a name="index-_003a-may-not-be-_003a"></a> +<a name="index-_002f-may-not-be-_002f"></a> +<p>The “colon” and “slash” mentioned here aren’t necessarily ‘<samp>:</samp>’ +and ‘<samp>/</samp>’ on non-Unix systems. Kpathsea tries to adapt to other +operating systems’ conventions. +</p> +<a name="index-database-search"></a> +<a name="index-searching-the-database"></a> +<p>To check a particular path element <var>e</var>, Kpathsea first sees if a prebuilt database (see <a href="#Filename-database">Filename database</a>) applies to <var>e</var>, i.e., if the database is in a directory that is a prefix of <var>e</var>. If so, the path specification is matched against the contents of the database. - - <p><a name="index-floating-directories-428"></a><a name="index-filesystem-search-429"></a><a name="index-disk-search-430"></a><a name="index-searching-the-disk-431"></a>If the database does not exist, or does not apply to this path element, +</p> +<a name="index-floating-directories"></a> +<a name="index-filesystem-search"></a> +<a name="index-disk-search"></a> +<a name="index-searching-the-disk"></a> +<p>If the database does not exist, or does not apply to this path element, or contains no matches, the filesystem is searched (if this was not -forbidden by the specification with ‘<samp><span class="samp">!!</span></samp>’ and if the file being +forbidden by the specification with ‘<samp>!!</samp>’ and if the file being searched for must exist). Kpathsea constructs the list of directories that correspond to this path element, and then checks in each for the file being searched for. (To help speed future lookups of files in the same directory, the directory in which a file is found is floated to the top of the directory list.) - - <p><a name="index-must-exist-432"></a><a name="index-VF-files_002c-not-found-433"></a><a name="index-cmr10_002evf-434"></a><a name="index-g_t_005copenin-435"></a>The “file must exist” condition comes into play with VF files and -input files read by the TeX ‘<samp><span class="samp">\openin</span></samp>’ command. These files -might very well not exist (consider <samp><span class="file">cmr10.vf</span></samp>), and so it would +</p> +<a name="index-must-exist"></a> +<a name="index-VF-files_002c-not-found"></a> +<a name="index-cmr10_002evf"></a> +<a name="index-_005copenin"></a> +<p>The “file must exist” condition comes into play with VF files and +input files read by the TeX ‘<samp>\openin</samp>’ command. These files +might very well not exist (consider <samp>cmr10.vf</samp>), and so it would be wrong to search the disk for them. Therefore, if you fail to -update <samp><span class="file">ls-R</span></samp> when you install a new VF file, it will not be +update <samp>ls-R</samp> when you install a new VF file, it will not be found. - - <p>Each path element is checked in turn: first the database, then the disk. +</p> +<p>Each path element is checked in turn: first the database, then the disk. If a match is found, the search stops and the result is returned. This avoids possibly-expensive processing of path specifications that are never needed on a particular run. (Unless the search explicitly requested all matches.) - - <p><a name="index-expansion_002c-path-element-436"></a>Although the simplest and most common path element is a directory name, +</p> +<a name="index-expansion_002c-path-element"></a> +<p>Although the simplest and most common path element is a directory name, Kpathsea supports additional features in search paths: layered default -values, environment variable names, config file values, users' home +values, environment variable names, config file values, users’ home directories, and recursive subdirectory searching. Thus, we say that -Kpathsea <dfn>expands</dfn> a path element, meaning transforming all the +Kpathsea <em>expands</em> a path element, meaning transforming all the magic specifications into the basic directory name or names. This process is described in the sections below. It happens in the same order as the sections. - - <p><a name="index-absolute-filenames-437"></a><a name="index-relative-filenames-438"></a><a name="index-explicitly-relative-filenames-439"></a><a name="index-filenames_002c-absolute-or-explicitly-relative-440"></a>Exception to all of the above: If the filename being searched for is -absolute or explicitly relative, i.e., starts with ‘<samp><span class="samp">/</span></samp>’ or ‘<samp><span class="samp">./</span></samp>’ -or ‘<samp><span class="samp">../</span></samp>’, Kpathsea simply checks if that file exists. - - <p><a name="index-permission-denied-441"></a><a name="index-unreadable-files-442"></a><a name="index-access-warnings-443"></a><a name="index-warnings_002c-file-access-444"></a><a name="index-lost_002bfound-_0040r_007bdirectory_007d-445"></a><a name="index-TEX_005fHUSH-446"></a>Ordinarily, if Kpathsea tries to access a file or directory that +</p> +<a name="index-absolute-filenames"></a> +<a name="index-relative-filenames"></a> +<a name="index-explicitly-relative-filenames"></a> +<a name="index-filenames_002c-absolute-or-explicitly-relative"></a> +<p>Exception to all of the above: If the filename being searched for is +absolute or explicitly relative, i.e., starts with ‘<samp>/</samp>’ or ‘<samp>./</samp>’ +or ‘<samp>../</samp>’, Kpathsea simply checks if that file exists. +</p> +<a name="index-permission-denied"></a> +<a name="index-unreadable-files"></a> +<a name="index-access-warnings"></a> +<a name="index-warnings_002c-file-access"></a> +<a name="index-lost_002bfound-directory"></a> +<a name="index-TEX_005fHUSH"></a> +<p>Ordinarily, if Kpathsea tries to access a file or directory that cannot be read, it gives a warning. This is so you will be alerted to directories or files that accidentally lack any read permission (for -example, a <samp><span class="file">lost+found</span></samp> directory). If you prefer not to see -these warnings, include the value ‘<samp><span class="samp">readable</span></samp>’ in the +example, a <samp>lost+found</samp> directory). If you prefer not to see +these warnings, include the value ‘<samp>readable</samp>’ in the <code>TEX_HUSH</code> environment variable or config file value. - - <p>This generic path searching algorithm is implemented in -<samp><span class="file">kpathsea/pathsearch.c</span></samp>. It is employed by a higher-level +</p> +<p>This generic path searching algorithm is implemented in +<samp>kpathsea/pathsearch.c</samp>. It is employed by a higher-level algorithm when searching for a file of a particular type (see <a href="#File-lookup">File lookup</a>, and <a href="#Glyph-lookup">Glyph lookup</a>). +</p> -<div class="node"> +<hr> <a name="Path-sources"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Path-expansion">Path expansion</a>, -Previous: <a rel="previous" accesskey="p" href="#Searching-overview">Searching overview</a>, -Up: <a rel="up" accesskey="u" href="#Path-searching">Path searching</a> - +<div class="header"> +<p> +Next: <a href="#Path-expansion" accesskey="n" rel="next">Path expansion</a>, Previous: <a href="#Searching-overview" accesskey="p" rel="prev">Searching overview</a>, Up: <a href="#Path-searching" accesskey="u" rel="up">Path searching</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Path-sources-1"></a> +<h3 class="section">5.2 Path sources</h3> -<h3 class="section">3.2 Path sources</h3> +<a name="index-path-sources"></a> +<a name="index-sources-for-search-paths"></a> -<p><a name="index-path-sources-447"></a><a name="index-sources-for-search-paths-448"></a> -A search path can come from many sources. In the order in which +<p>A search path can come from many sources. In the order in which Kpathsea uses them: - - <ol type=1 start=1> -<li><a name="index-environment-variable_002c-source-for-path-449"></a>A user-set environment variable, e.g., <code>TEXINPUTS</code>. +</p> +<ol> +<li> <a name="index-environment-variable_002c-source-for-path"></a> +A user-set environment variable, e.g., <code>TEXINPUTS</code>. Environment variables with an underscore and the program name appended override; for example, <code>TEXINPUTS_latex</code> overrides <code>TEXINPUTS</code> -if the program being run is named ‘<samp><span class="samp">latex</span></samp>’. +if the program being run is named ‘<samp>latex</samp>’. - <li>A program-specific configuration file, e.g., an ‘<samp><span class="samp">S /a:/b</span></samp>’ line in -Dvips' <samp><span class="file">config.ps</span></samp> (see <a href="dvips.html#Config-files">Config files</a>). +</li><li> A program-specific configuration file, e.g., an ‘<samp>S /a:/b</samp>’ line in +Dvips’ <samp>config.ps</samp> (see <a href="dvips.html#Config-files">Config files</a> in <cite>Dvips</cite>). - <li><a name="index-configuration-file_002c-source-for-path-450"></a><a name="index-Kpathsea-config-file_002c-source-for-path-451"></a><a name="index-texmf_002ecnf_0040r_007b_002c-source-for-path_007d-452"></a>A line in a Kpathsea configuration file <samp><span class="file">texmf.cnf</span></samp>, e.g., -‘<samp><span class="samp">TEXINPUTS=/c:/d</span></samp>’ (see below). +</li><li> <a name="index-configuration-file_002c-source-for-path"></a> +<a name="index-Kpathsea-config-file_002c-source-for-path"></a> +<a name="index-texmf_002ecnf_002c-source-for-path"></a> +A line in a Kpathsea configuration file <samp>texmf.cnf</samp>, e.g., +‘<samp>TEXINPUTS=/c:/d</samp>’ (see below). - <li><a name="index-compilation-value_002c-source-for-path-453"></a>The compile-time default (specified in <samp><span class="file">kpathsea/paths.h</span></samp>). - </ol> +</li><li> <a name="index-compilation-value_002c-source-for-path"></a> +The compile-time default (specified in <samp>kpathsea/paths.h</samp>). +</li></ol> - <p>You can see each of these values for a given search path by using the +<p>You can see each of these values for a given search path by using the debugging options (see <a href="#Debugging">Debugging</a>). +</p> +<p>These sources may be combined via default expansion (see <a href="#Default-expansion">Default expansion</a>). +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Config-files" accesskey="1">Config files</a>:</td><td> </td><td align="left" valign="top">Kpathsea’s runtime config files (texmf.cnf). +</td></tr> +</table> - <p>These sources may be combined via default expansion (see <a href="#Default-expansion">Default expansion</a>). -<ul class="menu"> -<li><a accesskey="1" href="#Config-files">Config files</a>: Kpathsea's runtime config files (texmf.cnf). -</ul> - -<div class="node"> +<hr> <a name="Config-files"></a> -<p><hr> -Up: <a rel="up" accesskey="u" href="#Path-sources">Path sources</a> - +<div class="header"> +<p> +Up: <a href="#Path-sources" accesskey="u" rel="up">Path sources</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Config-files-1"></a> +<h4 class="subsection">5.2.1 Config files</h4> -<h4 class="subsection">3.2.1 Config files</h4> +<a name="index-config-files"></a> +<a name="index-texmf_002ecnf_002c-definition-for"></a> -<p><a name="index-config-files-454"></a><a name="index-texmf_002ecnf_0040r_007b_002c-definition-for_007d-455"></a> -<a name="index-runtime-configuration-files-456"></a><a name="index-TEXMFCNF-457"></a>As mentioned above, Kpathsea reads <dfn>runtime configuration files</dfn> -named <samp><span class="file">texmf.cnf</span></samp> for search path and other definitions. The +<a name="index-runtime-configuration-files"></a> +<a name="index-TEXMFCNF"></a> +<p>As mentioned above, Kpathsea reads <em>runtime configuration files</em> +named <samp>texmf.cnf</samp> for search path and other definitions. The search path used to look for these configuration files is named <code>TEXMFCNF</code>, and is constructed in the usual way, as described above, except that configuration files cannot be used to define the -path, naturally; also, an <samp><span class="file">ls-R</span></samp> database is not used to search for +path, naturally; also, an <samp>ls-R</samp> database is not used to search for them. - - <p>Kpathsea reads <em>all</em> <samp><span class="file">texmf.cnf</span></samp> files in the search path, not +</p> +<p>Kpathsea reads <em>all</em> <samp>texmf.cnf</samp> files in the search path, not just the first one found; definitions in earlier files override those in -later files. Thus, if the search path is ‘<samp><span class="samp">.:$TEXMF</span></samp>’, values from -<samp><span class="file">./texmf.cnf</span></samp> override those from <samp><span class="file">$TEXMF/texmf.cnf</span></samp>. - - <p><a name="index-KPATHSEA_005fWARNING-458"></a><a name="index-warning_002c-about-missing-_0040file_007btexmf_002ecnf_007d-459"></a><a name="index-g_t_0040file_007btexmf_002ecnf_007d-missing_002c-warning-about-460"></a>If Kpathsea cannot find any <samp><span class="file">texmf.cnf</span></samp> file, it reports a -warning including all the directories it checked. If you don't want +later files. Thus, if the search path is ‘<samp>.:$TEXMF</samp>’, values from +<samp>./texmf.cnf</samp> override those from <samp>$TEXMF/texmf.cnf</samp>. +</p> +<a name="index-KPATHSEA_005fWARNING"></a> +<a name="index-warning_002c-about-missing-texmf_002ecnf"></a> +<a name="index-texmf_002ecnf-missing_002c-warning-about"></a> +<p>If Kpathsea cannot find any <samp>texmf.cnf</samp> file, it reports a +warning including all the directories it checked. If you don’t want to see this warning, set the environment variable -<samp><span class="env">KPATHSEA_WARNING</span></samp> to the single character ‘<samp><span class="samp">0</span></samp>’ (zero, not +<code>KPATHSEA_WARNING</code> to the single character ‘<samp>0</samp>’ (zero, not oh). - - <p>While (or instead of) reading this description, you may find it helpful -to look at the distributed <samp><span class="file">texmf.cnf</span></samp>, which uses or at least -mentions most features. The format of <samp><span class="file">texmf.cnf</span></samp> files follows: - - <ul> -<li><a name="index-comments_002c-in-_0040file_007btexmf_002ecnf_007d-461"></a>Comments start with ‘<samp><span class="samp">%</span></samp>’, either at the beginning of a line or +</p> +<p>While (or instead of) reading this description, you may find it helpful +to look at the distributed <samp>texmf.cnf</samp>, which uses or at least +mentions most features. The format of <samp>texmf.cnf</samp> files follows: +</p> +<ul> +<li> <a name="index-comments_002c-in-texmf_002ecnf"></a> +Comments start with ‘<samp>%</samp>’, either at the beginning of a line or preceded by whitespace, and continue to the end of the line. That is, -as with most shells, a ‘<samp><span class="samp">%</span></samp>’ in the “middle” of a value does not +as with most shells, a ‘<samp>%</samp>’ in the “middle” of a value does not start a comment. Examples: - <pre class="example"> % this is a comment - var = a%b % but the value of var will be "a%b". -</pre> - <li><a name="index-blank-lines_002c-in-_0040file_007btexmf_002ecnf_007d-462"></a>Blank lines are ignored. +<div class="example"> +<pre class="example">% this is a comment +var = a%b % but the value of var will be "a%b". +</pre></div> - <li><a name="index-backslash_002dnewline-463"></a><a name="index-continuation-character-464"></a><a name="index-whitespace_002c-not-ignored-on-continuation-lines-465"></a><a name="index-g_t_005c_0040r_007b_002c-line-continuation-in-_0040file_007btexmf_002ecnf_007d_007d-466"></a>A ‘<samp><span class="samp">\</span></samp>’ at the end of a line acts as a continuation character, i.e., +</li><li> <a name="index-blank-lines_002c-in-texmf_002ecnf"></a> +Blank lines are ignored. + +</li><li> <a name="index-backslash_002dnewline"></a> +<a name="index-continuation-character"></a> +<a name="index-whitespace_002c-not-ignored-on-continuation-lines"></a> +<a name="index-_005c_002c-line-continuation-in-texmf_002ecnf"></a> +A ‘<samp>\</samp>’ at the end of a line acts as a continuation character, i.e., the next line is appended. Whitespace at the beginning of continuation lines is not ignored. - <li>Each remaining line must look like +</li><li> Each remaining line must look like - <pre class="example"> <var>variable</var> <span class="roman">[</span>. <var>progname</var><span class="roman">]</span> <span class="roman">[</span>=<span class="roman">]</span> <var>value</var> -</pre> - <p class="noindent">where the ‘<samp><span class="samp">=</span></samp>’ and surrounding whitespace is optional. +<div class="example"> +<pre class="example"><var>variable</var> <span class="roman">[</span>. <var>progname</var><span class="roman">]</span> <span class="roman">[</span>=<span class="roman">]</span> <var>value</var> +</pre></div> - <li><a name="index-identifiers_002c-characters-valid-in-467"></a>The <var>variable</var> name may contain any character other than whitespace, -‘<samp><span class="samp">=</span></samp>’, or ‘<samp><span class="samp">.</span></samp>’, but sticking to ‘<samp><span class="samp">A-Za-z_</span></samp>’ is safest. +<p>where the ‘<samp>=</samp>’ and surrounding whitespace is optional. +</p> +</li><li> <a name="index-identifiers_002c-characters-valid-in"></a> +The <var>variable</var> name may contain any character other than whitespace, +‘<samp>=</samp>’, or ‘<samp>.</samp>’, but sticking to ‘<samp>A-Za-z_</samp>’ is safest. - <li>If ‘<samp><span class="samp">.</span><var>progname</var></samp>’ is present, the definition only +</li><li> If ‘<samp>.<var>progname</var></samp>’ is present, the definition only applies if the program that is running is named (i.e., the last component of <code>argv[0]</code> is) <var>progname</var> or -<samp><var>progname</var><span class="file">.{exe,bat,cmd,...}</span></samp>. Most notably, this allows +<samp><var>progname</var>.{exe,bat,cmd,...}</samp>. Most notably, this allows different flavors of TeX to have different search paths. - <li><a name="index-right_002dhand-side-of-variable-assignments-468"></a><var>value</var> may contain any characters except ‘<samp><span class="samp">%</span></samp>’ and ‘<samp><span class="samp">@</span></samp>’. +</li><li> <a name="index-right_002dhand-side-of-variable-assignments"></a> +<var>value</var> may contain any characters except ‘<samp>%</samp>’ and ‘<samp>@</samp>’. (These restrictions are only necessary because of the processing done -on <samp><span class="file">texmf.cnf</span></samp> at build time, so you can stick those characters +on <samp>texmf.cnf</samp> at build time, so you can stick those characters in after installation if you have to.) The -‘<samp><span class="samp">$</span><var>var</var><span class="samp">.</span><var>prog</var></samp>’ feature is not available on the +‘<samp>$<var>var</var>.<var>prog</var></samp>’ feature is not available on the right-hand side; instead, you must use an additional variable (see -below for example). A ‘<samp><span class="samp">;</span></samp>’ in <var>value</var> is translated to -‘<samp><span class="samp">:</span></samp>’ if running under Unix; this is useful to write a single -<samp><span class="file">texmf.cnf</span></samp> which can be used under both Unix and Windows. +below for example). A ‘<samp>;</samp>’ in <var>value</var> is translated to +‘<samp>:</samp>’ if running under Unix; this is useful to write a single +<samp>texmf.cnf</samp> which can be used under both Unix and Windows. - <li>All definitions are read before anything is expanded, so you can +</li><li> All definitions are read before anything is expanded, so you can use variables before they are defined (like Make, unlike most other -programs). -</ul> +programs). +</li></ul> -<p class="noindent">Here is a configuration file fragment illustrating most of +<p>Here is a configuration file fragment illustrating most of these points: - -<pre class="example"> % TeX input files -- i.e., anything to be found by \input or \openin ... - latex209_inputs = .:$TEXMF/tex/latex209//:$TEXMF/tex// - latex2e_inputs = .:$TEXMF/tex/latex//:$TEXMF/tex// - TEXINPUTS = .:$TEXMF/tex// - TEXINPUTS.latex209 = $latex209_inputs - TEXINPUTS.latex2e = $latex2e_inputs - TEXINPUTS.latex = $latex2e_inputs -</pre> - <p><a name="index-shell-scripts-as-configuration-files-469"></a><a name="index-configuration-files-as-shell-scripts_002e-470"></a>This format has obvious similarities to Bourne shell scripts—change +</p> +<div class="example"> +<pre class="example">% TeX input files -- i.e., anything to be found by \input or \openin ... +latex209_inputs = .:$TEXMF/tex/latex209//:$TEXMF/tex// +latex2e_inputs = .:$TEXMF/tex/latex//:$TEXMF/tex// +TEXINPUTS = .:$TEXMF/tex// +TEXINPUTS.latex209 = $latex209_inputs +TEXINPUTS.latex2e = $latex2e_inputs +TEXINPUTS.latex = $latex2e_inputs +</pre></div> + +<a name="index-shell-scripts-as-configuration-files"></a> +<a name="index-configuration-files-as-shell-scripts_002e"></a> +<p>This format has obvious similarities to Bourne shell scripts—change the comment character to <code>#</code>, disallow spaces around the -<code>=</code>, and get rid of the <code>.</code><var>name</var> convention, and it +<code>=</code>, and get rid of the <code>.<var>name</var></code> convention, and it could be run through the shell. However, there seemed little advantage in this, since all the information would have to passed back to Kpathsea and parsed there anyway, since the <code>sh</code> process -couldn't affect its parent's environment. - - <p><a name="index-cnf_002ec-471"></a>The implementation of all this is in <samp><span class="file">kpathsea/cnf.c</span></samp>. +couldn’t affect its parent’s environment. +</p> +<a name="index-cnf_002ec"></a> +<p>The implementation of all this is in <samp>kpathsea/cnf.c</samp>. +</p> -<div class="node"> +<hr> <a name="Path-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Filename-database">Filename database</a>, -Previous: <a rel="previous" accesskey="p" href="#Path-sources">Path sources</a>, -Up: <a rel="up" accesskey="u" href="#Path-searching">Path searching</a> - +<div class="header"> +<p> +Next: <a href="#Filename-database" accesskey="n" rel="next">Filename database</a>, Previous: <a href="#Path-sources" accesskey="p" rel="prev">Path sources</a>, Up: <a href="#Path-searching" accesskey="u" rel="up">Path searching</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Path-expansion-1"></a> +<h3 class="section">5.3 Path expansion</h3> -<h3 class="section">3.3 Path expansion</h3> +<a name="index-path-expansion"></a> +<a name="index-expansion_002c-search-path"></a> -<p><a name="index-path-expansion-472"></a><a name="index-expansion_002c-search-path-473"></a> -Kpathsea recognizes certain special characters and constructions in +<p>Kpathsea recognizes certain special characters and constructions in search paths, similar to that in shells. As a general example: -‘<samp><span class="samp">~$USER/{foo,bar}//baz</span></samp>’ expands to all subdirectories under -directories <samp><span class="file">foo</span></samp> and <samp><span class="file">bar</span></samp> in <tt>$USER</tt>'s home directory that -contain a directory or file <samp><span class="file">baz</span></samp>. These expansions are explained +‘<samp>~$USER/{foo,bar}//baz</samp>’ expands to all subdirectories under +directories <samp>foo</samp> and <samp>bar</samp> in <tt>$USER</tt>’s home directory that +contain a directory or file <samp>baz</samp>. These expansions are explained in the sections below. - -<ul class="menu"> -<li><a accesskey="1" href="#Default-expansion">Default expansion</a>: a: or :a or a::b expands to a default. -<li><a accesskey="2" href="#Variable-expansion">Variable expansion</a>: $foo and ${foo} expand to environment values. -<li><a accesskey="3" href="#Tilde-expansion">Tilde expansion</a>: ~ and ~user expand to home directories. -<li><a accesskey="4" href="#Brace-expansion">Brace expansion</a>: a{foo,bar}b expands to afoob abarb. -<li><a accesskey="5" href="#KPSE_005fDOT-expansion">KPSE_DOT expansion</a>: . is replaced with $KPSE_DOT if it is defined. -<li><a accesskey="6" href="#Subdirectory-expansion">Subdirectory expansion</a>: a// and a//b recursively expand to subdirs. -</ul> - -<div class="node"> +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Default-expansion" accesskey="1">Default expansion</a>:</td><td> </td><td align="left" valign="top">a: or :a or a::b expands to a default. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Variable-expansion" accesskey="2">Variable expansion</a>:</td><td> </td><td align="left" valign="top">$foo and ${foo} expand to environment values. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Tilde-expansion" accesskey="3">Tilde expansion</a>:</td><td> </td><td align="left" valign="top">~ and ~user expand to home directories. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Brace-expansion" accesskey="4">Brace expansion</a>:</td><td> </td><td align="left" valign="top">a{foo,bar}b expands to afoob abarb. +</td></tr> +<tr><td align="left" valign="top">• <a href="#KPSE_005fDOT-expansion" accesskey="5">KPSE_DOT expansion</a>:</td><td> </td><td align="left" valign="top">. is replaced with $KPSE_DOT if it is defined. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Subdirectory-expansion" accesskey="6">Subdirectory expansion</a>:</td><td> </td><td align="left" valign="top">a// and a//b recursively expand to subdirs. +</td></tr> +</table> + + +<hr> <a name="Default-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Variable-expansion">Variable expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Next: <a href="#Variable-expansion" accesskey="n" rel="next">Variable expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h4 class="subsection">3.3.1 Default expansion</h4> - -<p><a name="index-g_t_003a_003a-_0040r_007bexpansion_007d-474"></a><a name="index-doubled-colons-475"></a><a name="index-leading-colons-476"></a><a name="index-trailing-colons-477"></a><a name="index-extra-colons-478"></a><a name="index-default-expansion-479"></a><a name="index-expansion_002c-default-480"></a> -If the highest-priority search path (see <a href="#Path-sources">Path sources</a>) contains an -<dfn>extra colon</dfn> (i.e., leading, trailing, or doubled), Kpathsea +<a name="Default-expansion-1"></a> +<h4 class="subsection">5.3.1 Default expansion</h4> + +<a name="index-_003a_003a-expansion"></a> +<a name="index-doubled-colons"></a> +<a name="index-leading-colons"></a> +<a name="index-trailing-colons"></a> +<a name="index-extra-colons"></a> +<a name="index-default-expansion"></a> +<a name="index-expansion_002c-default"></a> + +<p>If the highest-priority search path (see <a href="#Path-sources">Path sources</a>) contains an +<em>extra colon</em> (i.e., leading, trailing, or doubled), Kpathsea inserts at that point the next-highest-priority search path that is defined. If that inserted path has an extra colon, the same happens with the next-highest. (An extra colon in the compile-time default value has unpredictable results, so installers beware.) - - <p>For example, given an environment variable setting - -<pre class="example"> setenv TEXINPUTS /home/karl: -</pre> - <p class="noindent">and a <code>TEXINPUTS</code> value from <samp><span class="file">texmf.cnf</span></samp> of - -<pre class="example"> .:$TEXMF//tex -</pre> - <p class="noindent">then the final value used for searching will be: - -<pre class="example"> /home/karl:.:$TEXMF//tex -</pre> - <p>Put another way, default expansion works on “formats” (search +</p> +<p>For example, given an environment variable setting +</p> +<div class="example"> +<pre class="example">setenv TEXINPUTS /home/karl: +</pre></div> + +<p>and a <code>TEXINPUTS</code> value from <samp>texmf.cnf</samp> of +</p> +<div class="example"> +<pre class="example">.:$TEXMF//tex +</pre></div> + +<p>then the final value used for searching will be: +</p> +<div class="example"> +<pre class="example">/home/karl:.:$TEXMF//tex +</pre></div> + +<p>Put another way, default expansion works on “formats” (search paths), and not directly on environment variables. Example, showing -the trailing ‘<samp><span class="samp">:</span></samp>’ ignored in the first case and expanded in the second: - -<pre class="example"> $ env TTFONTS=/tmp: kpsewhich --expand-path '$TTFONTS' - /tmp - $ env TTFONTS=/tmp: kpsewhich --show-path=.ttf - /tmp:.:/home/olaf/texmf/fonts/truetype//:... -</pre> - <p>Since Kpathsea looks for multiple configuration files, it would be +the trailing ‘<samp>:</samp>’ ignored in the first case and expanded in the second: +</p> +<div class="example"> +<pre class="example">$ env TTFONTS=/tmp: kpsewhich --expand-path '$TTFONTS' +/tmp +$ env TTFONTS=/tmp: kpsewhich --show-path=.ttf +/tmp:.:/home/olaf/texmf/fonts/truetype//:... +</pre></div> + +<p>Since Kpathsea looks for multiple configuration files, it would be natural to expect that (for example) an extra colon in -<samp><span class="file">./texmf.cnf</span></samp> would expand to the path in <samp><span class="file">$TEXMF/texmf.cnf</span></samp>. -Or, with Dvips' configuration files, that an extra colon in -<samp><span class="file">config.$PRINTER</span></samp> would expand to the path in <samp><span class="file">config.ps</span></samp>. -This doesn't happen. It's not clear this would be desirable in all +<samp>./texmf.cnf</samp> would expand to the path in <samp>$TEXMF/texmf.cnf</samp>. +Or, with Dvips’ configuration files, that an extra colon in +<samp>config.$PRINTER</samp> would expand to the path in <samp>config.ps</samp>. +This doesn’t happen. It’s not clear this would be desirable in all cases, and trying to devise a way to specify the path to which the extra -colon should expand seemed truly baroque. -<a name="index-Bach_002c-Johann-Sebastian-481"></a> -Technicality: Since it would be useless to insert the default value in -more than one place, Kpathsea changes only one extra ‘<samp><span class="samp">:</span></samp>’ and leaves +colon should expand seemed truly baroque. +<a name="index-Bach_002c-Johann-Sebastian"></a> +</p> +<p>Technicality: Since it would be useless to insert the default value in +more than one place, Kpathsea changes only one extra ‘<samp>:</samp>’ and leaves any others in place (they will eventually be ignored). Kpathsea checks -first for a leading ‘<samp><span class="samp">:</span></samp>’, then a trailing ‘<samp><span class="samp">:</span></samp>’, then a doubled -‘<samp><span class="samp">:</span></samp>’. - - <p><a name="index-kdefault_002ec-482"></a>You can trace this by debugging “paths” (see <a href="#Debugging">Debugging</a>). +first for a leading ‘<samp>:</samp>’, then a trailing ‘<samp>:</samp>’, then a doubled +‘<samp>:</samp>’. +</p> +<a name="index-kdefault_002ec"></a> +<p>You can trace this by debugging “paths” (see <a href="#Debugging">Debugging</a>). Default expansion is implemented in the source file -<samp><span class="file">kpathsea/kdefault.c</span></samp>. +<samp>kpathsea/kdefault.c</samp>. +</p> -<div class="node"> +<hr> <a name="Variable-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Tilde-expansion">Tilde expansion</a>, -Previous: <a rel="previous" accesskey="p" href="#Default-expansion">Default expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Next: <a href="#Tilde-expansion" accesskey="n" rel="next">Tilde expansion</a>, Previous: <a href="#Default-expansion" accesskey="p" rel="prev">Default expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h4 class="subsection">3.3.2 Variable expansion</h4> - -<p><a name="index-g_t_0024-_0040r_007bexpansion_007d-483"></a><a name="index-environment-variables-in-paths-484"></a><a name="index-variable-expansion-485"></a><a name="index-expansion_002c-variable-486"></a><a name="index-texmf_002ecnf_0040r_007b_002c-and-variable-expansion_007d-487"></a> -‘<samp><span class="samp">$foo</span></samp>’ or ‘<samp><span class="samp">${foo}</span></samp>’ in a path element is replaced by (1) the -value of an environment variable ‘<samp><span class="samp">foo</span></samp>’ (if defined); (2) the value -of ‘<samp><span class="samp">foo</span></samp>’ from <samp><span class="file">texmf.cnf</span></samp> (if defined); (3) the empty string. - - <p>If the character after the ‘<samp><span class="samp">$</span></samp>’ is alphanumeric or ‘<samp><span class="samp">_</span></samp>’, the +<a name="Variable-expansion-1"></a> +<h4 class="subsection">5.3.2 Variable expansion</h4> + +<a name="index-_0024-expansion"></a> +<a name="index-environment-variables-in-paths"></a> +<a name="index-variable-expansion"></a> +<a name="index-expansion_002c-variable"></a> +<a name="index-texmf_002ecnf_002c-and-variable-expansion"></a> + +<p>‘<samp>$foo</samp>’ or ‘<samp>${foo}</samp>’ in a path element is replaced by (1) the +value of an environment variable ‘<samp>foo</samp>’ (if defined); (2) the value +of ‘<samp>foo</samp>’ from <samp>texmf.cnf</samp> (if defined); (3) the empty string. +</p> +<p>If the character after the ‘<samp>$</samp>’ is alphanumeric or ‘<samp>_</samp>’, the variable name consists of all consecutive such characters. If the -character after the ‘<samp><span class="samp">$</span></samp>’ is a ‘<samp><span class="samp">{</span></samp>’, the variable name consists -of everything up to the next ‘<samp><span class="samp">}</span></samp>’ (braces may not be nested around +character after the ‘<samp>$</samp>’ is a ‘<samp>{</samp>’, the variable name consists +of everything up to the next ‘<samp>}</samp>’ (braces may not be nested around variable names). Otherwise, Kpathsea gives a warning and ignores the -‘<samp><span class="samp">$</span></samp>’ and its following character. - - <p><a name="index-quoting-variable-values-488"></a><a name="index-shell-variables-489"></a>You must quote the <tt>$</tt>'s and braces as necessary for your shell. +‘<samp>$</samp>’ and its following character. +</p> +<a name="index-quoting-variable-values"></a> +<a name="index-shell-variables"></a> +<p>You must quote the <tt>$</tt>’s and braces as necessary for your shell. <em>Shell</em> variable values cannot be seen by Kpathsea, i.e., ones defined by <code>set</code> in C shells and without <code>export</code> in Bourne shells. - - <p>For example, given -<pre class="example"> setenv tex /home/texmf - setenv TEXINPUTS .:$tex:${tex}prev -</pre> - <p class="noindent">the final <code>TEXINPUTS</code> path is the three directories: -<pre class="example"> .:/home/texmf:/home/texmfprev -</pre> - <p>The ‘<samp><span class="samp">.</span><var>progname</var></samp>’ suffix on variables and -‘<samp><span class="samp">_</span><var>progname</var></samp>’ on environment variable names are not implemented +</p> +<p>For example, given +</p><div class="example"> +<pre class="example">setenv tex /home/texmf +setenv TEXINPUTS .:$tex:${tex}prev +</pre></div> +<p>the final <code>TEXINPUTS</code> path is the three directories: +</p><div class="example"> +<pre class="example">.:/home/texmf:/home/texmfprev +</pre></div> + +<p>The ‘<samp>.<var>progname</var></samp>’ suffix on variables and +‘<samp>_<var>progname</var></samp>’ on environment variable names are not implemented for general variable expansions. These are only recognized when search paths are initialized (see <a href="#Path-sources">Path sources</a>). +</p> +<a name="index-variable_002ec"></a> +<p>Variable expansion is implemented in the source file +<samp>kpathsea/variable.c</samp>. +</p> - <p><a name="index-variable_002ec-490"></a>Variable expansion is implemented in the source file -<samp><span class="file">kpathsea/variable.c</span></samp>. - -<div class="node"> +<hr> <a name="Tilde-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Brace-expansion">Brace expansion</a>, -Previous: <a rel="previous" accesskey="p" href="#Variable-expansion">Variable expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Next: <a href="#Brace-expansion" accesskey="n" rel="next">Brace expansion</a>, Previous: <a href="#Variable-expansion" accesskey="p" rel="prev">Variable expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h4 class="subsection">3.3.3 Tilde expansion</h4> - -<p><a name="index-g_t_007e-_0040r_007bexpansion_007d-491"></a><a name="index-home-directories-in-paths-492"></a><a name="index-tilde-expansion-493"></a><a name="index-expansion_002c-tilde-494"></a> -<a name="index-HOME_0040r_007b_002c-as-_007e-expansion_007d-495"></a><a name="index-USERPROFILE_0040r_007b_002c-as-_007e-expansion_007d-496"></a>A leading ‘<samp><span class="samp">~</span></samp>’ in a path element is replaced by the value of the -environment variable <code>HOME</code>, or <samp><span class="file">.</span></samp> if <code>HOME</code> is not +<a name="Tilde-expansion-1"></a> +<h4 class="subsection">5.3.3 Tilde expansion</h4> + +<a name="index-_007e-expansion"></a> +<a name="index-home-directories-in-paths"></a> +<a name="index-tilde-expansion"></a> +<a name="index-expansion_002c-tilde"></a> + +<a name="index-HOME_002c-as-_007e-expansion"></a> +<a name="index-USERPROFILE_002c-as-_007e-expansion"></a> +<p>A leading ‘<samp>~</samp>’ in a path element is replaced by the value of the +environment variable <code>HOME</code>, or <samp>.</samp> if <code>HOME</code> is not set. On Windows, the environment variable <code>USERPROFILE</code> is checked instead of <code>HOME</code>. - - <p>A leading ‘<samp><span class="samp">~</span><var>user</var></samp>’ in a path element is replaced by -<var>user</var>'s home directory from the system <samp><span class="file">passwd</span></samp> database. - - <p>For example, -<pre class="example"> setenv TEXINPUTS ~/mymacros: -</pre> - <p class="noindent">will prepend a directory <samp><span class="file">mymacros</span></samp> in your home +</p> +<p>A leading ‘<samp>~<var>user</var></samp>’ in a path element is replaced by +<var>user</var>’s home directory from the system <samp>passwd</samp> database. +</p> +<p>For example, +</p><div class="example"> +<pre class="example">setenv TEXINPUTS ~/mymacros: +</pre></div> + +<p>will prepend a directory <samp>mymacros</samp> in your home directory to the default path. - - <p><a name="index-g_t_0040t_007broot_007d-user-497"></a><a name="index-trailing-_0040samp_007b_002f_007d-in-home-directory-498"></a><a name="index-g_t_002f_0040r_007b_002c-trailing-in-home-directory_007d-499"></a>As a special case, if a home directory ends in ‘<samp><span class="samp">/</span></samp>’, the trailing -slash is dropped, to avoid inadvertently creating a ‘<samp><span class="samp">//</span></samp>’ construct -in the path. For example, if the home directory of the user ‘<samp><span class="samp">root</span></samp>’ -is ‘<samp><span class="samp">/</span></samp>’, the path element ‘<samp><span class="samp">~root/mymacros</span></samp>’ expands to just -‘<samp><span class="samp">/mymacros</span></samp>’, not ‘<samp><span class="samp">//mymacros</span></samp>’. - - <p><a name="index-tilde_002ec-500"></a>Tilde expansion is implemented in the source file <samp><span class="file">kpathsea/tilde.c</span></samp>. - -<div class="node"> +</p> +<a name="index-root-user"></a> +<a name="index-trailing-_002f-in-home-directory"></a> +<a name="index-_002f_002c-trailing-in-home-directory"></a> +<p>As a special case, if a home directory ends in ‘<samp>/</samp>’, the trailing +slash is dropped, to avoid inadvertently creating a ‘<samp>//</samp>’ construct +in the path. For example, if the home directory of the user ‘<samp>root</samp>’ +is ‘<samp>/</samp>’, the path element ‘<samp>~root/mymacros</samp>’ expands to just +‘<samp>/mymacros</samp>’, not ‘<samp>//mymacros</samp>’. +</p> +<a name="index-tilde_002ec"></a> +<p>Tilde expansion is implemented in the source file <samp>kpathsea/tilde.c</samp>. +</p> + +<hr> <a name="Brace-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#KPSE_005fDOT-expansion">KPSE_DOT expansion</a>, -Previous: <a rel="previous" accesskey="p" href="#Tilde-expansion">Tilde expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Next: <a href="#KPSE_005fDOT-expansion" accesskey="n" rel="next">KPSE_DOT expansion</a>, Previous: <a href="#Tilde-expansion" accesskey="p" rel="prev">Tilde expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Brace-expansion-1"></a> +<h4 class="subsection">5.3.4 Brace expansion</h4> -<h4 class="subsection">3.3.4 Brace expansion</h4> +<a name="index-_007b-expansion"></a> +<a name="index-brace-expansion"></a> -<p><a name="index-g_t_0040_007b-_0040r_007bexpansion_007d-501"></a><a name="index-brace-expansion-502"></a> -‘<samp><span class="samp">x{</span><var>a</var><span class="samp">,</span><var>b</var><span class="samp">}y</span></samp>’ expands to ‘<samp><span class="samp">x</span><var>a</var><span class="samp">y:x</span><var>b</var><span class="samp">y</span></samp>’. +<p>‘<samp>x{<var>a</var>,<var>b</var>}y</samp>’ expands to ‘<samp>x<var>a</var>y:x<var>b</var>y</samp>’. For example: - -<pre class="example"> foo/{1,2}/baz -</pre> - <p class="noindent">expands to ‘<samp><span class="samp">foo/1/baz:foo/2/baz</span></samp>’. ‘<samp><span class="samp">:</span></samp>’ is the path -separator on the current system; e.g., on a DOS system, it's ‘<samp><span class="samp">;</span></samp>’. - - <p>Braces can be nested; for example, ‘<samp><span class="samp">x{A,B{1,2}}y</span></samp>’ expands to -‘<samp><span class="samp">xAy:xB1y:xB2y</span></samp>’. - - <p>Multiple non-nested braces are expanded from right to left; for example, -‘<samp><span class="samp">x{A,B}{1,2}y</span></samp>’ expands to ‘<samp><span class="samp">x{A,B}1y:x{A,B}2y</span></samp>’, which -expands to ‘<samp><span class="samp">xA1y:xB1y:xA2y:xB2y</span></samp>’. - - <p><a name="index-multiple-_0040TeX_007b_007d-hierarchies-503"></a>This feature can be used to implement multiple TeX hierarchies, by +</p> +<div class="example"> +<pre class="example">foo/{1,2}/baz +</pre></div> + +<p>expands to ‘<samp>foo/1/baz:foo/2/baz</samp>’. ‘<samp>:</samp>’ is the path +separator on the current system; e.g., on a DOS system, it’s ‘<samp>;</samp>’. +</p> +<p>Braces can be nested; for example, ‘<samp>x{A,B{1,2}}y</samp>’ expands to +‘<samp>xAy:xB1y:xB2y</samp>’. +</p> +<p>Multiple non-nested braces are expanded from right to left; for example, +‘<samp>x{A,B}{1,2}y</samp>’ expands to ‘<samp>x{A,B}1y:x{A,B}2y</samp>’, which +expands to ‘<samp>xA1y:xB1y:xA2y:xB2y</samp>’. +</p> +<a name="index-multiple-TeX-hierarchies"></a> +<p>This feature can be used to implement multiple TeX hierarchies, by assigning a brace list to <code>$TEXMF</code>, as mentioned in -<samp><span class="file">texmf.in</span></samp>. - - <p>You can also use the path separator instead of the comma. The last -example could have been written ‘<samp><span class="samp">x{A:B}{1:2}y</span></samp>’. - - <p><a name="index-expand_002ec-504"></a>Brace expansion is implemented in the source file -<samp><span class="file">kpathsea/expand.c</span></samp>. - -<div class="node"> -<a name="KPSE_DOT-expansion"></a> +<samp>texmf.in</samp>. +</p> +<p>You can also use the path separator instead of the comma. The last +example could have been written ‘<samp>x{A:B}{1:2}y</samp>’. +</p> + +<a name="index-expand_002ec"></a> +<p>Brace expansion is implemented in the source file +<samp>kpathsea/expand.c</samp>. +</p> + +<hr> <a name="KPSE_005fDOT-expansion"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Subdirectory-expansion">Subdirectory expansion</a>, -Previous: <a rel="previous" accesskey="p" href="#Brace-expansion">Brace expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Next: <a href="#Subdirectory-expansion" accesskey="n" rel="next">Subdirectory expansion</a>, Previous: <a href="#Brace-expansion" accesskey="p" rel="prev">Brace expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="KPSE_005fDOT-expansion-1"></a> +<h4 class="subsection">5.3.5 <code>KPSE_DOT</code> expansion</h4> -<h4 class="subsection">3.3.5 <code>KPSE_DOT</code> expansion</h4> +<a name="index-KPSE_005fDOT-expansion"></a> -<p><a name="index-KPSE_005fDOT-_0040r_007bexpansion_007d-505"></a> -When <code>KPSE_DOT</code> is defined in the environment, it names a directory +<p>When <code>KPSE_DOT</code> is defined in the environment, it names a directory that should be considered the current directory for the purpose of looking up files in the search paths. This feature is needed by the -‘<samp><span class="samp">mktex...</span></samp>’ scripts <a href="#mktex-scripts">mktex scripts</a>, because these +‘<samp>mktex…</samp>’ scripts <a href="#mktex-scripts">mktex scripts</a>, because these change the working directory. You should not ever define it yourself. +</p> -<div class="node"> +<hr> <a name="Subdirectory-expansion"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#KPSE_005fDOT-expansion">KPSE_DOT expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-expansion">Path expansion</a> - +<div class="header"> +<p> +Previous: <a href="#KPSE_005fDOT-expansion" accesskey="p" rel="prev">KPSE_DOT expansion</a>, Up: <a href="#Path-expansion" accesskey="u" rel="up">Path expansion</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Subdirectory-expansion-1"></a> +<h4 class="subsection">5.3.6 Subdirectory expansion</h4> -<h4 class="subsection">3.3.6 Subdirectory expansion</h4> +<a name="index-_002f_002f"></a> +<a name="index-subdirectory-searching"></a> +<a name="index-expansion_002c-subdirectory"></a> -<p><a name="index-g_t_002f_002f-506"></a><a name="index-subdirectory-searching-507"></a><a name="index-expansion_002c-subdirectory-508"></a> -<a name="index-alphabetical-order_002c-not-509"></a>Two or more consecutive slashes in a path element following a directory +<a name="index-alphabetical-order_002c-not"></a> +<p>Two or more consecutive slashes in a path element following a directory <var>d</var> is replaced by all subdirectories of <var>d</var>: first those subdirectories directly under <var>d</var>, then the subsubdirectories under those, and so on. At each level, the order in which the directories are -searched is unspecified. (It's “directory order”, and definitely not +searched is unspecified. (It’s “directory order”, and definitely not alphabetical.) - - <p>If you specify any filename components after the ‘<samp><span class="samp">//</span></samp>’, only +</p> +<p>If you specify any filename components after the ‘<samp>//</samp>’, only subdirectories which match those components are included. For example, -‘<samp><span class="samp">/a//b</span></samp>’ would expand into directories <samp><span class="file">/a/1/b</span></samp>, <samp><span class="file">/a/2/b</span></samp>, -<samp><span class="file">/a/1/1/b</span></samp>, and so on, but not <samp><span class="file">/a/b/c</span></samp> or <samp><span class="file">/a/1</span></samp>. - - <p>You can include multiple ‘<samp><span class="samp">//</span></samp>’ constructs in the path. - - <p>‘<samp><span class="samp">//</span></samp>’ at the beginning of a path is ignored; you didn't really want +‘<samp>/a//b</samp>’ would expand into directories <samp>/a/1/b</samp>, <samp>/a/2/b</samp>, +<samp>/a/1/1/b</samp>, and so on, but not <samp>/a/b/c</samp> or <samp>/a/1</samp>. +</p> +<p>You can include multiple ‘<samp>//</samp>’ constructs in the path. +</p> +<p>‘<samp>//</samp>’ at the beginning of a path is ignored; you didn’t really want to search every directory on the system, did you? - - <p><a name="index-trick-for-detecting-leaf-directories-510"></a><a name="index-leaf-directory-trick-511"></a><a name="index-Farwell_002c-Matthew-512"></a><a name="index-MacKenzie_002c-David-513"></a>I should mention one related implementation trick, which I took from GNU +</p> +<a name="index-trick-for-detecting-leaf-directories"></a> +<a name="index-leaf-directory-trick"></a> +<a name="index-Farwell_002c-Matthew"></a> +<a name="index-MacKenzie_002c-David-1"></a> +<p>I should mention one related implementation trick, which I took from GNU find. Matthew Farwell suggested it, and David MacKenzie implemented it. - - <p><a name="index-st_005fnlink-514"></a>The trick is that in every real Unix implementation (as opposed to the +</p> +<a name="index-st_005fnlink"></a> +<p>The trick is that in every real Unix implementation (as opposed to the POSIX specification), a directory which contains no subdirectories will -have exactly two links (namely, one for <samp><span class="file">.</span></samp> and one for <samp><span class="file">..</span></samp>). -That is to say, the <code>st_nlink</code> field in the ‘<samp><span class="samp">stat</span></samp>’ structure -will be two. Thus, we don't have to stat everything in the bottom-level -(leaf) directories—we can just check <code>st_nlink</code>, notice it's two, +have exactly two links (namely, one for <samp>.</samp> and one for <samp>..</samp>). +That is to say, the <code>st_nlink</code> field in the ‘<samp>stat</samp>’ structure +will be two. Thus, we don’t have to stat everything in the bottom-level +(leaf) directories—we can just check <code>st_nlink</code>, notice it’s two, and do no more work. - - <p>But if you have a directory that contains a single subdirectory and 500 +</p> +<p>But if you have a directory that contains a single subdirectory and 500 regular files, <code>st_nlink</code> will be 3, and Kpathsea has to stat every one of those 501 entries. Therein lies slowness. - - <p><a name="index-ST_005fNLINK_005fTRICK-515"></a>You can disable the trick by undefining <code>ST_NLINK_TRICK</code> in -<samp><span class="file">kpathsea/config.h</span></samp>. (It is undefined by default except under Unix.) - - <p><a name="index-elt_002ddirs_002ec-516"></a>Unfortunately, in some cases files in leaf directories are -<code>stat</code>'d: if the path specification is, say, -‘<samp><span class="samp">$TEXMF/fonts//pk//</span></samp>’, then files in a subdirectory -‘<samp><span class="samp">.../pk</span></samp>’, even if it is a leaf, are checked. The reason cannot +</p> +<a name="index-ST_005fNLINK_005fTRICK"></a> +<p>You can disable the trick by undefining <code>ST_NLINK_TRICK</code> in +<samp>kpathsea/config.h</samp>. (It is undefined by default except under Unix.) +</p> +<a name="index-elt_002ddirs_002ec"></a> +<p>Unfortunately, in some cases files in leaf directories are +<code>stat</code>’d: if the path specification is, say, +‘<samp>$TEXMF/fonts//pk//</samp>’, then files in a subdirectory +‘<samp>…/pk</samp>’, even if it is a leaf, are checked. The reason cannot be explained without reference to the implementation, so read -<samp><span class="file">kpathsea/elt-dirs.c</span></samp> (search for ‘<samp><span class="samp">may descend</span></samp>’) if you are +<samp>kpathsea/elt-dirs.c</samp> (search for ‘<samp>may descend</samp>’) if you are curious. And if you can find a way to <em>solve</em> the problem, please let me know. +</p> +<a name="index-elt_002ddirs_002ec-1"></a> +<p>Subdirectory expansion is implemented in the source file +<samp>kpathsea/elt-dirs.c</samp>. +</p> - <p><a name="index-elt_002ddirs_002ec-517"></a>Subdirectory expansion is implemented in the source file -<samp><span class="file">kpathsea/elt-dirs.c</span></samp>. - -<div class="node"> +<hr> <a name="Filename-database"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Invoking-kpsewhich">Invoking kpsewhich</a>, -Previous: <a rel="previous" accesskey="p" href="#Path-expansion">Path expansion</a>, -Up: <a rel="up" accesskey="u" href="#Path-searching">Path searching</a> - +<div class="header"> +<p> +Next: <a href="#Invoking-kpsewhich" accesskey="n" rel="next">Invoking kpsewhich</a>, Previous: <a href="#Path-expansion" accesskey="p" rel="prev">Path expansion</a>, Up: <a href="#Path-searching" accesskey="u" rel="up">Path searching</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Filename-database-_0028ls_002dR_0029"></a> +<h3 class="section">5.4 Filename database (<code>ls-R</code>)</h3> -<h3 class="section">3.4 Filename database (<code>ls-R</code>)</h3> +<a name="index-filename-database"></a> +<a name="index-database_002c-for-filenames"></a> +<a name="index-externally_002dbuilt-filename-database"></a> -<p><a name="index-filename-database-518"></a><a name="index-database_002c-for-filenames-519"></a><a name="index-externally_002dbuilt-filename-database-520"></a> -Kpathsea goes to some lengths to minimize disk accesses for searches +<p>Kpathsea goes to some lengths to minimize disk accesses for searches (see <a href="#Subdirectory-expansion">Subdirectory expansion</a>). Nevertheless, in practice searching each possible directory in typical TeX installations takes an excessively long time. - - <p>Therefore, Kpathsea can use an externally-built <dfn>filename -database</dfn> file named <samp><span class="file">ls-R</span></samp> that maps files to directories, thus +</p> +<p>Therefore, Kpathsea can use an externally-built <em>filename +database</em> file named <samp>ls-R</samp> that maps files to directories, thus avoiding the need to exhaustively search the disk. - - <p>A second database file <samp><span class="file">aliases</span></samp> allows you to give additional -names to the files listed in <samp><span class="file">ls-R</span></samp>. This can be helpful to adapt +</p> +<p>A second database file <samp>aliases</samp> allows you to give additional +names to the files listed in <samp>ls-R</samp>. This can be helpful to adapt to “8.3” filename conventions in source files. - - <p>The <samp><span class="file">ls-R</span></samp> and <samp><span class="file">aliases</span></samp> features are implemented in the -source file <samp><span class="file">kpathsea/db.c</span></samp>. - -<ul class="menu"> -<li><a accesskey="1" href="#ls_002dR">ls-R</a>: The main filename database. -<li><a accesskey="2" href="#Filename-aliases">Filename aliases</a>: Aliases for those names. -<li><a accesskey="3" href="#Database-format">Database format</a>: Syntax details of the database file. -</ul> - -<div class="node"> -<a name="ls-R"></a> +</p> +<p>The <samp>ls-R</samp> and <samp>aliases</samp> features are implemented in the +source file <samp>kpathsea/db.c</samp>. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#ls_002dR" accesskey="1">ls-R</a>:</td><td> </td><td align="left" valign="top">The main filename database. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Filename-aliases" accesskey="2">Filename aliases</a>:</td><td> </td><td align="left" valign="top">Aliases for those names. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Database-format" accesskey="3">Database format</a>:</td><td> </td><td align="left" valign="top">Syntax details of the database file. +</td></tr> +</table> + + +<hr> <a name="ls_002dR"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Filename-aliases">Filename aliases</a>, -Up: <a rel="up" accesskey="u" href="#Filename-database">Filename database</a> - +<div class="header"> +<p> +Next: <a href="#Filename-aliases" accesskey="n" rel="next">Filename aliases</a>, Up: <a href="#Filename-database" accesskey="u" rel="up">Filename database</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="ls_002dR-1"></a> +<h4 class="subsection">5.4.1 <samp>ls-R</samp></h4> -<h4 class="subsection">3.4.1 <samp><span class="file">ls-R</span></samp></h4> +<a name="index-ls_002dR-database-file"></a> +<a name="index-TEXMFDBS"></a> -<p><a name="index-ls_002dR-_0040r_007bdatabase-file_007d-521"></a><a name="index-TEXMFDBS-522"></a> -As mentioned above, you must name the main filename database -<samp><span class="file">ls-R</span></samp>. You can put one at the root of each TeX installation +<p>As mentioned above, you must name the main filename database +<samp>ls-R</samp>. You can put one at the root of each TeX installation hierarchy you wish to search (<code>$TEXMF</code> by default); most sites have -only one hierarchy. Kpathsea looks for <samp><span class="file">ls-R</span></samp> files along the +only one hierarchy. Kpathsea looks for <samp>ls-R</samp> files along the <code>TEXMFDBS</code> path, so that should presumably match the list of hierarchies. - - <p>The recommended way to create and maintain ‘<samp><span class="samp">ls-R</span></samp>’ is to run the -<code>mktexlsr</code> script, which is installed in ‘<samp><span class="samp">$(bindir)</span></samp>’ -(<samp><span class="file">/usr/local/bin</span></samp> by default). That script goes to some trouble to -follow symbolic links as necessary, etc. It's also invoked by the -distributed ‘<samp><span class="samp">mktex...</span></samp>’ scripts. - - <p><a name="index-ls_002dR_0040r_007b_002c-simplest-build_007d-523"></a>At its simplest, though, you can build <samp><span class="file">ls-R</span></samp> with the command -<pre class="example"> cd <var>/your/texmf/root</var> && ls -LAR ./ >ls-R -</pre> - <p class="noindent"><a name="index-g_t_002d_002dcolor_003dtty-524"></a><a name="index-g_t_002fetc_002fprofile-_0040r_007band-aliases_007d-525"></a>presuming your <code>ls</code> produces the right output format (see the -section below). GNU <code>ls</code>, for example, outputs in this format. -Also presuming your <code>ls</code> hasn't been aliased in a system file -(e.g., <samp><span class="file">/etc/profile</span></samp>) to something problematic, e.g., ‘<samp><span class="samp">ls ---color=tty</span></samp>’. In that case, you will have to disable the alias before -generating <samp><span class="file">ls-R</span></samp>. For the precise definition of the file format, +</p> +<p>The recommended way to create and maintain ‘<samp>ls-R</samp>’ is to run the +<code>mktexlsr</code> script, which is installed in ‘<samp>$(bindir)</samp>’ +(<samp>/usr/local/bin</samp> by default). That script goes to some trouble to +follow symbolic links as necessary, etc. It’s also invoked by the +distributed ‘<samp>mktex…</samp>’ scripts. +</p> +<a name="index-ls_002dR_002c-simplest-build"></a> +<p>At its simplest, though, you can build <samp>ls-R</samp> with the command +</p><div class="example"> +<pre class="example">cd <var>/your/texmf/root</var> && ls -LAR ./ >ls-R +</pre></div> + +<a name="index-_002d_002dcolor_003dtty"></a> +<a name="index-_002fetc_002fprofile-and-aliases"></a> +<p>presuming your <code>ls</code> produces the right output format (see the +section below). GNU <code>ls</code>, for example, outputs in this format. +Also presuming your <code>ls</code> hasn’t been aliased in a system file +(e.g., <samp>/etc/profile</samp>) to something problematic, e.g., ‘<samp>ls +--color=tty</samp>’. In that case, you will have to disable the alias before +generating <samp>ls-R</samp>. For the precise definition of the file format, see <a href="#Database-format">Database format</a>. - - <p>Regardless of whether you use the supplied script or your own, you will +</p> +<p>Regardless of whether you use the supplied script or your own, you will almost certainly want to invoke it via <code>cron</code>, so when you make changes in the installed files (say if you install a new LaTeX -package), <samp><span class="file">ls-R</span></samp> will be automatically updated. - - <p><a name="index-g_t_002dA-_0040r_007boption-to-_0040code_007bls_007d_007d-526"></a><a name="index-dot-files-527"></a><a name="index-g_t_002e-_0040r_007bfiles_007d-528"></a><a name="index-g_t_002e-_0040r_007bdirectories_002c-ignored_007d-529"></a><a name="index-g_t_002etex-_0040r_007bfile_002c-included-in-_0040file_007bls_002dR_007d_007d-530"></a>The ‘<samp><span class="samp">-A</span></samp>’ option to <code>ls</code> includes files beginning with ‘<samp><span class="samp">.</span></samp>’ -(except for <samp><span class="file">.</span></samp> and <samp><span class="file">..</span></samp>), such as the file <samp><span class="file">.tex</span></samp> +package), <samp>ls-R</samp> will be automatically updated. +</p> +<a name="index-_002dA-option-to-ls"></a> +<a name="index-dot-files"></a> +<a name="index-_002e-files"></a> +<a name="index-_002e-directories_002c-ignored"></a> +<a name="index-_002etex-file_002c-included-in-ls_002dR"></a> +<p>The ‘<samp>-A</samp>’ option to <code>ls</code> includes files beginning with ‘<samp>.</samp>’ +(except for <samp>.</samp> and <samp>..</samp>), such as the file <samp>.tex</samp> included with the LaTeX tools package. (On the other hand, -<em>directories</em> whose names begin with ‘<samp><span class="samp">.</span></samp>’ are always ignored.) - - <p><a name="index-symbolic-links_002c-and-_0040file_007bls_002dR_007d-531"></a><a name="index-g_t_002dL-_0040r_007boption-to-_0040code_007bls_007d_007d-532"></a>If your system does not support symbolic links, omit the ‘<samp><span class="samp">-L</span></samp>’. - - <p><a name="index-automounter_002c-and-_0040file_007bls_002dR_007d-533"></a><a name="index-NFS-and-_0040file_007bls_002dR_007d-534"></a><code>ls -LAR </code><var>/your/texmf/root</var> will also work. But using -‘<samp><span class="samp">./</span></samp>’ avoids embedding absolute pathnames, so the hierarchy can be +<em>directories</em> whose names begin with ‘<samp>.</samp>’ are always ignored.) +</p> +<a name="index-symbolic-links_002c-and-ls_002dR"></a> +<a name="index-_002dL-option-to-ls"></a> +<p>If your system does not support symbolic links, omit the ‘<samp>-L</samp>’. +</p> +<a name="index-automounter_002c-and-ls_002dR"></a> +<a name="index-NFS-and-ls_002dR"></a> +<p><code>ls -LAR <var>/your/texmf/root</var></code> will also work. But using +‘<samp>./</samp>’ avoids embedding absolute pathnames, so the hierarchy can be easily transported. It also avoids possible trouble with automounters or other network filesystem conventions. - - <p><a name="index-warning-about-unusable-_0040file_007bls_002dR_007d-535"></a><a name="index-unusable-_0040file_007bls_002dR_007d-warning-536"></a>Kpathsea warns you if it finds an <samp><span class="file">ls-R</span></samp> file, but the file does +</p> +<a name="index-warning-about-unusable-ls_002dR"></a> +<a name="index-unusable-ls_002dR-warning"></a> +<p>Kpathsea warns you if it finds an <samp>ls-R</samp> file, but the file does not contain any usable entries. The usual culprit is running plain -‘<samp><span class="samp">ls -R</span></samp>’ instead of ‘<samp><span class="samp">ls -LR ./</span></samp>’ or ‘<samp><span class="samp">ls -R -</span><var>/your/texmf/root</var></samp>’. Another possibility is some system directory -name starting with a ‘<samp><span class="samp">.</span></samp>’ (perhaps if you are using AFS); Kpathsea +‘<samp>ls -R</samp>’ instead of ‘<samp>ls -LR ./</samp>’ or ‘<samp>ls -R +<var>/your/texmf/root</var></samp>’. Another possibility is some system directory +name starting with a ‘<samp>.</samp>’ (perhaps if you are using AFS); Kpathsea ignores everything under such directories. - - <p><a name="index-g_t_0021_0021-_0040r_007bin-path-specifications_007d-537"></a><a name="index-disk-searching_002c-avoiding-538"></a>Because the database may be out-of-date for a particular run, if a file +</p> +<a name="index-_0021_0021-in-path-specifications"></a> +<a name="index-disk-searching_002c-avoiding"></a> +<p>Because the database may be out-of-date for a particular run, if a file is not found in the database, by default Kpathsea goes ahead and -searches the disk. If a particular path element begins with ‘<samp><span class="samp">!!</span></samp>’, +searches the disk. If a particular path element begins with ‘<samp>!!</samp>’, however, <em>only</em> the database will be searched for that element, never the disk. If the database does not exist, nothing will be searched. Because this can surprise users (“I see the font -<samp><span class="file">foo.tfm</span></samp> when I do an <code>ls</code>; why can't Dvips find it?”), it +<samp>foo.tfm</samp> when I do an <code>ls</code>; why can’t Dvips find it?”), it is not in any of the default search paths. +</p> -<div class="node"> +<hr> <a name="Filename-aliases"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Database-format">Database format</a>, -Previous: <a rel="previous" accesskey="p" href="#ls_002dR">ls-R</a>, -Up: <a rel="up" accesskey="u" href="#Filename-database">Filename database</a> - +<div class="header"> +<p> +Next: <a href="#Database-format" accesskey="n" rel="next">Database format</a>, Previous: <a href="#ls_002dR" accesskey="p" rel="prev">ls-R</a>, Up: <a href="#Filename-database" accesskey="u" rel="up">Filename database</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Filename-aliases-1"></a> +<h4 class="subsection">5.4.2 Filename aliases</h4> -<h4 class="subsection">3.4.2 Filename aliases</h4> +<a name="index-filename-aliases"></a> +<a name="index-aliases_002c-for-filenames"></a> -<p><a name="index-filename-aliases-539"></a><a name="index-aliases_002c-for-filenames-540"></a> -In some circumstances, you may wish to find a file under several names. +<p>In some circumstances, you may wish to find a file under several names. For example, suppose a TeX document was created using a DOS system -and tries to read <samp><span class="file">longtabl.sty</span></samp>. But now it's being run on a Unix -system, and the file has its original name, <samp><span class="file">longtable.sty</span></samp>. The -file won't be found. You need to give the actual file -<samp><span class="file">longtable.sty</span></samp> an alias ‘<samp><span class="samp">longtabl.sty</span></samp>’. - -<!-- As another example, suppose you are creating a @TeX{} distribution on a --> -<!-- CD-ROM or a DOS system; then the file @file{mf.base} gets stored as --> -<!-- @file{mf.bas}. But Metafont on Unix wants to find @file{mf.base}. Here --> -<!-- you need to give the actual file @file{mf.bas} an alias @samp{mf.base}. --> - <p>You can handle this by creating a file <samp><span class="file">aliases</span></samp> as a companion to -the <samp><span class="file">ls-R</span></samp> for the hierarchy containing the file in question. (You -must have an <samp><span class="file">ls-R</span></samp> for the alias feature to work.) - - <p>The format of <samp><span class="file">aliases</span></samp> is simple: two whitespace-separated words -per line; the first is the real name <samp><span class="file">longtable.sty</span></samp>, and second is -the alias (<samp><span class="file">longtabl.sty</span></samp>). These must be base filenames, with no -directory components. <samp><span class="file">longtable.sty</span></samp> must be in the sibling -<samp><span class="file">ls-R</span></samp>. - - <p>Also, blank lines and lines starting with ‘<samp><span class="samp">%</span></samp>’ or ‘<samp><span class="samp">#</span></samp>’ are -ignored in <samp><span class="file">aliases</span></samp>, to allow for comments. - - <p>If a real file <samp><span class="file">longtabl.sty</span></samp> exists, it is used regardless of any +and tries to read <samp>longtabl.sty</samp>. But now it’s being run on a Unix +system, and the file has its original name, <samp>longtable.sty</samp>. The +file won’t be found. You need to give the actual file +<samp>longtable.sty</samp> an alias ‘<samp>longtabl.sty</samp>’. +</p> + +<p>You can handle this by creating a file <samp>aliases</samp> as a companion to +the <samp>ls-R</samp> for the hierarchy containing the file in question. (You +must have an <samp>ls-R</samp> for the alias feature to work.) +</p> +<p>The format of <samp>aliases</samp> is simple: two whitespace-separated words +per line; the first is the real name <samp>longtable.sty</samp>, and second is +the alias (<samp>longtabl.sty</samp>). These must be base filenames, with no +directory components. <samp>longtable.sty</samp> must be in the sibling +<samp>ls-R</samp>. +</p> +<p>Also, blank lines and lines starting with ‘<samp>%</samp>’ or ‘<samp>#</samp>’ are +ignored in <samp>aliases</samp>, to allow for comments. +</p> +<p>If a real file <samp>longtabl.sty</samp> exists, it is used regardless of any aliases. +</p> -<div class="node"> +<hr> <a name="Database-format"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Filename-aliases">Filename aliases</a>, -Up: <a rel="up" accesskey="u" href="#Filename-database">Filename database</a> - +<div class="header"> +<p> +Previous: <a href="#Filename-aliases" accesskey="p" rel="prev">Filename aliases</a>, Up: <a href="#Filename-database" accesskey="u" rel="up">Filename database</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Database-format-1"></a> +<h4 class="subsection">5.4.3 Database format</h4> -<h4 class="subsection">3.4.3 Database format</h4> +<a name="index-format-of-external-database"></a> +<a name="index-database_002c-format-of"></a> -<p><a name="index-format-of-external-database-541"></a><a name="index-database_002c-format-of-542"></a> -The “database” read by Kpathsea is a line-oriented file of plain +<p>The “database” read by Kpathsea is a line-oriented file of plain text. The format is that generated by GNU (and most other) <code>ls</code> -programs given the ‘<samp><span class="samp">-R</span></samp>’ option, as follows. - - <ul> -<li>Blank lines are ignored. +programs given the ‘<samp>-R</samp>’ option, as follows. +</p> +<ul> +<li> Blank lines are ignored. - <li>If a line begins with ‘<samp><span class="samp">/</span></samp>’ or ‘<samp><span class="samp">./</span></samp>’ or ‘<samp><span class="samp">../</span></samp>’ and ends with -a colon, it's the name of a directory. (‘<samp><span class="samp">../</span></samp>’ lines aren't useful, +</li><li> If a line begins with ‘<samp>/</samp>’ or ‘<samp>./</samp>’ or ‘<samp>../</samp>’ and ends with +a colon, it’s the name of a directory. (‘<samp>../</samp>’ lines aren’t useful, however, and should not be generated.) - <li>All other lines define entries in the most recently seen directory. -<tt>/</tt>'s in such lines will produce possibly-strange results. +</li><li> All other lines define entries in the most recently seen directory. +<tt>/</tt>’s in such lines will produce possibly-strange results. - <li>Files with no preceding directory line are ignored. -</ul> +</li><li> Files with no preceding directory line are ignored. +</li></ul> - <p>For example, here's the first few lines of <samp><span class="file">ls-R</span></samp> (which totals +<p>For example, here’s the first few lines of <samp>ls-R</samp> (which totals about 30K bytes) on my system: - -<pre class="example"> bibtex - dvips - fonts - ls-R - metafont - metapost - tex - web2c - - ./bibtex: - bib - bst - doc - - ./bibtex/bib: - asi.bib - btxdoc.bib - ... -</pre> - <div class="node"> +</p> +<div class="example"> +<pre class="example">bibtex +dvips +fonts +ls-R +metafont +metapost +tex +web2c + +./bibtex: +bib +bst +doc + +./bibtex/bib: +asi.bib +btxdoc.bib +… +</pre></div> + + +<hr> <a name="Invoking-kpsewhich"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Filename-database">Filename database</a>, -Up: <a rel="up" accesskey="u" href="#Path-searching">Path searching</a> - +<div class="header"> +<p> +Previous: <a href="#Filename-database" accesskey="p" rel="prev">Filename database</a>, Up: <a href="#Path-searching" accesskey="u" rel="up">Path searching</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="kpsewhich_003a-Standalone-path-searching"></a> +<h3 class="section">5.5 <code>kpsewhich</code>: Standalone path searching</h3> -<h3 class="section">3.5 <code>kpsewhich</code>: Standalone path searching</h3> +<a name="index-kpsewhich"></a> +<a name="index-path-searching_002c-standalone"></a> +<a name="index-standalone-path-searching"></a> -<p><a name="index-kpsewhich-543"></a><a name="index-path-searching_002c-standalone-544"></a><a name="index-standalone-path-searching-545"></a> -The Kpsewhich program exercises the path searching functionality +<p>The Kpsewhich program exercises the path searching functionality independent of any particular application. This can also be useful as a sort of <code>find</code> program to locate files in your TeX hierarchies, perhaps in administrative scripts. It is used heavily in the -distributed ‘<samp><span class="samp">mktex...</span></samp>’ scripts. - - <p>Synopsis: - -<pre class="example"> kpsewhich <var>option</var>... <var>filename</var>... -</pre> - <p>The options and filename(s) to look up can be intermixed. -Options can start with either ‘<samp><span class="samp">-</span></samp>’ or ‘<samp><span class="samp">--</span></samp>’, and any unambiguous +distributed ‘<samp>mktex…</samp>’ scripts. +</p> +<p>Synopsis: +</p> +<div class="example"> +<pre class="example">kpsewhich <var>option</var>… <var>filename</var>… +</pre></div> + +<p>The options and filename(s) to look up can be intermixed. +Options can start with either ‘<samp>-</samp>’ or ‘<samp>--</samp>’, and any unambiguous abbreviation is accepted. - -<ul class="menu"> -<li><a accesskey="1" href="#Path-searching-options">Path searching options</a>: Changing the mode, resolution, etc. -<li><a accesskey="2" href="#Specially_002drecognized-files">Specially-recognized files</a>: Default formats for texmf.cnf, etc. -<li><a accesskey="3" href="#Auxiliary-tasks">Auxiliary tasks</a>: Path and variable expansion. -<li><a accesskey="4" href="#Standard-options">Standard options</a>: --help and --version. -</ul> - -<div class="node"> +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Path-searching-options" accesskey="1">Path searching options</a>:</td><td> </td><td align="left" valign="top">Changing the mode, resolution, etc. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Specially_002drecognized-files" accesskey="2">Specially-recognized files</a>:</td><td> </td><td align="left" valign="top">Default formats for texmf.cnf, etc. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Auxiliary-tasks" accesskey="3">Auxiliary tasks</a>:</td><td> </td><td align="left" valign="top">Path and variable expansion. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Standard-options" accesskey="4">Standard options</a>:</td><td> </td><td align="left" valign="top">–help and –version. +</td></tr> +</table> + + +<hr> <a name="Path-searching-options"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Specially_002drecognized-files">Specially-recognized files</a>, -Up: <a rel="up" accesskey="u" href="#Invoking-kpsewhich">Invoking kpsewhich</a> - +<div class="header"> +<p> +Next: <a href="#Specially_002drecognized-files" accesskey="n" rel="next">Specially-recognized files</a>, Up: <a href="#Invoking-kpsewhich" accesskey="u" rel="up">Invoking kpsewhich</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Path-searching-options-1"></a> +<h4 class="subsection">5.5.1 Path searching options</h4> -<h4 class="subsection">3.5.1 Path searching options</h4> +<a name="index-path-searching-options"></a> -<p><a name="index-path-searching-options-546"></a> -Kpsewhich looks up each non-option argument on the command line as a +<p>Kpsewhich looks up each non-option argument on the command line as a filename, and returns the first file found. - - <p>Various options alter the path searching behavior: - - <dl> -<dt>‘<samp><span class="samp">--all</span></samp>’<dd><a name="index-g_t_002d_002dall-547"></a><a name="index-all-matches_002c-finding-548"></a>Report all matches found, one per line. By default, if there is more +</p> +<p>Various options alter the path searching behavior: +</p> +<dl compact="compact"> +<dt>‘<samp>--all</samp>’</dt> +<dd><a name="index-_002d_002dall"></a> +<a name="index-all-matches_002c-finding"></a> +<p>Report all matches found, one per line. By default, if there is more than one match, just one will be reported (chosen effectively at random). - - <br><dt>‘<samp><span class="samp">--dpi=</span><var>num</var></samp>’<dd><a name="index-g_t_002d_002ddpi_003d_0040var_007bnum_007d-549"></a><a name="index-g_t_002dD-_0040var_007bnum_007d-550"></a><a name="index-resolution_002c-setting-551"></a>Set the resolution to <var>num</var>; this only affects ‘<samp><span class="samp">gf</span></samp>’ and -‘<samp><span class="samp">pk</span></samp>’ lookups. ‘<samp><span class="samp">-D</span></samp>’ is a synonym, for compatibility with +</p> +</dd> +<dt>‘<samp>--dpi=<var>num</var></samp>’</dt> +<dd><a name="index-_002d_002ddpi_003dnum"></a> +<a name="index-_002dD-num"></a> +<a name="index-resolution_002c-setting"></a> +<p>Set the resolution to <var>num</var>; this only affects ‘<samp>gf</samp>’ and +‘<samp>pk</samp>’ lookups. ‘<samp>-D</samp>’ is a synonym, for compatibility with Dvips. Default is 600. - - <br><dt>‘<samp><span class="samp">--engine=</span><var>name</var></samp>’<dd><a name="index-g_t_002d_002dengine_003d_0040var_007bname_007d-552"></a><a name="index-engine-name-553"></a>Set the engine name to <var>name</var>. By default it is not set. The +</p> +</dd> +<dt>‘<samp>--engine=<var>name</var></samp>’</dt> +<dd><a name="index-_002d_002dengine_003dname"></a> +<a name="index-engine-name"></a> +<p>Set the engine name to <var>name</var>. By default it is not set. The engine name is used in some search paths to allow files with the same name but used by different engines to coexist. - - <p>In particular, since the memory dump files -(<samp><span class="file">.fmt</span></samp>/<samp><span class="file">.base</span></samp>/<samp><span class="file">.mem</span></samp>) are now stored in -subdirectories named for the engine (<samp><span class="file">tex</span></samp>, <samp><span class="file">pdftex</span></samp>, -<samp><span class="file">xetex</span></samp>, etc.), you must specify an engine name in order to find -them. For example, <samp><span class="file">cont-en.fmt</span></samp> typically exists for both -<samp><span class="file">pdftex</span></samp> and <samp><span class="file">xetex</span></samp>. With the default path settings, you -can use ‘<samp><span class="samp">--engine=/</span></samp>’ to look for any dump file, regardless of -engine; if a dump file exists for more than one engine, it's -indeterminate which one is returned. (The ‘<samp><span class="samp">/</span></samp>’ ends up specifying +</p> +<p>In particular, since the memory dump files +(<samp>.fmt</samp>/<samp>.base</samp>/<samp>.mem</samp>) are now stored in +subdirectories named for the engine (<samp>tex</samp>, <samp>pdftex</samp>, +<samp>xetex</samp>, etc.), you must specify an engine name in order to find +them. For example, <samp>cont-en.fmt</samp> typically exists for both +<samp>pdftex</samp> and <samp>xetex</samp>. With the default path settings, you +can use ‘<samp>--engine=/</samp>’ to look for any dump file, regardless of +engine; if a dump file exists for more than one engine, it’s +indeterminate which one is returned. (The ‘<samp>/</samp>’ ends up specifying a normal recursive search along the path where the dumps are stored, -namely ‘<samp><span class="samp">$TEXMF/web2c{/$engine,}</span></samp>’.) - - <br><dt>‘<samp><span class="samp">--format=</span><var>name</var></samp>’<dd><a name="index-g_t_002d_002dformat_003d_0040var_007bname_007d-554"></a>Set the format for lookup to <var>name</var>. By default, the format is -guessed from the filename, with ‘<samp><span class="samp">tex</span></samp>’ being used if nothing else +namely ‘<samp>$TEXMF/web2c{/$engine,}</samp>’.) +</p> +</dd> +<dt>‘<samp>--format=<var>name</var></samp>’</dt> +<dd><a name="index-_002d_002dformat_003dname"></a> +<p>Set the format for lookup to <var>name</var>. By default, the format is +guessed from the filename, with ‘<samp>tex</samp>’ being used if nothing else fits. The recognized filename extensions (including any leading -‘<samp><span class="samp">.</span></samp>’) are also allowable <var>name</var>s. - - <p>All formats also have a name, which is the only way to specify formats +‘<samp>.</samp>’) are also allowable <var>name</var>s. +</p> +<p>All formats also have a name, which is the only way to specify formats with no associated suffix. For example, for Dvips configuration files -you can use ‘<samp><span class="samp">--format="dvips config"</span></samp>’. (The quotes are for the +you can use ‘<samp>--format="dvips config"</samp>’. (The quotes are for the sake of the shell.) - - <p>Here's the current list of recognized names and the associated suffixes. +</p> +<p>Here’s the current list of recognized names and the associated suffixes. See <a href="#Supported-file-formats">Supported file formats</a>, for more information on each of these. - - <p>The strings in parentheses are abbreviations recognized only by +</p> +<p>The strings in parentheses are abbreviations recognized only by <code>kpsewhich</code> (not the underlying library calls). They are provided when it would otherwise require an argument containing a space to specify the format, to simplify quoting of calls from shells. - - <pre class="example"> gf: gf - pk: pk - bitmap font (bitmapfont): - tfm: .tfm - afm: .afm - base: .base - bib: .bib - bst: .bst - cnf: .cnf - ls-R: ls-R ls-r - fmt: .fmt - map: .map - mem: .mem - mf: .mf - mfpool: .pool - mft: .mft - mp: .mp - mppool: .pool - MetaPost support (mpsupport): - ocp: .ocp - ofm: .ofm .tfm - opl: .opl .pl - otp: .otp - ovf: .ovf .vf - ovp: .ovp .vpl - graphic/figure: .eps .epsi - tex: .tex .sty .cls .fd .aux .bbl .def .clo .ldf - TeX system documentation (doc): - texpool: .pool - TeX system sources (source): .dtx .ins - PostScript header: .pro - Troff fonts (trofffont): - type1 fonts: .pfa .pfb - vf: .vf - dvips config (dvipsconfig): - ist: .ist - truetype fonts: .ttf .ttc .TTF .TTC .dfont - type42 fonts: .t42 .T42 - web2c files (web2c): - other text files (othertext): - other binary files (otherbin): - misc fonts (miscfont): - web: .web .ch - cweb: .w .web .ch - enc files: .enc - cmap files (cmap): - subfont definition files: .sfd - opentype fonts: .otf - pdftex config (pdftexconfig): - lig files: .lig - texmfscripts: - lua: .luc .luctex .texluc .lua .luatex .texlua - font feature files: .fea - cid maps: .cid .cidmap - mlbib: .mlbib .bib - mlbst: .mlbst .bst - clua: .dll .so - ris: .ris - bltxml: .bltxml -</pre> - <p>This option and ‘<samp><span class="samp">--path</span></samp>’ are mutually exclusive. - - <br><dt>‘<samp><span class="samp">--interactive</span></samp>’<dd><a name="index-g_t_002d_002dinteractive-555"></a><a name="index-interactive-query-556"></a>After processing the command line, read additional filenames to look up +</p> +<div class="example"> +<pre class="example">gf: gf +pk: pk +bitmap font (bitmapfont): +tfm: .tfm +afm: .afm +base: .base +bib: .bib +bst: .bst +cnf: .cnf +ls-R: ls-R ls-r +fmt: .fmt +map: .map +mem: .mem +mf: .mf +mfpool: .pool +mft: .mft +mp: .mp +mppool: .pool +MetaPost support (mpsupport): +ocp: .ocp +ofm: .ofm .tfm +opl: .opl .pl +otp: .otp +ovf: .ovf .vf +ovp: .ovp .vpl +graphic/figure: .eps .epsi +tex: .tex .sty .cls .fd .aux .bbl .def .clo .ldf +TeX system documentation (doc): +texpool: .pool +TeX system sources (source): .dtx .ins +PostScript header: .pro +Troff fonts (trofffont): +type1 fonts: .pfa .pfb +vf: .vf +dvips config (dvipsconfig): +ist: .ist +truetype fonts: .ttf .ttc .TTF .TTC .dfont +type42 fonts: .t42 .T42 +web2c files (web2c): +other text files (othertext): +other binary files (otherbin): +misc fonts (miscfont): +web: .web .ch +cweb: .w .web .ch +enc files: .enc +cmap files (cmap): +subfont definition files: .sfd +opentype fonts: .otf +pdftex config (pdftexconfig): +lig files: .lig +texmfscripts: +lua: .lua .luatex .luc .luctex .texlua .texluc .tlu +font feature files: .fea +cid maps: .cid .cidmap +mlbib: .mlbib .bib +mlbst: .mlbst .bst +clua: .dll .so +ris: .ris +bltxml: .bltxml +</pre></div> + +<p>This option and ‘<samp>--path</samp>’ are mutually exclusive. +</p> +</dd> +<dt>‘<samp>--interactive</samp>’</dt> +<dd><a name="index-_002d_002dinteractive"></a> +<a name="index-interactive-query"></a> +<p>After processing the command line, read additional filenames to look up from standard input. - - <br><dt>‘<samp><span class="samp">--mktex=</span><var>filetype</var></samp>’<dt>‘<samp><span class="samp">--no-mktex=</span><var>filetype</var></samp>’<dd><a name="index-g_t_002d_002dmktex_003d_0040var_007bfiletype_007d-557"></a><a name="index-g_t_002d_002dno_002dmktex_003d_0040var_007bfiletype_007d-558"></a>Turn on or off the ‘<samp><span class="samp">mktex</span></samp>’ script associated with <var>filetype</var>. -Usual values for <var>filetype</var> are ‘<samp><span class="samp">pk</span></samp>’, ‘<samp><span class="samp">mf</span></samp>’, ‘<samp><span class="samp">tex</span></samp>’, -and ‘<samp><span class="samp">tfm</span></samp>’. By default, all are off in Kpsewhich, even if they +</p> +</dd> +<dt>‘<samp>--mktex=<var>filetype</var></samp>’</dt> +<dt>‘<samp>--no-mktex=<var>filetype</var></samp>’</dt> +<dd><a name="index-_002d_002dmktex_003dfiletype"></a> +<a name="index-_002d_002dno_002dmktex_003dfiletype"></a> +<p>Turn on or off the ‘<samp>mktex</samp>’ script associated with <var>filetype</var>. +Usual values for <var>filetype</var> are ‘<samp>pk</samp>’, ‘<samp>mf</samp>’, ‘<samp>tex</samp>’, +and ‘<samp>tfm</samp>’. By default, all are off in Kpsewhich, even if they are enabled for TeX. This option implies setting <code>--must-exist</code>. See <a href="#mktex-scripts">mktex scripts</a>. - - <br><dt>‘<samp><span class="samp">--mode=</span><var>string</var></samp>’<dd><a name="index-g_t_002d_002dmode_003d_0040var_007bstring_007d-559"></a>Set the mode name to <var>string</var>; this also only affects ‘<samp><span class="samp">gf</span></samp>’ and -‘<samp><span class="samp">pk</span></samp>’ lookups. No default: any mode will be found. See <a href="#mktex-script-arguments">mktex script arguments</a>. - - <br><dt>‘<samp><span class="samp">--must-exist</span></samp>’<dd><a name="index-g_t_002d_002dmust_002dexist-560"></a>Do everything possible to find the files, notably including searching -the disk and running the ‘<samp><span class="samp">mktex</span></samp>’ scripts. By default, only the -<samp><span class="file">ls-R</span></samp> database is checked, in the interest of efficiency. - - <br><dt>‘<samp><span class="samp">--path=</span><var>string</var></samp>’<dd><a name="index-g_t_002d_002dpath_003d_0040var_007bstring_007d-561"></a>Search along the path <var>string</var> (colon-separated as usual), instead -of guessing the search path from the filename. ‘<samp><span class="samp">//</span></samp>’ and all the +</p> +</dd> +<dt>‘<samp>--mode=<var>string</var></samp>’</dt> +<dd><a name="index-_002d_002dmode_003dstring"></a> +<p>Set the mode name to <var>string</var>; this also only affects ‘<samp>gf</samp>’ and +‘<samp>pk</samp>’ lookups. No default: any mode will be found. See <a href="#mktex-script-arguments">mktex script arguments</a>. +</p> +</dd> +<dt>‘<samp>--must-exist</samp>’</dt> +<dd><a name="index-_002d_002dmust_002dexist"></a> +<p>Do everything possible to find the files, notably including searching +the disk and running the ‘<samp>mktex</samp>’ scripts. By default, only the +<samp>ls-R</samp> database is checked, in the interest of efficiency. +</p> +</dd> +<dt>‘<samp>--path=<var>string</var></samp>’</dt> +<dd><a name="index-_002d_002dpath_003dstring"></a> +<p>Search along the path <var>string</var> (colon-separated as usual), instead +of guessing the search path from the filename. ‘<samp>//</samp>’ and all the usual expansions are supported (see <a href="#Path-expansion">Path expansion</a>). This option -and ‘<samp><span class="samp">--format</span></samp>’ are mutually exclusive. To output the complete +and ‘<samp>--format</samp>’ are mutually exclusive. To output the complete directory expansion of a path, instead of doing a one-shot lookup, see -‘<samp><span class="samp">--expand-path</span></samp>’ and ‘<samp><span class="samp">--show-path</span></samp>’ in the following section. - - <br><dt>‘<samp><span class="samp">--progname=</span><var>name</var></samp>’<dd><a name="index-g_t_002d_002dprogname_003d_0040var_007bname_007d-562"></a>Set the program name to <var>name</var>; default is ‘<samp><span class="samp">kpsewhich</span></samp>’. This -can affect the search paths via the ‘<samp><span class="samp">.</span><var>prognam</var></samp>’ feature in +‘<samp>--expand-path</samp>’ and ‘<samp>--show-path</samp>’ in the following section. +</p> +</dd> +<dt>‘<samp>--progname=<var>name</var></samp>’</dt> +<dd><a name="index-_002d_002dprogname_003dname"></a> +<p>Set the program name to <var>name</var>; default is ‘<samp>kpsewhich</samp>’. This +can affect the search paths via the ‘<samp>.<var>prognam</var></samp>’ feature in configuration files (see <a href="#Config-files">Config files</a>). - - <br><dt>‘<samp><span class="samp">--safe-in-name=</span><var>name</var></samp>’<dt>‘<samp><span class="samp">--safe-out-name=</span><var>name</var></samp>’<dd><a name="index-g_t_002d_002dsafe_002din_002dname_003d_0040var_007bname_007d-563"></a><a name="index-g_t_002d_002dsafe_002dout_002dname_003d_0040var_007bname_007d-564"></a>Exit successfully if <var>name</var> is safe to open for reading or -writing, respectively, else unsuccessfully. No output is written. +</p> +</dd> +<dt>‘<samp>--safe-in-name=<var>name</var></samp>’</dt> +<dt>‘<samp>--safe-out-name=<var>name</var></samp>’</dt> +<dd><a name="index-_002d_002dsafe_002din_002dname_003dname"></a> +<a name="index-_002d_002dsafe_002dout_002dname_003dname"></a> +<p>Exit successfully if <var>name</var> is safe to open for reading or +writing, respectively, else unsuccessfully. No output is written. These tests take account of the related Kpathsea configuration settings (see <a href="#Calling-sequence">Calling sequence</a>). - - <br><dt>‘<samp><span class="samp">--subdir=</span><var>string</var></samp>’<dd><a name="index-g_t_002d_002dsubdir_003d_0040var_007bstring_007d-565"></a>Report only those matches whose directory part <em>ends</em> with +</p> +</dd> +<dt>‘<samp>--subdir=<var>string</var></samp>’</dt> +<dd><a name="index-_002d_002dsubdir_003dstring"></a> +<p>Report only those matches whose directory part <em>ends</em> with <var>string</var> (compared literally, except case is ignored on a case-insensitive operating system). For example, suppose there are two matches for a given name: - - <pre class="example"> kpsewhich foo.sty - ⇒ /some/where/foo.sty - /another/place/foo.sty -</pre> - <p class="noindent">Then we can narrow the result to what we are interested in with -<samp><span class="option">--subdir</span></samp>: - - <pre class="example"> kpsewhich --subdir=where foo.sty - ⇒ /some/where/foo.sty - - kpsewhich --subdir=place foo.sty - ⇒ /another/place/foo.sty -</pre> - <p class="noindent">The string to match must be at the end of the directory part of the +</p> +<div class="example"> +<pre class="example">kpsewhich foo.sty +⇒ /some/where/foo.sty +/another/place/foo.sty +</pre></div> + +<p>Then we can narrow the result to what we are interested in with +<samp>--subdir</samp>: +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=where foo.sty +⇒ /some/where/foo.sty + +kpsewhich --subdir=place foo.sty +⇒ /another/place/foo.sty +</pre></div> + +<p>The string to match must be at the end of the directory part of the match, and it is taken literally, with no pattern matching: - - <pre class="example"> kpsewhich --subdir=another foo.sty - ⇒ -</pre> - <p class="noindent">The string to match may cross directory components: - - <pre class="example"> kpsewhich --subdir=some/where foo.sty - ⇒ /some/where/foo.sty -</pre> - <p class="noindent"><samp><span class="option">--subdir</span></samp> implies <samp><span class="option">--all</span></samp>; if there is more than one -match, they will all be reported (in our example, both ‘<samp><span class="samp">where</span></samp>’ -and ‘<samp><span class="samp">place</span></samp>’ end in ‘<samp><span class="samp">e</span></samp>’): - - <pre class="example"> kpsewhich --subdir=e - ⇒ /some/where/foo.sty - /another/place/foo.sty -</pre> - <p class="noindent">Because of the above rules, the presence of a leading ‘<samp><span class="samp">/</span></samp>’ is +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=another foo.sty +⇒ +</pre></div> + +<p>The string to match may cross directory components: +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=some/where foo.sty +⇒ /some/where/foo.sty +</pre></div> + +<p><samp>--subdir</samp> implies <samp>--all</samp>; if there is more than one +match, they will all be reported (in our example, both ‘<samp>where</samp>’ +and ‘<samp>place</samp>’ end in ‘<samp>e</samp>’): +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=e +⇒ /some/where/foo.sty +/another/place/foo.sty +</pre></div> + +<p>Because of the above rules, the presence of a leading ‘<samp>/</samp>’ is important, since it “anchors” the match to a full component name: +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=/lace foo.sty +⇒ +</pre></div> - <pre class="example"> kpsewhich --subdir=/lace foo.sty - ⇒ -</pre> - <p class="noindent">However, a trailing ‘<samp><span class="samp">/</span></samp>’ is immaterial (and ignored), since the +<p>However, a trailing ‘<samp>/</samp>’ is immaterial (and ignored), since the match always takes place at the end of the directory part: +</p> +<div class="example"> +<pre class="example">kpsewhich --subdir=lace/ foo.sty +⇒ /another/place/foo.sty +</pre></div> - <pre class="example"> kpsewhich --subdir=lace/ foo.sty - ⇒ /another/place/foo.sty -</pre> - <p class="noindent">The purpose of these rules is to make it convenient to find results +<p>The purpose of these rules is to make it convenient to find results only within a particular area of the tree. For instance, a given -script named <samp><span class="file">foo.lua</span></samp> might exist within both -<samp><span class="file">texmf-dist/scripts/pkg1/</span></samp> and <samp><span class="file">texmf-dist/scripts/pkg2/</span></samp>. -By specifying, say, ‘<samp><span class="samp">--subdir=/pkg1</span></samp>’, you can be sure of getting +script named <samp>foo.lua</samp> might exist within both +<samp>texmf-dist/scripts/pkg1/</samp> and <samp>texmf-dist/scripts/pkg2/</samp>. +By specifying, say, ‘<samp>--subdir=/pkg1</samp>’, you can be sure of getting the one you are interested in. +</p> +<p>We only match at the end because a site might happen to install TeX +in <samp>/some/coincidental/pkg1/path/</samp>, and we wouldn’t want to match +<samp>texmf-dist/scripts/pkg2/</samp> that when searching for ‘<samp>/pkg1</samp>’. +</p> +</dd> +</dl> - <p>We only match at the end because a site might happen to install TeX -in <samp><span class="file">/some/coincidental/pkg1/path/</span></samp>, and we wouldn't want to match -<samp><span class="file">texmf-dist/scripts/pkg2/</span></samp> that when searching for ‘<samp><span class="samp">/pkg1</span></samp>’. - - </dl> -<div class="node"> -<a name="Specially-recognized-files"></a> +<hr> <a name="Specially_002drecognized-files"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Auxiliary-tasks">Auxiliary tasks</a>, -Previous: <a rel="previous" accesskey="p" href="#Path-searching-options">Path searching options</a>, -Up: <a rel="up" accesskey="u" href="#Invoking-kpsewhich">Invoking kpsewhich</a> - +<div class="header"> +<p> +Next: <a href="#Auxiliary-tasks" accesskey="n" rel="next">Auxiliary tasks</a>, Previous: <a href="#Path-searching-options" accesskey="p" rel="prev">Path searching options</a>, Up: <a href="#Invoking-kpsewhich" accesskey="u" rel="up">Invoking kpsewhich</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Specially_002drecognized-files-for-kpsewhich"></a> +<h4 class="subsection">5.5.2 Specially-recognized files for <code>kpsewhich</code></h4> -<h4 class="subsection">3.5.2 Specially-recognized files for <samp><span class="command">kpsewhich</span></samp></h4> - -<p><samp><span class="command">kpsewhich</span></samp> recognizes a few special filenames on the command -line and defaults to using the `known' file formats for them, merely +<p><code>kpsewhich</code> recognizes a few special filenames on the command +line and defaults to using the ‘known’ file formats for them, merely to save the time and trouble of specifying the format. This is only a -feature of <samp><span class="command">kpsewhich</span></samp>; when using the Kpathsea library -itself, none of these special filenames are recognized, and it's still +feature of <code>kpsewhich</code>; when using the Kpathsea library +itself, none of these special filenames are recognized, and it’s still up to the caller to specify the desired format. - - <p>Here is the list of special filenames to <samp><span class="command">kpsewhich</span></samp>, along +</p> +<p>Here is the list of special filenames to <code>kpsewhich</code>, along with their corresponding format: +</p> +<dl compact="compact"> +<dd> +<a name="index-config_002eps"></a> +</dd> +<dt><samp>config.ps</samp></dt> +<dd><p><code>dvips config</code> +</p> +<a name="index-dvipdfmx_002ecfg"></a> +</dd> +<dt><samp>dvipdfmx.cfg</samp></dt> +<dd><p>‘<samp>other text files</samp>’ +</p> +<a name="index-fmtutil_002ecnf"></a> +</dd> +<dt><samp>fmtutil.cnf</samp></dt> +<dd><p>‘<samp>web2c files</samp>’ +</p> +<a name="index-glyphlist_002etxt"></a> +</dd> +<dt><samp>glyphlist.txt</samp></dt> +<dd><p>‘<samp>map</samp>’ +</p> +<a name="index-mktex_002ecnf"></a> +</dd> +<dt><samp>mktex.cnf</samp></dt> +<dd><p>‘<samp>web2c files</samp>’ +</p> +<a name="index-pdfglyphlist_002etxt"></a> +</dd> +<dt><samp>pdfglyphlist.txt</samp></dt> +<dd><p>‘<samp>map</samp>’ +</p> +<a name="index-pdftex_002ecfg"></a> +<a name="index-pdftexconfig_002etex"></a> +</dd> +<dt><samp>pdftex.cfg</samp></dt> +<dd><p>‘<samp>pdftex config</samp>’ (although <samp>pdftex.cfg</samp> is not used any more; +look for the file <samp>pdftexconfig.tex</samp> instead.) +</p> +<a name="index-texmf_002ecnf"></a> +</dd> +<dt><samp>texmf.cnf</samp></dt> +<dd><p>‘<samp>cnf</samp>’ +</p> +<a name="index-XDvi"></a> +</dd> +<dt><samp>XDvi</samp></dt> +<dd><p>‘<samp>other text files</samp>’ +</p> +</dd> +</dl> - -<a name="index-config_002eps-566"></a> -<dl><dt><samp><span class="file">config.ps</span></samp><dd><code>dvips config</code> - - <p><a name="index-dvipdfmx_002ecfg-567"></a><br><dt><samp><span class="file">dvipdfmx.cfg</span></samp><dd>‘<samp><span class="samp">other text files</span></samp>’ - - <p><a name="index-fmtutil_002ecnf-568"></a><br><dt><samp><span class="file">fmtutil.cnf</span></samp><dd>‘<samp><span class="samp">web2c files</span></samp>’ - - <p><a name="index-glyphlist_002etxt-569"></a><br><dt><samp><span class="file">glyphlist.txt</span></samp><dd>‘<samp><span class="samp">map</span></samp>’ - - <p><a name="index-mktex_002ecnf-570"></a><br><dt><samp><span class="file">mktex.cnf</span></samp><dd>‘<samp><span class="samp">web2c files</span></samp>’ - - <p><a name="index-pdfglyphlist_002etxt-571"></a><br><dt><samp><span class="file">pdfglyphlist.txt</span></samp><dd>‘<samp><span class="samp">map</span></samp>’ - - <p><a name="index-pdftex_002ecfg-572"></a><a name="index-pdftexconfig_002etex-573"></a><br><dt><samp><span class="file">pdftex.cfg</span></samp><dd>‘<samp><span class="samp">pdftex config</span></samp>’ (although <samp><span class="file">pdftex.cfg</span></samp> is not used any more; -look for the file <samp><span class="file">pdftexconfig.tex</span></samp> instead.) - - <p><a name="index-texmf_002ecnf-574"></a><br><dt><samp><span class="file">texmf.cnf</span></samp><dd>‘<samp><span class="samp">cnf</span></samp>’ - - <p><a name="index-XDvi-575"></a><br><dt><samp><span class="file">XDvi</span></samp><dd>‘<samp><span class="samp">other text files</span></samp>’ - - </dl> - - <p>A user-specified format will override the above defaults. - - <p><a name="index-tcfmgr_002emap-576"></a>Another useful configuration file in this regard is <samp><span class="file">tcfmgr.map</span></samp>, -found in <samp><span class="file">texmf/texconfig/tcfmgr.map</span></samp>, which records various +<p>A user-specified format will override the above defaults. +</p> +<a name="index-tcfmgr_002emap"></a> +<p>Another useful configuration file in this regard is <samp>tcfmgr.map</samp>, +found in <samp>texmf/texconfig/tcfmgr.map</samp>, which records various information about the above configuration files (among others). +</p> -<div class="node"> +<hr> <a name="Auxiliary-tasks"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Standard-options">Standard options</a>, -Previous: <a rel="previous" accesskey="p" href="#Specially_002drecognized-files">Specially-recognized files</a>, -Up: <a rel="up" accesskey="u" href="#Invoking-kpsewhich">Invoking kpsewhich</a> - +<div class="header"> +<p> +Next: <a href="#Standard-options" accesskey="n" rel="next">Standard options</a>, Previous: <a href="#Specially_002drecognized-files" accesskey="p" rel="prev">Specially-recognized files</a>, Up: <a href="#Invoking-kpsewhich" accesskey="u" rel="up">Invoking kpsewhich</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Auxiliary-tasks-1"></a> +<h4 class="subsection">5.5.3 Auxiliary tasks</h4> -<h4 class="subsection">3.5.3 Auxiliary tasks</h4> +<a name="index-auxiliary-tasks"></a> -<p><a name="index-auxiliary-tasks-577"></a> -Kpsewhich provides some additional features not strictly related to path +<p>Kpsewhich provides some additional features not strictly related to path lookup: - - <ul> -<li><a name="index-g_t_002d_002ddebug_003d_0040var_007bnum_007d-578"></a>‘<samp><span class="samp">--debug=</span><var>num</var></samp>’ sets the debugging options to <var>num</var>. +</p> +<ul> +<li> <a name="index-_002d_002ddebug_003dnum"></a> +‘<samp>--debug=<var>num</var></samp>’ sets the debugging options to <var>num</var>. See <a href="#Debugging">Debugging</a>. - <li><a name="index-g_t_002d_002dvar_002dvalue_003d_0040var_007bvariable_007d-579"></a>‘<samp><span class="samp">--var-value=</span><var>variable</var></samp>’ outputs the value of <var>variable</var>, -expanding ‘<samp><span class="samp">$</span></samp>’ (see <a href="#Variable-expansion">Variable expansion</a> and ‘<samp><span class="samp">~</span></samp>’ (see <a href="#Tilde-expansion">Tilde expansion</a>) constructs, but not performing other expansions. +</li><li> <a name="index-_002d_002dvar_002dvalue_003dvariable"></a> +‘<samp>--var-value=<var>variable</var></samp>’ outputs the value of <var>variable</var>, +expanding ‘<samp>$</samp>’ (see <a href="#Variable-expansion">Variable expansion</a> and ‘<samp>~</samp>’ (see <a href="#Tilde-expansion">Tilde expansion</a>) constructs, but not performing other expansions. - <li><a name="index-g_t_002d_002dexpand_002dbraces_003d_0040var_007bstring_007d-580"></a>‘<samp><span class="samp">--expand-braces=</span><var>string</var></samp>’ outputs the variable and brace +</li><li> <a name="index-_002d_002dexpand_002dbraces_003dstring"></a> +‘<samp>--expand-braces=<var>string</var></samp>’ outputs the variable and brace expansion of <var>string</var>. See <a href="#Path-expansion">Path expansion</a>. - <li><a name="index-g_t_002d_002dexpand_002dvar_003d_0040var_007bstring_007d-581"></a>‘<samp><span class="samp">--expand-var=</span><var>string</var></samp>’ outputs the variable and tilde -expansion of <var>string</var>. For example, the ‘<samp><span class="samp">mktex...</span></samp>’ -scripts run ‘<samp><span class="samp">kpsewhich --expand-var='$TEXMF'</span></samp>’ to find the root of +</li><li> <a name="index-_002d_002dexpand_002dvar_003dstring"></a> +‘<samp>--expand-var=<var>string</var></samp>’ outputs the variable and tilde +expansion of <var>string</var>. For example, the ‘<samp>mktex…</samp>’ +scripts run ‘<samp>kpsewhich --expand-var='$TEXMF'</samp>’ to find the root of the TeX system hierarchy. See <a href="#Path-expansion">Path expansion</a>. - <li><a name="index-g_t_002d_002dexpand_002dpath_003d_0040var_007bstring_007d-582"></a>‘<samp><span class="samp">--expand-path=</span><var>string</var></samp>’ outputs the complete expansion of +</li><li> <a name="index-_002d_002dexpand_002dpath_003dstring"></a> +‘<samp>--expand-path=<var>string</var></samp>’ outputs the complete expansion of <var>string</var>, with each element separated by the usual path separator -on the current system (‘<samp><span class="samp">;</span></samp>’ on Windows, ‘<samp><span class="samp">:</span></samp>’ otherwise). +on the current system (‘<samp>;</samp>’ on Windows, ‘<samp>:</samp>’ otherwise). This may be useful to construct a custom search path for a format not otherwise supported. To retrieve the search path for a format that is -already supported, see ‘<samp><span class="samp">--show-path</span></samp>’, next. - - <p>Nonexistent directories are culled from the output: - - <pre class="example"> $ kpsewhich --expand-path '/tmp' - ⇒ /tmp - $ kpsewhich --expand-path '/nonesuch' - ⇒ -</pre> - <p>For one-shot uses of an arbitrary (not built in to Kpathsea) path, see -‘<samp><span class="samp">--path</span></samp>’ in the previous section. - - <li><a name="index-g_t_002d_002dshow_002dpath_003d_0040var_007bname_007d-583"></a>‘<samp><span class="samp">--show-path=</span><var>name</var></samp>’ shows the path that would be used for file +already supported, see ‘<samp>--show-path</samp>’, next. + +<p>Nonexistent directories are culled from the output: +</p> +<div class="example"> +<pre class="example">$ kpsewhich --expand-path '/tmp' +⇒ /tmp +$ kpsewhich --expand-path '/nonesuch' +⇒ +</pre></div> + +<p>For one-shot uses of an arbitrary (not built in to Kpathsea) path, see +‘<samp>--path</samp>’ in the previous section. +</p> +</li><li> <a name="index-_002d_002dshow_002dpath_003dname"></a> +‘<samp>--show-path=<var>name</var></samp>’ shows the path that would be used for file lookups of file type <var>name</var>. Either a filename extension -(‘<samp><span class="samp">pk</span></samp>’, ‘<samp><span class="samp">.vf</span></samp>’, etc.) or an integer can be used, just as with -‘<samp><span class="samp">--format</span></samp>’, described in the previous section. +(‘<samp>pk</samp>’, ‘<samp>.vf</samp>’, etc.) or an integer can be used, just as with +‘<samp>--format</samp>’, described in the previous section. - </ul> +</li></ul> -<div class="node"> -<a name="Standard-options"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Auxiliary-tasks">Auxiliary tasks</a>, -Up: <a rel="up" accesskey="u" href="#Invoking-kpsewhich">Invoking kpsewhich</a> +<hr> +<a name="Standard-options"></a> +<div class="header"> +<p> +Previous: <a href="#Auxiliary-tasks" accesskey="p" rel="prev">Auxiliary tasks</a>, Up: <a href="#Invoking-kpsewhich" accesskey="u" rel="up">Invoking kpsewhich</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Standard-options-1"></a> +<h4 class="subsection">5.5.4 Standard options</h4> -<h4 class="subsection">3.5.4 Standard options</h4> +<a name="index-standard-options"></a> -<p><a name="index-standard-options-584"></a> -Kpsewhich accepts the standard GNU options: - - <ul> -<li><a name="index-g_t_002d_002dhelp-585"></a>‘<samp><span class="samp">--help</span></samp>’ prints a help message on standard output and exits +<p>Kpsewhich accepts the standard GNU options: +</p> +<ul> +<li> <a name="index-_002d_002dhelp"></a> +‘<samp>--help</samp>’ prints a help message on standard output and exits successfully. - <li><a name="index-g_t_002d_002dversion-586"></a>‘<samp><span class="samp">--version</span></samp>’ prints the Kpathsea version number and exits successfully. -</ul> +</li><li> <a name="index-_002d_002dversion"></a> +‘<samp>--version</samp>’ prints the Kpathsea version number and exits successfully. +</li></ul> -<div class="node"> -<a name="TeX-support"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Programming">Programming</a>, -Previous: <a rel="previous" accesskey="p" href="#Path-searching">Path searching</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> +<hr> +<a name="TeX-support"></a> +<div class="header"> +<p> +Next: <a href="#Programming" accesskey="n" rel="next">Programming</a>, Previous: <a href="#Path-searching" accesskey="p" rel="prev">Path searching</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="TeX-support-1"></a> +<h2 class="chapter">6 TeX support</h2> -<h2 class="chapter">4 TeX support</h2> +<a name="index-TeX-support"></a> -<p><a name="index-g_t_0040TeX_007b_007d-support-587"></a> -Although the basic features in Kpathsea can be used for any type of path +<p>Although the basic features in Kpathsea can be used for any type of path searching, it came about (like all libraries) with a specific application in mind: I wrote Kpathsea specifically for TeX system programs. I had been struggling with the programs I was using (Dvips, Xdvi, and TeX itself) having slightly different notions of how to specify paths; and debugging was painful, since no code was shared. - - <p>Therefore, Kpathsea provides some TeX-specific formats and features. +</p> +<p>Therefore, Kpathsea provides some TeX-specific formats and features. Indeed, many of the supposedly generic path searching features were provided because they seemed useful in that conTeXt (font lookup, particularly). - - <p>Kpathsea provides a standard way to search for files of any of the -supported file types; glyph fonts are a bit different than all the rest. +</p> +<p>Kpathsea provides a standard way to search for files of any of the +supported file types; glyph fonts are a bit different than all the rest. Searches are based solely on filenames, not file contents—if a GF -file is named <samp><span class="file">cmr10.600pk</span></samp>, it will be found as a PK file. - -<ul class="menu"> -<li><a accesskey="1" href="#Supported-file-formats">Supported file formats</a>: File types Kpathsea knows about. -<li><a accesskey="2" href="#File-lookup">File lookup</a>: Searching for most kinds of files. -<li><a accesskey="3" href="#Glyph-lookup">Glyph lookup</a>: Searching for bitmap fonts. -<li><a accesskey="4" href="#Suppressing-warnings">Suppressing warnings</a>: Avoiding warnings via TEX_HUSH. -</ul> - -<div class="node"> +file is named <samp>cmr10.600pk</samp>, it will be found as a PK file. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Supported-file-formats" accesskey="1">Supported file formats</a>:</td><td> </td><td align="left" valign="top">File types Kpathsea knows about. +</td></tr> +<tr><td align="left" valign="top">• <a href="#File-lookup" accesskey="2">File lookup</a>:</td><td> </td><td align="left" valign="top">Searching for most kinds of files. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Glyph-lookup" accesskey="3">Glyph lookup</a>:</td><td> </td><td align="left" valign="top">Searching for bitmap fonts. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Suppressing-warnings" accesskey="4">Suppressing warnings</a>:</td><td> </td><td align="left" valign="top">Avoiding warnings via TEX_HUSH. +</td></tr> +<tr><td align="left" valign="top">• <a href="#mktex-scripts" accesskey="5">mktex scripts</a>:</td><td> </td><td align="left" valign="top">Generating files at runtime. +</td></tr> +</table> + + +<hr> <a name="Supported-file-formats"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#File-lookup">File lookup</a>, -Up: <a rel="up" accesskey="u" href="#TeX-support">TeX support</a> - +<div class="header"> +<p> +Next: <a href="#File-lookup" accesskey="n" rel="next">File lookup</a>, Up: <a href="#TeX-support" accesskey="u" rel="up">TeX support</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Supported-file-formats-1"></a> +<h3 class="section">6.1 Supported file formats</h3> + +<a name="index-supported-file-formats"></a> +<a name="index-file-formats_002c-supported"></a> -<h3 class="section">4.1 Supported file formats</h3> +<a name="index-environment-variables-for-TeX"></a> +<a name="index-TeX-environment-variables"></a> -<p><a name="index-supported-file-formats-588"></a><a name="index-file-formats_002c-supported-589"></a> -<a name="index-environment-variables-for-_0040TeX_007b_007d-590"></a><a name="index-g_t_0040TeX_007b_007d-environment-variables-591"></a> -Kpathsea has support for a number of file types. Each file type has a +<p>Kpathsea has support for a number of file types. Each file type has a list of environment and config file variables that are checked to define the search path, and most have a default suffix that plays a role in finding files (see the next section). Some also define additional suffixes, and/or a program to be run to create missing files on the fly. - - <p><a name="index-program_002dvarying-paths-592"></a>Since environment variables containing periods, such as -‘<samp><span class="samp">TEXINPUTS.latex</span></samp>’, are not allowed on some systems, Kpathsea looks +</p> +<a name="index-program_002dvarying-paths"></a> +<p>Since environment variables containing periods, such as +‘<samp>TEXINPUTS.latex</samp>’, are not allowed on some systems, Kpathsea looks for environment variables with an underscore, e.g., -‘<samp><span class="samp">TEXINPUTS_latex</span></samp>’ (see <a href="#Config-files">Config files</a>). - - <p>The following table lists the above information. - - <dl> -<dt>‘<samp><span class="samp">afm</span></samp>’<dd><a name="index-g_t_002eafm-593"></a><a name="index-AFMFONTS-594"></a>(Adobe font metrics, see <a href="dvips.html#Metric-files">Metric files</a>) +‘<samp>TEXINPUTS_latex</samp>’ (see <a href="#Config-files">Config files</a>). +</p> +<p>The following table lists the above information. +</p> +<dl compact="compact"> +<dt>‘<samp>afm</samp>’</dt> +<dd><a name="index-_002eafm"></a> +<a name="index-AFMFONTS"></a> +<p>(Adobe font metrics, see <a href="dvips.html#Metric-files">Metric files</a> in <cite>Dvips</cite>) <code>AFMFONTS</code>; -suffix ‘<samp><span class="samp">.afm</span></samp>’. - - <br><dt>‘<samp><span class="samp">base</span></samp>’<dd><a name="index-g_t_002ebase-595"></a><a name="index-MFBASES-596"></a><a name="index-TEXMFINI-597"></a>(Metafont memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a>) +suffix ‘<samp>.afm</samp>’. +</p> +</dd> +<dt>‘<samp>base</samp>’</dt> +<dd><a name="index-_002ebase"></a> +<a name="index-MFBASES"></a> +<a name="index-TEXMFINI"></a> +<p>(Metafont memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a> in <cite>Web2c</cite>) <code>MFBASES</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.base</span></samp>’. - - <br><dt>‘<samp><span class="samp">bib</span></samp>’<dd><a name="index-g_t_002ebib-598"></a><a name="index-BIBINPUTS-599"></a><a name="index-TEXBIB-600"></a>(BibTeX bibliography source, see <a href="web2c.html#bibtex-invocation">bibtex invocation</a>) +suffix ‘<samp>.base</samp>’. +</p> +</dd> +<dt>‘<samp>bib</samp>’</dt> +<dd><a name="index-_002ebib"></a> +<a name="index-BIBINPUTS"></a> +<a name="index-TEXBIB"></a> +<p>(BibTeX bibliography source, see <a href="web2c.html#bibtex-invocation">bibtex invocation</a> in <cite>Web2c</cite>) <code>BIBINPUTS</code>, <code>TEXBIB</code>; -suffix ‘<samp><span class="samp">.bib</span></samp>’. - - <br><dt>‘<samp><span class="samp">bst</span></samp>’<dd><a name="index-g_t_002ebst-601"></a><a name="index-BSTINPUTS-602"></a>(BibTeX style, see <a href="web2c.html#Basic-BibTeX-style-files">Basic BibTeX style files</a>) +suffix ‘<samp>.bib</samp>’. +</p> +</dd> +<dt>‘<samp>bst</samp>’</dt> +<dd><a name="index-_002ebst"></a> +<a name="index-BSTINPUTS"></a> +<p>(BibTeX style, see <a href="web2c.html#Basic-BibTeX-style-files">Basic BibTeX +style files</a> in <cite>Web2c</cite>) <code>BSTINPUTS</code>; -suffix ‘<samp><span class="samp">.bst</span></samp>’. - - <br><dt>‘<samp><span class="samp">cmap</span></samp>’<dd><a name="index-g_t_002ecmap-603"></a><a name="index-CMAPFONTS-604"></a>(character map files) +suffix ‘<samp>.bst</samp>’. +</p> +</dd> +<dt>‘<samp>cmap</samp>’</dt> +<dd><a name="index-_002ecmap"></a> +<a name="index-CMAPFONTS"></a> +<p>(character map files) <code>CMAPFONTS</code>; -suffix ‘<samp><span class="samp">.cmap</span></samp>’. - - <br><dt>‘<samp><span class="samp">cnf</span></samp>’<dd><a name="index-g_t_002ecnf-605"></a><a name="index-TEXMFCNF-606"></a>(Runtime configuration files, see <a href="#Config-files">Config files</a>) +suffix ‘<samp>.cmap</samp>’. +</p> +</dd> +<dt>‘<samp>cnf</samp>’</dt> +<dd><a name="index-_002ecnf"></a> +<a name="index-TEXMFCNF-1"></a> +<p>(Runtime configuration files, see <a href="#Config-files">Config files</a>) <code>TEXMFCNF</code>; -suffix ‘<samp><span class="samp">.cnf</span></samp>’. - - <br><dt>‘<samp><span class="samp">cweb</span></samp>’<dd><a name="index-g_t_002ew-607"></a><a name="index-g_t_002eweb-608"></a><a name="index-CWEBINPUTS-609"></a>(CWEB input files) +suffix ‘<samp>.cnf</samp>’. +</p> +</dd> +<dt>‘<samp>cweb</samp>’</dt> +<dd><a name="index-_002ew"></a> +<a name="index-_002eweb"></a> +<a name="index-CWEBINPUTS"></a> +<p>(CWEB input files) <code>CWEBINPUTS</code>; -suffixes ‘<samp><span class="samp">.w</span></samp>’, ‘<samp><span class="samp">.web</span></samp>’; -additional suffix ‘<samp><span class="samp">.ch</span></samp>’. - - <br><dt>‘<samp><span class="samp">dvips config</span></samp>’<dd><a name="index-TEXCONFIG-610"></a><a name="index-config_002eps_0040r_007b_002c-search-path-for_007d-611"></a>(Dvips ‘<samp><span class="samp">config.*</span></samp>’ files, such as <samp><span class="file">config.ps</span></samp>, see <a href="dvips.html#Config-files">Config files</a>) +suffixes ‘<samp>.w</samp>’, ‘<samp>.web</samp>’; +additional suffix ‘<samp>.ch</samp>’. +</p> +</dd> +<dt>‘<samp>dvips config</samp>’</dt> +<dd><a name="index-TEXCONFIG"></a> +<a name="index-config_002eps_002c-search-path-for"></a> +<p>(Dvips ‘<samp>config.*</samp>’ files, such as <samp>config.ps</samp>, see <a href="dvips.html#Config-files">Config +files</a> in <cite>Dvips</cite>) <code>TEXCONFIG</code>. - - <br><dt>‘<samp><span class="samp">enc files</span></samp>’<dd><a name="index-g_t_002eenc-612"></a><a name="index-ENCFONTS-613"></a>(encoding vectors) +</p> +</dd> +<dt>‘<samp>enc files</samp>’</dt> +<dd><a name="index-_002eenc"></a> +<a name="index-ENCFONTS"></a> +<p>(encoding vectors) <code>ENCFONTS</code>; -suffix ‘<samp><span class="samp">.enc</span></samp>’. - - <br><dt>‘<samp><span class="samp">fmt</span></samp>’<dd><a name="index-g_t_002efmt-614"></a><a name="index-TEXFORMATS-615"></a><a name="index-TEXMFINI-616"></a>(TeX memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a>) +suffix ‘<samp>.enc</samp>’. +</p> +</dd> +<dt>‘<samp>fmt</samp>’</dt> +<dd><a name="index-_002efmt"></a> +<a name="index-TEXFORMATS"></a> +<a name="index-TEXMFINI-1"></a> +<p>(TeX memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a> in <cite>Web2c</cite>) <code>TEXFORMATS</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.fmt</span></samp>’. - - <br><dt>‘<samp><span class="samp">font cid map</span></samp>’<dd><a name="index-g_t_002ecid-617"></a><a name="index-FONTCIDMAPS-618"></a>(CJK mapping) +suffix ‘<samp>.fmt</samp>’. +</p> +</dd> +<dt>‘<samp>font cid map</samp>’</dt> +<dd><a name="index-_002ecid"></a> +<a name="index-FONTCIDMAPS"></a> +<p>(CJK mapping) <code>FONTCIDMAPS</code> -suffix ‘<samp><span class="samp">.cid</span></samp>’. - - <br><dt>‘<samp><span class="samp">font feature files</span></samp>’<dd><a name="index-g_t_002efea-619"></a><a name="index-FONTFEATURES-620"></a>(primarily for OpenType font features) +suffix ‘<samp>.cid</samp>’. +</p> +</dd> +<dt>‘<samp>font feature files</samp>’</dt> +<dd><a name="index-_002efea"></a> +<a name="index-FONTFEATURES"></a> +<p>(primarily for OpenType font features) <code>FONTFEATURES</code> -suffix ‘<samp><span class="samp">.fea</span></samp>’. - - <br><dt>‘<samp><span class="samp">gf</span></samp>’<dd><a name="index-gf-621"></a><a name="index-GFFONTS-622"></a><a name="index-GLYPHFONTS-623"></a><a name="index-TEXFONTS-624"></a>(generic font bitmap, see <a href="dvips.html#Glyph-files">Glyph files</a>) -<var>program</var><code>FONTS</code>, <code>GFFONTS</code>, <code>GLYPHFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">gf</span></samp>’. - - <br><dt>‘<samp><span class="samp">graphic/figure</span></samp>’<dd><a name="index-g_t_002eeps-625"></a><a name="index-g_t_002eepsi-626"></a><a name="index-TEXPICTS-627"></a><a name="index-TEXINPUTS-628"></a>(Encapsulated PostScript figures, see <a href="dvips.html#PostScript-figures">PostScript figures</a>) +suffix ‘<samp>.fea</samp>’. +</p> +</dd> +<dt>‘<samp>gf</samp>’</dt> +<dd><a name="index-gf"></a> +<a name="index-GFFONTS"></a> +<a name="index-GLYPHFONTS"></a> +<a name="index-TEXFONTS"></a> +<p>(generic font bitmap, see <a href="dvips.html#Glyph-files">Glyph files</a> in <cite>Dvips</cite>) +<code><var>program</var>FONTS</code>, <code>GFFONTS</code>, <code>GLYPHFONTS</code>, <code>TEXFONTS</code>; +suffix ‘<samp>gf</samp>’. +</p> +</dd> +<dt>‘<samp>graphic/figure</samp>’</dt> +<dd><a name="index-_002eeps"></a> +<a name="index-_002eepsi"></a> +<a name="index-TEXPICTS"></a> +<a name="index-TEXINPUTS"></a> +<p>(Encapsulated PostScript figures, see <a href="dvips.html#PostScript-figures">PostScript figures</a> in <cite>Dvips</cite>) <code>TEXPICTS</code>, <code>TEXINPUTS</code>; -additional suffixes: ‘<samp><span class="samp">.eps</span></samp>’, ‘<samp><span class="samp">.epsi</span></samp>’. - - <br><dt>‘<samp><span class="samp">ist</span></samp>’<dd><a name="index-g_t_002eist-629"></a><a name="index-TEXINDEXSTYLE-630"></a><a name="index-INDEXSTYLE-631"></a>(makeindex style files) +additional suffixes: ‘<samp>.eps</samp>’, ‘<samp>.epsi</samp>’. +</p> +</dd> +<dt>‘<samp>ist</samp>’</dt> +<dd><a name="index-_002eist"></a> +<a name="index-TEXINDEXSTYLE"></a> +<a name="index-INDEXSTYLE"></a> +<p>(makeindex style files) <code>TEXINDEXSTYLE</code>, <code>INDEXSTYLE</code>; -suffix ‘<samp><span class="samp">.ist</span></samp>’. - - <br><dt>‘<samp><span class="samp">lig files</span></samp>’<dd><a name="index-g_t_002elig-632"></a><a name="index-LIGFONTS-633"></a>(ligature definition files) +suffix ‘<samp>.ist</samp>’. +</p> +</dd> +<dt>‘<samp>lig files</samp>’</dt> +<dd><a name="index-_002elig"></a> +<a name="index-LIGFONTS"></a> +<p>(ligature definition files) <code>LIGFONTS</code>; -suffix ‘<samp><span class="samp">.lig</span></samp>’. - - <br><dt>‘<samp><span class="samp">ls-R</span></samp>’<dd><a name="index-ls_002dR-634"></a><a name="index-TEXMFDBS-635"></a>(Filename databases, see <a href="#Filename-database">Filename database</a>) +suffix ‘<samp>.lig</samp>’. +</p> +</dd> +<dt>‘<samp>ls-R</samp>’</dt> +<dd><a name="index-ls_002dR"></a> +<a name="index-TEXMFDBS-1"></a> +<p>(Filename databases, see <a href="#Filename-database">Filename database</a>) <code>TEXMFDBS</code>. - - <br><dt>‘<samp><span class="samp">map</span></samp>’<dd><a name="index-g_t_002emap-636"></a><a name="index-TEXFONTMAPS-637"></a>(Fontmaps, see <a href="#Fontmap">Fontmap</a>) +</p> +</dd> +<dt>‘<samp>map</samp>’</dt> +<dd><a name="index-_002emap"></a> +<a name="index-TEXFONTMAPS"></a> +<p>(Fontmaps, see <a href="#Fontmap">Fontmap</a>) <code>TEXFONTMAPS</code>; -suffix ‘<samp><span class="samp">.map</span></samp>’. - - <br><dt>‘<samp><span class="samp">mem</span></samp>’<dd><a name="index-g_t_002emem-638"></a><a name="index-MPMEMS-639"></a><a name="index-TEXMFINI-640"></a>(MetaPost memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a>) +suffix ‘<samp>.map</samp>’. +</p> +</dd> +<dt>‘<samp>mem</samp>’</dt> +<dd><a name="index-_002emem"></a> +<a name="index-MPMEMS"></a> +<a name="index-TEXMFINI-2"></a> +<p>(MetaPost memory dump, see <a href="web2c.html#Memory-dumps">Memory dumps</a> in <cite>Web2c</cite>) <code>MPMEMS</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.mem</span></samp>’. - - <br><dt>‘<samp><span class="samp">MetaPost support</span></samp>’<dd><a name="index-MPSUPPORT-641"></a>(MetaPost support files, used by DMP; see <a href="web2c.html#dmp-invocation">dmp invocation</a>) +suffix ‘<samp>.mem</samp>’. +</p> +</dd> +<dt>‘<samp><span class="roman">MetaPost support</span></samp>’</dt> +<dd><a name="index-MPSUPPORT"></a> +<p>(MetaPost support files, used by DMP; see <a href="web2c.html#dmp-invocation">dmp invocation</a> in <cite>Web2c</cite>) <code>MPSUPPORT</code>. - - <br><dt>‘<samp><span class="samp">mf</span></samp>’<dd><a name="index-g_t_002emf-642"></a><a name="index-MFINPUTS-643"></a>(Metafont source, see <a href="web2c.html#mf-invocation">mf invocation</a>) +</p> +</dd> +<dt>‘<samp>mf</samp>’</dt> +<dd><a name="index-_002emf"></a> +<a name="index-MFINPUTS"></a> +<p>(Metafont source, see <a href="web2c.html#mf-invocation">mf invocation</a> in <cite>Web2c</cite>) <code>MFINPUTS</code>; -suffix ‘<samp><span class="samp">.mf</span></samp>’; +suffix ‘<samp>.mf</samp>’; dynamic creation program: <code>mktexmf</code>. - - <br><dt>‘<samp><span class="samp">mfpool</span></samp>’<dd><a name="index-g_t_002epool-644"></a><a name="index-MFPOOL-645"></a>(Metafont program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a>) +</p> +</dd> +<dt>‘<samp>mfpool</samp>’</dt> +<dd><a name="index-_002epool"></a> +<a name="index-MFPOOL"></a> +<p>(Metafont program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a> in <cite>Web2c</cite>) <code>MFPOOL</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.pool</span></samp>’. - - <br><dt>‘<samp><span class="samp">mft</span></samp>’<dd><a name="index-g_t_002emft-646"></a><a name="index-MFTINPUTS-647"></a>(<code>MFT</code> style file, see <a href="web2c.html#mft-invocation">mft invocation</a>) +suffix ‘<samp>.pool</samp>’. +</p> +</dd> +<dt>‘<samp>mft</samp>’</dt> +<dd><a name="index-_002emft"></a> +<a name="index-MFTINPUTS"></a> +<p>(<code>MFT</code> style file, see <a href="web2c.html#mft-invocation">mft invocation</a> in <cite>Web2c</cite>) <code>MFTINPUTS</code>; -suffix ‘<samp><span class="samp">.mft</span></samp>’. - - <br><dt>‘<samp><span class="samp">misc fonts</span></samp>’<dd><a name="index-MISCFONTS-648"></a>(font-related files that don't fit the other categories) +suffix ‘<samp>.mft</samp>’. +</p> +</dd> +<dt>‘<samp>misc fonts</samp>’</dt> +<dd><a name="index-MISCFONTS"></a> +<p>(font-related files that don’t fit the other categories) <code>MISCFONTS</code> - - <br><dt>‘<samp><span class="samp">mlbib</span></samp>’<dd><a name="index-g_t_002emlbib-649"></a><a name="index-MLBIBINPUTS-650"></a><a name="index-BIBINPUTS-651"></a><a name="index-TEXBIB-652"></a>(MlBibTeX bibliography source) +</p> +</dd> +<dt>‘<samp>mlbib</samp>’</dt> +<dd><a name="index-_002emlbib"></a> +<a name="index-MLBIBINPUTS"></a> +<a name="index-BIBINPUTS-1"></a> +<a name="index-TEXBIB-1"></a> +<p>(MlBibTeX bibliography source) <code>MLBIBINPUTS</code>, <code>BIBINPUTS</code>, <code>TEXBIB</code>; -suffixes ‘<samp><span class="samp">.mlbib</span></samp>’, ‘<samp><span class="samp">.mlbib</span></samp>’. - - <br><dt>‘<samp><span class="samp">mlbst</span></samp>’<dd><a name="index-g_t_002emlbst-653"></a><a name="index-MLBSTINPUTS-654"></a><a name="index-BSTINPUTS-655"></a>(MlBibTeX style) +suffixes ‘<samp>.mlbib</samp>’, ‘<samp>.mlbib</samp>’. +</p> +</dd> +<dt>‘<samp>mlbst</samp>’</dt> +<dd><a name="index-_002emlbst"></a> +<a name="index-MLBSTINPUTS"></a> +<a name="index-BSTINPUTS-1"></a> +<p>(MlBibTeX style) <code>MLBSTINPUTS</code>, <code>BSTINPUTS</code>; -suffixes ‘<samp><span class="samp">.mlbst</span></samp>’, ‘<samp><span class="samp">.bst</span></samp>’. - - <br><dt>‘<samp><span class="samp">mp</span></samp>’<dd><a name="index-g_t_002emp-656"></a><a name="index-MPINPUTS-657"></a>(MetaPost source, see <a href="web2c.html#mpost-invocation">mpost invocation</a>) +suffixes ‘<samp>.mlbst</samp>’, ‘<samp>.bst</samp>’. +</p> +</dd> +<dt>‘<samp>mp</samp>’</dt> +<dd><a name="index-_002emp"></a> +<a name="index-MPINPUTS"></a> +<p>(MetaPost source, see <a href="web2c.html#mpost-invocation">mpost invocation</a> in <cite>Web2c</cite>) <code>MPINPUTS</code>; -suffix ‘<samp><span class="samp">.mp</span></samp>’. - - <br><dt>‘<samp><span class="samp">mppool</span></samp>’<dd><a name="index-g_t_002epool-658"></a><a name="index-MPPOOL-659"></a>(MetaPost program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a>) +suffix ‘<samp>.mp</samp>’. +</p> +</dd> +<dt>‘<samp>mppool</samp>’</dt> +<dd><a name="index-_002epool-1"></a> +<a name="index-MPPOOL"></a> +<p>(MetaPost program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a> in <cite>Web2c</cite>) <code>MPPOOL</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.pool</span></samp>’. - - <br><dt>‘<samp><span class="samp">ocp</span></samp>’<dd><a name="index-g_t_002eocp-660"></a><a name="index-OCPINPUTS-661"></a>(Omega compiled process files) +suffix ‘<samp>.pool</samp>’. +</p> +</dd> +<dt>‘<samp>ocp</samp>’</dt> +<dd><a name="index-_002eocp"></a> +<a name="index-OCPINPUTS"></a> +<p>(Omega compiled process files) <code>OCPINPUTS</code>; <br> -suffix ‘<samp><span class="samp">.ocp</span></samp>’; +suffix ‘<samp>.ocp</samp>’; dynamic creation program: <code>MakeOmegaOCP</code>. - - <br><dt>‘<samp><span class="samp">ofm</span></samp>’<dd><a name="index-g_t_002eofm-662"></a><a name="index-OFMFONTS-663"></a>(Omega font metrics) +</p> +</dd> +<dt>‘<samp>ofm</samp>’</dt> +<dd><a name="index-_002eofm"></a> +<a name="index-OFMFONTS"></a> +<p>(Omega font metrics) <code>OFMFONTS</code>, <code>TEXFONTS</code>; <br> -suffixes ‘<samp><span class="samp">.ofm</span></samp>’, ‘<samp><span class="samp">.tfm</span></samp>’; +suffixes ‘<samp>.ofm</samp>’, ‘<samp>.tfm</samp>’; dynamic creation program: <code>MakeOmegaOFM</code>. - - <br><dt>‘<samp><span class="samp">opentype fonts</span></samp>’<dd><a name="index-OPENTYPEFONTS-664"></a>(OpenType fonts) +</p> +</dd> +<dt>‘<samp>opentype fonts</samp>’</dt> +<dd><a name="index-OPENTYPEFONTS"></a> +<p>(OpenType fonts) <code>OPENTYPEFONTS</code>. - - <br><dt>‘<samp><span class="samp">opl</span></samp>’<dd><a name="index-g_t_002eopl-665"></a>(Omega property lists) +</p> +</dd> +<dt>‘<samp>opl</samp>’</dt> +<dd><a name="index-_002eopl"></a> +<p>(Omega property lists) <code>OPLFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">.opl</span></samp>’. - - <br><dt>‘<samp><span class="samp">otp</span></samp>’<dd><a name="index-g_t_002eotp-666"></a><a name="index-OTPINPUTS-667"></a>(Omega translation process files) +suffix ‘<samp>.opl</samp>’. +</p> +</dd> +<dt>‘<samp>otp</samp>’</dt> +<dd><a name="index-_002eotp"></a> +<a name="index-OTPINPUTS"></a> +<p>(Omega translation process files) <code>OTPINPUTS</code>; -suffix ‘<samp><span class="samp">.otp</span></samp>’. - - <br><dt>‘<samp><span class="samp">ovf</span></samp>’<dd><a name="index-g_t_002eovf-668"></a><a name="index-OVFFONTS-669"></a>(Omega virtual fonts) +suffix ‘<samp>.otp</samp>’. +</p> +</dd> +<dt>‘<samp>ovf</samp>’</dt> +<dd><a name="index-_002eovf"></a> +<a name="index-OVFFONTS"></a> +<p>(Omega virtual fonts) <code>OVFFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">.ovf</span></samp>’. - - <br><dt>‘<samp><span class="samp">ovp</span></samp>’<dd><a name="index-g_t_002eovp-670"></a><a name="index-OVPFONTS-671"></a>(Omega virtual property lists) +suffix ‘<samp>.ovf</samp>’. +</p> +</dd> +<dt>‘<samp>ovp</samp>’</dt> +<dd><a name="index-_002eovp"></a> +<a name="index-OVPFONTS"></a> +<p>(Omega virtual property lists) <code>OVPFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">.ovp</span></samp>’. - - <br><dt>‘<samp><span class="samp">pdftex config</span></samp>’<dd><a name="index-PDFTEXCONFIG-672"></a>(PDFTeX-specific configuration files) +suffix ‘<samp>.ovp</samp>’. +</p> +</dd> +<dt>‘<samp>pdftex config</samp>’</dt> +<dd><a name="index-PDFTEXCONFIG"></a> +<p>(PDFTeX-specific configuration files) <code>PDFTEXCONFIG</code>. - - <br><dt>‘<samp><span class="samp">pk</span></samp>’<dd><a name="index-g_t_002epk-673"></a><a name="index-PKFONTS-674"></a><a name="index-TEXPKS-675"></a><a name="index-GLYPHFONTS-676"></a><a name="index-TEXFONTS-677"></a>(packed bitmap fonts, see <a href="dvips.html#Glyph-files">Glyph files</a>) -<var>PROGRAM</var><code>FONTS</code> (<var>program</var> being ‘<samp><span class="samp">XDVI</span></samp>’, etc.), +</p> +</dd> +<dt>‘<samp>pk</samp>’</dt> +<dd><a name="index-_002epk"></a> +<a name="index-PKFONTS"></a> +<a name="index-TEXPKS"></a> +<a name="index-GLYPHFONTS-1"></a> +<a name="index-TEXFONTS-1"></a> +<p>(packed bitmap fonts, see <a href="dvips.html#Glyph-files">Glyph files</a> in <cite>Dvips</cite>) +<code><var>PROGRAM</var>FONTS</code> (<var>program</var> being ‘<samp>XDVI</samp>’, etc.), <code>PKFONTS</code>, <code>TEXPKS</code>, <code>GLYPHFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">pk</span></samp>’; +suffix ‘<samp>pk</samp>’; dynamic creation program: <code>mktexpk</code>. - - <br><dt>‘<samp><span class="samp">PostScript header</span></samp>’<dd><a name="index-g_t_002epro-678"></a><a name="index-TEXPSHEADERS-679"></a><a name="index-PSHEADERS-680"></a>(downloadable PostScript, see <a href="dvips.html#Header-files">Header files</a>) +</p> +</dd> +<dt>‘<samp>PostScript header</samp>’</dt> +<dd><a name="index-_002epro"></a> +<a name="index-TEXPSHEADERS"></a> +<a name="index-PSHEADERS"></a> +<p>(downloadable PostScript, see <a href="dvips.html#Header-files">Header files</a> in <cite>Dvips</cite>) <code>TEXPSHEADERS</code>, <code>PSHEADERS</code>; -additional suffix ‘<samp><span class="samp">.pro</span></samp>’. - - <br><dt>‘<samp><span class="samp">subfont definition files</span></samp>’<dd><a name="index-g_t_002esfd-681"></a><a name="index-SFDFONTS-682"></a>(subfont definition files) +additional suffix ‘<samp>.pro</samp>’. +</p> +</dd> +<dt>‘<samp>subfont definition files</samp>’</dt> +<dd><a name="index-_002esfd"></a> +<a name="index-SFDFONTS"></a> +<p>(subfont definition files) <code>SFDFONTS</code> -suffix ‘<samp><span class="samp">.sfd</span></samp>’. - - <br><dt>‘<samp><span class="samp">tex</span></samp>’<dd><a name="index-g_t_002etex-683"></a><a name="index-TEXINPUTS-684"></a>(TeX source, see <a href="web2c.html#tex-invocation">tex invocation</a>) +suffix ‘<samp>.sfd</samp>’. +</p> +</dd> +<dt>‘<samp>tex</samp>’</dt> +<dd><a name="index-_002etex"></a> +<a name="index-TEXINPUTS-1"></a> +<p>(TeX source, see <a href="web2c.html#tex-invocation">tex invocation</a> in <cite>Web2c</cite>) <code>TEXINPUTS</code>; -suffix ‘<samp><span class="samp">.tex</span></samp>’; +suffix ‘<samp>.tex</samp>’; additional suffixes: none, because such a list cannot be complete; dynamic creation program: <code>mktextex</code>. - - <br><dt>‘<samp><span class="samp">TeX system documentation</span></samp>’<dd><a name="index-doc-files-685"></a><a name="index-TEXDOCS-686"></a>(Documentation files for the TeX system) +</p> +</dd> +<dt>‘<samp>TeX system documentation</samp>’</dt> +<dd><a name="index-doc-files"></a> +<a name="index-TEXDOCS"></a> +<p>(Documentation files for the TeX system) <code>TEXDOCS</code>. - - <br><dt>‘<samp><span class="samp">TeX system sources</span></samp>’<dd><a name="index-source-files-687"></a><a name="index-TEXSOURCES-688"></a>(Source files for the TeX system) +</p> +</dd> +<dt>‘<samp>TeX system sources</samp>’</dt> +<dd><a name="index-source-files"></a> +<a name="index-TEXSOURCES"></a> +<p>(Source files for the TeX system) <code>TEXSOURCES</code>. - - <br><dt>‘<samp><span class="samp">texmfscripts</span></samp>’<dd><a name="index-TEXMFSCRIPTS-689"></a>(Architecture-independent executables distributed in the texmf trees) +</p> +</dd> +<dt>‘<samp>texmfscripts</samp>’</dt> +<dd><a name="index-TEXMFSCRIPTS"></a> +<p>(Architecture-independent executables distributed in the texmf trees) <code>TEXMFSCRIPTS</code>. - - <br><dt>‘<samp><span class="samp">texpool</span></samp>’<dd><a name="index-g_t_002epool-690"></a><a name="index-TEXPOOL-691"></a>(TeX program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a>) +</p> +</dd> +<dt>‘<samp>texpool</samp>’</dt> +<dd><a name="index-_002epool-2"></a> +<a name="index-TEXPOOL"></a> +<p>(TeX program strings, see <a href="web2c.html#pooltype-invocation">pooltype invocation</a> in <cite>Web2c</cite>) <code>TEXPOOL</code>, <code>TEXMFINI</code>; -suffix ‘<samp><span class="samp">.pool</span></samp>’. - - <br><dt>‘<samp><span class="samp">tfm</span></samp>’<dd><a name="index-g_t_002etfm-692"></a><a name="index-TFMFONTS-693"></a><a name="index-TEXFONTS-694"></a>(TeX font metrics, see <a href="dvips.html#Metric-files">Metric files</a>) +suffix ‘<samp>.pool</samp>’. +</p> +</dd> +<dt>‘<samp>tfm</samp>’</dt> +<dd><a name="index-_002etfm"></a> +<a name="index-TFMFONTS"></a> +<a name="index-TEXFONTS-2"></a> +<p>(TeX font metrics, see <a href="dvips.html#Metric-files">Metric files</a> in <cite>Dvips</cite>) <code>TFMFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">.tfm</span></samp>’; +suffix ‘<samp>.tfm</samp>’; dynamic creation program: <code>mktextfm</code>. - - <br><dt>‘<samp><span class="samp">Troff fonts</span></samp>’<dd><a name="index-TRFONTS-695"></a>(Troff fonts, used by DMP; see <a href="web2c.html#DMP-invocation">DMP invocation</a>) +</p> +</dd> +<dt>‘<samp>Troff fonts</samp>’</dt> +<dd><a name="index-TRFONTS"></a> +<p>(Troff fonts, used by DMP; see <a href="web2c.html#DMP-invocation">DMP invocation</a> in <cite>Web2c</cite>) <code>TRFONTS</code>. - - <br><dt>‘<samp><span class="samp">truetype fonts</span></samp>’<dd><a name="index-g_t_002ettf-696"></a><a name="index-g_t_002ettc-697"></a><a name="index-TTFONTS-698"></a>(TrueType outline fonts) <code>TTFONTS</code>; suffixes ‘<samp><span class="samp">.ttf</span></samp>’ and -‘<samp><span class="samp">.TTF</span></samp>’, ‘<samp><span class="samp">.ttc</span></samp>’ and ‘<samp><span class="samp">.TTC</span></samp>’, ‘<samp><span class="samp">.dfont</span></samp>’. - - <br><dt>‘<samp><span class="samp">type1 fonts</span></samp>’<dd><a name="index-g_t_002epfa-699"></a><a name="index-g_t_002epfb-700"></a><a name="index-T1FONTS-701"></a><a name="index-T1INPUTS-702"></a><a name="index-TEXPSHEADERS-703"></a><a name="index-DVIPSHEADERS-704"></a>(Type 1 PostScript outline fonts, see <a href="dvips.html#Glyph-files">Glyph files</a>) +</p> +</dd> +<dt>‘<samp>truetype fonts</samp>’</dt> +<dd><a name="index-_002ettf"></a> +<a name="index-_002ettc"></a> +<a name="index-TTFONTS"></a> +<p>(TrueType outline fonts) <code>TTFONTS</code>; suffixes ‘<samp>.ttf</samp>’ and +‘<samp>.TTF</samp>’, ‘<samp>.ttc</samp>’ and ‘<samp>.TTC</samp>’, ‘<samp>.dfont</samp>’. +</p> +</dd> +<dt>‘<samp>type1 fonts</samp>’</dt> +<dd><a name="index-_002epfa"></a> +<a name="index-_002epfb"></a> +<a name="index-T1FONTS"></a> +<a name="index-T1INPUTS"></a> +<a name="index-TEXPSHEADERS-1"></a> +<a name="index-DVIPSHEADERS"></a> +<p>(Type 1 PostScript outline fonts, see <a href="dvips.html#Glyph-files">Glyph files</a> in <cite>Dvips</cite>) <code>T1FONTS</code>, <code>T1INPUTS</code>, <code>TEXPSHEADERS</code>, <code>DVIPSHEADERS</code>; -suffixes ‘<samp><span class="samp">.pfa</span></samp>’, ‘<samp><span class="samp">.pfb</span></samp>’. - - <br><dt>‘<samp><span class="samp">type42 fonts</span></samp>’<dd><a name="index-T42FONTS-705"></a>(Type 42 PostScript outline fonts) <code>T42FONTS</code>. - - <br><dt>‘<samp><span class="samp">vf</span></samp>’<dd><a name="index-g_t_002evf-706"></a><a name="index-VFFONTS-707"></a><a name="index-TEXFONTS-708"></a>(virtual fonts, see <a href="dvips.html#Virtual-fonts">Virtual fonts</a>) +suffixes ‘<samp>.pfa</samp>’, ‘<samp>.pfb</samp>’. +</p> +</dd> +<dt>‘<samp>type42 fonts</samp>’</dt> +<dd><a name="index-T42FONTS"></a> +<p>(Type 42 PostScript outline fonts) <code>T42FONTS</code>. +</p> +</dd> +<dt>‘<samp>vf</samp>’</dt> +<dd><a name="index-_002evf"></a> +<a name="index-VFFONTS"></a> +<a name="index-TEXFONTS-3"></a> +<p>(virtual fonts, see <a href="dvips.html#Virtual-fonts">Virtual fonts</a> in <cite>Dvips</cite>) <code>VFFONTS</code>, <code>TEXFONTS</code>; -suffix ‘<samp><span class="samp">.vf</span></samp>’. - - <br><dt>‘<samp><span class="samp">web</span></samp>’<dd><a name="index-g_t_002eweb-709"></a><a name="index-WEBINPUTS-710"></a>(WEB input files) +suffix ‘<samp>.vf</samp>’. +</p> +</dd> +<dt>‘<samp>web</samp>’</dt> +<dd><a name="index-_002eweb-1"></a> +<a name="index-WEBINPUTS"></a> +<p>(WEB input files) <code>WEBINPUTS</code>; -suffix ‘<samp><span class="samp">.web</span></samp>’; -additional suffix ‘<samp><span class="samp">.ch</span></samp>’. - - <br><dt>‘<samp><span class="samp">web2c files</span></samp>’<dd><a name="index-WEB2C-711"></a>(files specific to the web2c implementation) -<code>WEB2C</code>. +suffix ‘<samp>.web</samp>’; +additional suffix ‘<samp>.ch</samp>’. +</p> +</dd> +<dt>‘<samp>web2c files</samp>’</dt> +<dd><a name="index-WEB2C"></a> +<p>(files specific to the web2c implementation) +<code>WEB2C</code>. +</p></dd> </dl> - <p>There are two special cases, because the paths and environment variables +<p>There are two special cases, because the paths and environment variables always depend on the name of the program: the variable name is constructed by converting the program name to upper case, and then -appending ‘<samp><span class="samp">INPUTS</span></samp>’. Assuming the program is called ‘<samp><span class="samp">foo</span></samp>’, +appending ‘<samp>INPUTS</samp>’. Assuming the program is called ‘<samp>foo</samp>’, this gives us the following table. - - <dl> -<dt>‘<samp><span class="samp">other text files</span></samp>’<dd><a name="index-FOOINPUTS-712"></a>(text files used by ‘<samp><span class="samp">foo</span></samp>’) +</p> +<dl compact="compact"> +<dt>‘<samp>other text files</samp>’</dt> +<dd><a name="index-FOOINPUTS"></a> +<p>(text files used by ‘<samp>foo</samp>’) <code>FOOINPUTS</code>. - - <br><dt>‘<samp><span class="samp">other binary files</span></samp>’<dd><a name="index-FOOINPUTS-713"></a>(binary files used by ‘<samp><span class="samp">foo</span></samp>’) -<code>FOOINPUTS</code>. +</p> +</dd> +<dt>‘<samp>other binary files</samp>’</dt> +<dd><a name="index-FOOINPUTS-1"></a> +<p>(binary files used by ‘<samp>foo</samp>’) +<code>FOOINPUTS</code>. +</p></dd> </dl> - <p>If an environment variable by these names are set, the corresponding -<samp><span class="file">texmf.cnf</span></samp> definition won't be looked at (unless, as usual, the -environment variable value has an extra ‘<samp><span class="samp">:</span></samp>’). See <a href="#Default-expansion">Default expansion</a>. +<p>If an environment variable by these names are set, the corresponding +<samp>texmf.cnf</samp> definition won’t be looked at (unless, as usual, the +environment variable value has an extra ‘<samp>:</samp>’). See <a href="#Default-expansion">Default expansion</a>. +</p> +<p>For the font variables, the intent is that: +</p><ul> +<li> <code>TEXFONTS</code> is the default for everything. - <p>For the font variables, the intent is that: - <ul> -<li><code>TEXFONTS</code> is the default for everything. - - <li><code>GLYPHFONTS</code> is the default for bitmap (or, more precisely, +</li><li> <code>GLYPHFONTS</code> is the default for bitmap (or, more precisely, non-metric) files. - <li>Each font format has a variable of its own. +</li><li> Each font format has a variable of its own. - <li><a name="index-XDVIFONTS-714"></a><a name="index-DVIPSFONTS-715"></a>Each program has its own font override path as well; e.g., +</li><li> <a name="index-XDVIFONTS"></a> +<a name="index-DVIPSFONTS"></a> +Each program has its own font override path as well; e.g., <code>DVIPSFONTS</code> for Dvipsk. Again, this is for bitmaps, not metrics. - </ul> +</li></ul> -<div class="node"> -<a name="File-lookup"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Glyph-lookup">Glyph lookup</a>, -Previous: <a rel="previous" accesskey="p" href="#Supported-file-formats">Supported file formats</a>, -Up: <a rel="up" accesskey="u" href="#TeX-support">TeX support</a> +<hr> +<a name="File-lookup"></a> +<div class="header"> +<p> +Next: <a href="#Glyph-lookup" accesskey="n" rel="next">Glyph lookup</a>, Previous: <a href="#Supported-file-formats" accesskey="p" rel="prev">Supported file formats</a>, Up: <a href="#TeX-support" accesskey="u" rel="up">TeX support</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="File-lookup-1"></a> +<h3 class="section">6.2 File lookup</h3> -<h3 class="section">4.2 File lookup</h3> +<a name="index-file-lookup"></a> +<a name="index-searching-for-files"></a> +<a name="index-TeX-file-lookup"></a> -<p><a name="index-file-lookup-716"></a><a name="index-searching-for-files-717"></a><a name="index-g_t_0040TeX_007b_007d-file-lookup-718"></a> -This section describes how Kpathsea searches for most files (bitmap font +<p>This section describes how Kpathsea searches for most files (bitmap font searches are the exception, as described in the next section). - - <p>Here is the search strategy for a file <var>name</var>: - - <ol type=1 start=1> -<li>If the file format defines default suffixes, and the suffix of +</p> +<p>Here is the search strategy for a file <var>name</var>: +</p> +<ol> +<li> If the file format defines default suffixes, and the suffix of <var>name</var> name is not already a known suffix for that format, try the name with each default appended, and use alternative names found in -the fontmaps if necessary. Example: given ‘<samp><span class="samp">foo.bar</span></samp>’, look for -‘<samp><span class="samp">foo.bar.tex</span></samp>’. +the fontmaps if necessary. Example: given ‘<samp>foo.bar</samp>’, look for +‘<samp>foo.bar.tex</samp>’. - <li>Search for <var>name</var>, and if necessary for alternative names found in -the fontmaps. Example: given ‘<samp><span class="samp">foo.bar</span></samp>’, we also look for -‘<samp><span class="samp">foo.bar</span></samp>’. +</li><li> Search for <var>name</var>, and if necessary for alternative names found in +the fontmaps. Example: given ‘<samp>foo.bar</samp>’, we also look for +‘<samp>foo.bar</samp>’. - <li>If the file format defines a program to invoke to create missing files, +</li><li> If the file format defines a program to invoke to create missing files, run it (see <a href="#mktex-scripts">mktex scripts</a>). - </ol> +</li></ol> - <p><a name="index-extensions_002c-filename-719"></a><a name="index-suffixes_002c-filename-720"></a><a name="index-try_005fstd_005fextension_005ffirst-721"></a>The order in which we search for “suffixed” name (item 1) or +<a name="index-extensions_002c-filename"></a> +<a name="index-suffixes_002c-filename"></a> +<a name="index-try_005fstd_005fextension_005ffirst"></a> +<p>The order in which we search for “suffixed” name (item 1) or the “as-is” name (item 2) is controlled by the -<samp><span class="file">try_std_extension_first</span></samp> configuration value. The default set -in <samp><span class="file">texmf.cnf</span></samp> is true, since common suffixes are already -recognized: ‘<samp><span class="samp">babel.sty</span></samp>’ will only look for ‘<samp><span class="samp">babel.sty</span></samp>’, not -‘<samp><span class="samp">babel.sty.tex</span></samp>’, regardless of this setting. - - <p>When the suffix is unknown (e.g., ‘<samp><span class="samp">foo.bar</span></samp>’), both names are +<samp>try_std_extension_first</samp> configuration value. The default set +in <samp>texmf.cnf</samp> is true, since common suffixes are already +recognized: ‘<samp>babel.sty</samp>’ will only look for ‘<samp>babel.sty</samp>’, not +‘<samp>babel.sty.tex</samp>’, regardless of this setting. +</p> +<p>When the suffix is unknown (e.g., ‘<samp>foo.bar</samp>’), both names are always tried; the difference is the order in which they are tried. - - <p><samp><span class="file">try_std_extension_first</span></samp> only affects names being looked up +</p> +<p><samp>try_std_extension_first</samp> only affects names being looked up which *already* have an extension. A name without an extension (e.g., -‘<samp><span class="samp">tex story</span></samp>’) will always have an extension added first. - - <p><a name="index-tex_002dfile_002ec-722"></a><a name="index-kpathsea_005ffind_005ffile-723"></a>This algorithm is implemented in the function +‘<samp>tex story</samp>’) will always have an extension added first. +</p> +<a name="index-tex_002dfile_002ec"></a> +<a name="index-kpathsea_005ffind_005ffile"></a> +<p>This algorithm is implemented in the function <code>kpathsea_find_file</code> in the source file -<samp><span class="file">kpathsea/tex-file.c</span></samp>. You can watch it in action with the +<samp>kpathsea/tex-file.c</samp>. You can watch it in action with the debugging options (see <a href="#Debugging">Debugging</a>). +</p> -<div class="node"> +<hr> <a name="Glyph-lookup"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Suppressing-warnings">Suppressing warnings</a>, -Previous: <a rel="previous" accesskey="p" href="#File-lookup">File lookup</a>, -Up: <a rel="up" accesskey="u" href="#TeX-support">TeX support</a> - +<div class="header"> +<p> +Next: <a href="#Suppressing-warnings" accesskey="n" rel="next">Suppressing warnings</a>, Previous: <a href="#File-lookup" accesskey="p" rel="prev">File lookup</a>, Up: <a href="#TeX-support" accesskey="u" rel="up">TeX support</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Glyph-lookup-1"></a> +<h3 class="section">6.3 Glyph lookup</h3> -<h3 class="section">4.3 Glyph lookup</h3> +<a name="index-glyph-lookup"></a> +<a name="index-searching-for-glyphs"></a> +<a name="index-TeX-glyph-lookup"></a> -<p><a name="index-glyph-lookup-724"></a><a name="index-searching-for-glyphs-725"></a><a name="index-g_t_0040TeX_007b_007d-glyph-lookup-726"></a> -This section describes how Kpathsea searches for a bitmap font in GF or -PK format (or either) given a font name (e.g., ‘<samp><span class="samp">cmr10</span></samp>’) and a +<p>This section describes how Kpathsea searches for a bitmap font in GF or +PK format (or either) given a font name (e.g., ‘<samp>cmr10</samp>’) and a resolution (e.g., 600). - - <p>Here is an outline of the search strategy (details in the sections +</p> +<p>Here is an outline of the search strategy (details in the sections below) for a file <var>name</var> at resolution <var>dpi</var>. The search stops at the first successful lookup. - - <ol type=1 start=1> -<li>Look for an existing file <var>name</var>.<var>dpi</var><var>format</var> in the +</p> +<ol> +<li> Look for an existing file <var>name</var>.<var>dpi</var><var>format</var> in the specified format(s). - <li>If <var>name</var> is an alias for a file <var>f</var> in the fontmap -file <samp><span class="file">texfonts.map</span></samp>, look for <var>f</var>.<var>dpi</var>. +</li><li> If <var>name</var> is an alias for a file <var>f</var> in the fontmap +file <samp>texfonts.map</samp>, look for <var>f</var>.<var>dpi</var>. - <li>Run an external program (typically named ‘<samp><span class="samp">mktexpk</span></samp>’) to +</li><li> Run an external program (typically named ‘<samp>mktexpk</samp>’) to generate the font (see <a href="#mktex-scripts">mktex scripts</a>) - <li>Look for <var>fallback</var>.<var>dpi</var>, where <var>fallback</var> is some -last-resort font (typically ‘<samp><span class="samp">cmr10</span></samp>’). - </ol> - - <p><a name="index-tex_002dglyph_002ec-727"></a><a name="index-kpathsea_005ffind_005fglyph-728"></a>This is implemented in <code>kpathsea_find_glyph</code> in -<samp><span class="file">kpathsea/tex-glyph.c</span></samp>. - -<ul class="menu"> -<li><a accesskey="1" href="#Basic-glyph-lookup">Basic glyph lookup</a>: Features common to all glyph lookups. -<li><a accesskey="2" href="#Fontmap">Fontmap</a>: Aliases for fonts. -<li><a accesskey="3" href="#Fallback-font">Fallback font</a>: Resolutions and fonts of last resort. -</ul> - -<div class="node"> +</li><li> Look for <var>fallback</var>.<var>dpi</var>, where <var>fallback</var> is some +last-resort font (typically ‘<samp>cmr10</samp>’). +</li></ol> + +<a name="index-tex_002dglyph_002ec"></a> +<a name="index-kpathsea_005ffind_005fglyph"></a> +<p>This is implemented in <code>kpathsea_find_glyph</code> in +<samp>kpathsea/tex-glyph.c</samp>. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Basic-glyph-lookup" accesskey="1">Basic glyph lookup</a>:</td><td> </td><td align="left" valign="top">Features common to all glyph lookups. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Fontmap" accesskey="2">Fontmap</a>:</td><td> </td><td align="left" valign="top">Aliases for fonts. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Fallback-font" accesskey="3">Fallback font</a>:</td><td> </td><td align="left" valign="top">Resolutions and fonts of last resort. +</td></tr> +</table> + + +<hr> <a name="Basic-glyph-lookup"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Fontmap">Fontmap</a>, -Up: <a rel="up" accesskey="u" href="#Glyph-lookup">Glyph lookup</a> - +<div class="header"> +<p> +Next: <a href="#Fontmap" accesskey="n" rel="next">Fontmap</a>, Up: <a href="#Glyph-lookup" accesskey="u" rel="up">Glyph lookup</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Basic-glyph-lookup-1"></a> +<h4 class="subsection">6.3.1 Basic glyph lookup</h4> -<h4 class="subsection">4.3.1 Basic glyph lookup</h4> +<a name="index-basic-glyph-lookup"></a> +<a name="index-common-features-in-glyph-lookup"></a> -<p><a name="index-basic-glyph-lookup-729"></a><a name="index-common-features-in-glyph-lookup-730"></a> -When Kpathsea looks for a bitmap font <var>name</var> at resolution <var>dpi</var> +<p>When Kpathsea looks for a bitmap font <var>name</var> at resolution <var>dpi</var> in a format <var>format</var>, it first checks each directory in the search -path for a file ‘<samp><var>name</var><span class="samp">.</span><var>dpi</var><var>format</var></samp>’; for example, -‘<samp><span class="samp">cmr10.600pk</span></samp>’. Kpathsea looks for a PK file first, then a GF file. - - <p>If that fails, Kpathsea looks for -‘<samp><span class="samp">dpi</span><var>dpi</var><span class="samp">/</span><var>name</var><span class="samp">.</span><var>format</var></samp>’; for example, -‘<samp><span class="samp">dpi600/cmr10.pk</span></samp>’. This is how fonts are typically stored on +path for a file ‘<samp><var>name</var>.<var>dpi</var><var>format</var></samp>’; for example, +‘<samp>cmr10.600pk</samp>’. Kpathsea looks for a PK file first, then a GF file. +</p> +<p>If that fails, Kpathsea looks for +‘<samp>dpi<var>dpi</var>/<var>name</var>.<var>format</var></samp>’; for example, +‘<samp>dpi600/cmr10.pk</samp>’. This is how fonts are typically stored on filesystems (such as DOS) that permit only three-character extensions. - - <p><a name="index-tolerance-for-glyph-lookup-731"></a><a name="index-glyph-lookup-bitmap-tolerance-732"></a><a name="index-KPSE_005fBITMAP_005fTOLERANCE-733"></a>If that fails, Kpathsea looks for a font with a close-enough <var>dpi</var>. +</p> +<a name="index-tolerance-for-glyph-lookup"></a> +<a name="index-glyph-lookup-bitmap-tolerance"></a> +<a name="index-KPSE_005fBITMAP_005fTOLERANCE"></a> +<p>If that fails, Kpathsea looks for a font with a close-enough <var>dpi</var>. “Close enough” is defined by the macro <code>KPSE_BITMAP_TOLERANCE</code> in -<samp><span class="file">kpathsea/tex-glyph.h</span></samp> to be <var>dpi</var><code> / 500 + 1</code>. This is +<samp>kpathsea/tex-glyph.h</samp> to be <code><var>dpi</var> / 500 + 1</code>. This is slightly more than the 0.2% minimum allowed by the DVI standard -(<a href="<var>CTAN:</var>/dviware/driv-standard/level-0"><var>CTAN:</var>/dviware/driv-standard/level-0</a>). +(<a href="CTAN:/dviware/driv-standard/level-0">CTAN:/dviware/driv-standard/level-0</a>). +</p> -<div class="node"> +<hr> <a name="Fontmap"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Fallback-font">Fallback font</a>, -Previous: <a rel="previous" accesskey="p" href="#Basic-glyph-lookup">Basic glyph lookup</a>, -Up: <a rel="up" accesskey="u" href="#Glyph-lookup">Glyph lookup</a> - +<div class="header"> +<p> +Next: <a href="#Fallback-font" accesskey="n" rel="next">Fallback font</a>, Previous: <a href="#Basic-glyph-lookup" accesskey="p" rel="prev">Basic glyph lookup</a>, Up: <a href="#Glyph-lookup" accesskey="u" rel="up">Glyph lookup</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h4 class="subsection">4.3.2 Fontmap</h4> - -<p><a name="index-fontmap-files-734"></a><a name="index-font-alias-files-735"></a><a name="index-aliases-for-fonts-736"></a> -<a name="index-texfonts_002emap-737"></a>If a bitmap font or metric file is not found with the original name (see -the previous section), Kpathsea looks through any <dfn>fontmap</dfn> files -for an <dfn>alias</dfn> for the original font name. These files are named -<samp><span class="file">texfonts.map</span></samp> and searched for along the <code>TEXFONTMAPS</code> -environment/config file variable. All <samp><span class="file">texfonts.map</span></samp> files that +<a name="Fontmap-1"></a> +<h4 class="subsection">6.3.2 Fontmap</h4> + +<a name="index-fontmap-files"></a> +<a name="index-font-alias-files"></a> +<a name="index-aliases-for-fonts"></a> + +<a name="index-texfonts_002emap"></a> +<p>If a bitmap font or metric file is not found with the original name (see +the previous section), Kpathsea looks through any <em>fontmap</em> files +for an <em>alias</em> for the original font name. These files are named +<samp>texfonts.map</samp> and searched for along the <code>TEXFONTMAPS</code> +environment/config file variable. All <samp>texfonts.map</samp> files that are found are read; earlier definitions override later ones. - - <p>This feature is intended to help in two respects: - - <ol type=1 start=1> - - <li><a name="index-fontnames_002c-arbitrary-length-738"></a>An alias name is limited in length only by available memory, not by your -filesystem. Therefore, if you want to ask for ‘<samp><span class="samp">Times-Roman</span></samp>’ -instead of <samp><span class="file">ptmr</span></samp>, you can (you get ‘<samp><span class="samp">ptmr8r</span></samp>’). - - <li><a name="index-circle-fonts-739"></a><a name="index-lcircle10-740"></a>A few fonts have historically had multiple names: specifically, -LaTeX's “circle font” has variously been known as <samp><span class="file">circle10</span></samp>, -<samp><span class="file">lcircle10</span></samp>, and <samp><span class="file">lcirc10</span></samp>. Aliases can make all the names +</p> +<p>This feature is intended to help in two respects: +</p> +<ol> +<li> <a name="index-fontnames_002c-arbitrary-length"></a> +An alias name is limited in length only by available memory, not by your +filesystem. Therefore, if you want to ask for ‘<samp>Times-Roman</samp>’ +instead of <samp>ptmr</samp>, you can (you get ‘<samp>ptmr8r</samp>’). + +</li><li> <a name="index-circle-fonts"></a> +<a name="index-lcircle10"></a> +A few fonts have historically had multiple names: specifically, +LaTeX’s “circle font” has variously been known as <samp>circle10</samp>, +<samp>lcircle10</samp>, and <samp>lcirc10</samp>. Aliases can make all the names equivalent, so that it no longer matters what the name of the installed file is; TeX documents will find their favorite name. - </ol> - - <p>The format of fontmap files is straightforward: - - -<a name="index-comments_002c-in-fontmap-files-741"></a> -<ul><li>Comments start with ‘<samp><span class="samp">%</span></samp>’ and continue to the end of the line. -<a name="index-whitespace_002c-in-fontmap-files-742"></a><li>Blank lines are ignored. -<li>Each nonblank line is broken up into a series of <dfn>words</dfn>: - a sequence of non-whitespace characters. -<a name="index-include-_0040r_007bfontmap-directive_007d-743"></a><li>If the first word is ‘<samp><span class="samp">include</span></samp>’, the second word is used as - a filename, and it is searched for and read. -<li>Otherwise, the first word on each line is the true filename; -<li>the second word is the alias; -<li>subsequent words are ignored. -</ul> +</li></ol> + +<p>The format of fontmap files is straightforward: +</p> +<ul> +<li> <a name="index-comments_002c-in-fontmap-files"></a> +Comments start with ‘<samp>%</samp>’ and continue to the end of the line. +</li><li> <a name="index-whitespace_002c-in-fontmap-files"></a> +Blank lines are ignored. +</li><li> Each nonblank line is broken up into a series of <em>words</em>: + a sequence of non-whitespace characters. +</li><li> <a name="index-include-fontmap-directive"></a> +If the first word is ‘<samp>include</samp>’, the second word is used as + a filename, and it is searched for and read. +</li><li> Otherwise, the first word on each line is the true filename; +</li><li> the second word is the alias; +</li><li> subsequent words are ignored. +</li></ul> - <p>If an alias has an extension, it matches only those files with that +<p>If an alias has an extension, it matches only those files with that extension; otherwise, it matches anything with the same root, regardless -of extension. For example, an alias ‘<samp><span class="samp">foo.tfm</span></samp>’ matches only when -<samp><span class="file">foo.tfm</span></samp> is being searched for; but an alias ‘<samp><span class="samp">foo</span></samp>’ matches -<samp><span class="file">foo.vf</span></samp>, <samp><span class="file">foo.600pk</span></samp>, etc. - - <p>As an example, here is an excerpt from the <samp><span class="file">texfonts.map</span></samp> in the -Web2c distribution. It makes the circle fonts equivalent and includes -automatically generated maps for most PostScript fonts available from -various font suppliers. - -<pre class="example"> circle10 lcircle10 - circle10 lcirc10 - lcircle10 circle10 - lcircle10 lcirc10 - lcirc10 circle10 - lcirc10 lcircle10 - ... - include adobe.map - include apple.map - include bitstrea.map - ... -</pre> - <p>Fontmaps are implemented in the file <samp><span class="file">kpathsea/fontmap.c</span></samp>. +of extension. For example, an alias ‘<samp>foo.tfm</samp>’ matches only when +<samp>foo.tfm</samp> is being searched for; but an alias ‘<samp>foo</samp>’ matches +<samp>foo.vf</samp>, <samp>foo.600pk</samp>, etc. +</p> +<p>As an example, here is an excerpt from the <samp>texfonts.map</samp> in the +Web2c distribution. It makes the old and new names of the LaTeX +circle fonts equivalent. +</p> +<div class="example"> +<pre class="example">circle10 lcircle10 +circle10 lcirc10 +lcircle10 circle10 +lcircle10 lcirc10 +lcirc10 circle10 +lcirc10 lcircle10 +… +</pre></div> + +<p>Fontmaps are implemented in the file <samp>kpathsea/fontmap.c</samp>. The Fontname distribution has much more information on font naming -(see <a href="fontname.html#Introduction">Introduction</a>). +(see <cite><a href="fontname.html#Top">Filenames for TeX fonts</a></cite>). +</p> -<div class="node"> +<hr> <a name="Fallback-font"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Fontmap">Fontmap</a>, -Up: <a rel="up" accesskey="u" href="#Glyph-lookup">Glyph lookup</a> - +<div class="header"> +<p> +Previous: <a href="#Fontmap" accesskey="p" rel="prev">Fontmap</a>, Up: <a href="#Glyph-lookup" accesskey="u" rel="up">Glyph lookup</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h4 class="subsection">4.3.3 Fallback font</h4> - -<p><a name="index-fallback-font-744"></a><a name="index-fallback-resolutions-745"></a><a name="index-font-of-last-resort-746"></a><a name="index-resolutions_002c-last_002dresort-747"></a><a name="index-last_002dresort-font-748"></a> -<a name="index-DVIPSSIZES-749"></a><a name="index-XDVISIZES-750"></a><a name="index-DVILJSIZES-751"></a><a name="index-TEXSIZES-752"></a><a name="index-default_005ftexsizes-753"></a>If a bitmap font cannot be found or created at the requested size, -Kpathsea looks for the font at a set of <dfn>fallback resolutions</dfn>. You -specify these resolutions as a colon-separated list (like search paths). +<a name="Fallback-font-1"></a> +<h4 class="subsection">6.3.3 Fallback font</h4> + +<a name="index-fallback-font"></a> +<a name="index-fallback-resolutions"></a> +<a name="index-font-of-last-resort"></a> +<a name="index-resolutions_002c-last_002dresort"></a> +<a name="index-last_002dresort-font"></a> + +<a name="index-DVIPSSIZES"></a> +<a name="index-XDVISIZES"></a> +<a name="index-DVILJSIZES"></a> +<a name="index-TEXSIZES"></a> +<a name="index-default_005ftexsizes"></a> +<p>If a bitmap font cannot be found or created at the requested size, +Kpathsea looks for the font at a set of <em>fallback resolutions</em>. You +specify these resolutions as a colon-separated list (like search paths). Kpathsea looks first for a program-specific environment variable (e.g., <code>DVIPSSIZES</code> for Dvipsk), then the environment variable <code>TEXSIZES</code>, then a default specified at compilation time (the Make variable <code>default_texsizes</code>). You can set this list to be empty if you prefer to find fonts at their stated size or not at all. - - <p><a name="index-cmr10_0040r_007b_002c-as-fallback-font_007d-754"></a><a name="index-kpathsea_005finit_005fprog-755"></a>Finally, if the font cannot be found even at the fallback resolutions, -Kpathsea looks for a fallback font, typically <samp><span class="file">cmr10</span></samp>. Programs +</p> +<a name="index-cmr10_002c-as-fallback-font"></a> +<a name="index-kpathsea_005finit_005fprog"></a> +<p>Finally, if the font cannot be found even at the fallback resolutions, +Kpathsea looks for a fallback font, typically <samp>cmr10</samp>. Programs must enable this feature by calling <code>kpathsea_init_prog</code> (see <a href="#Calling-sequence">Calling sequence</a>); the default is no fallback font. +</p> -<div class="node"> +<hr> <a name="Suppressing-warnings"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Glyph-lookup">Glyph lookup</a>, -Up: <a rel="up" accesskey="u" href="#TeX-support">TeX support</a> - +<div class="header"> +<p> +Next: <a href="#mktex-scripts" accesskey="n" rel="next">mktex scripts</a>, Previous: <a href="#Glyph-lookup" accesskey="p" rel="prev">Glyph lookup</a>, Up: <a href="#TeX-support" accesskey="u" rel="up">TeX support</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Suppressing-warnings-1"></a> +<h3 class="section">6.4 Suppressing warnings</h3> -<h3 class="section">4.4 Suppressing warnings</h3> +<a name="index-warnings_002c-suppressing"></a> +<a name="index-suppressing-warnings"></a> -<p><a name="index-warnings_002c-suppressing-756"></a><a name="index-suppressing-warnings-757"></a> -<a name="index-TEX_005fHUSH-758"></a>Kpathsea provides a way to suppress selected usually-harmless warnings; +<a name="index-TEX_005fHUSH-1"></a> +<p>Kpathsea provides a way to suppress selected usually-harmless warnings; this is useful at large sites where most users are not administrators, and thus the warnings are merely a source of confusion, not a help. To do this, you set the environment variable or configuration file value <code>TEX_HUSH</code> to a colon-separated list of values. Here are the possibilities: +</p> +<dl compact="compact"> +<dt>‘<samp>all</samp>’ +<a name="index-all"></a> +</dt> +<dd><p>Suppress everything possible. +</p> +</dd> +<dt>‘<samp>checksum</samp>’ +<a name="index-checksum"></a> +</dt> +<dd><a name="index-mismatched-checksum-warnings"></a> +<p>Suppress mismatched font checksum warnings. +</p> +</dd> +<dt>‘<samp>lostchar</samp>’ +<a name="index-lostchar"></a> +</dt> +<dd><a name="index-missing-character-warnings"></a> +<p>Suppress warnings when a character is missing from a font that a DVI or +VF file tries to typeset. +</p> +</dd> +<dt>‘<samp>none</samp>’ +<a name="index-none"></a> +</dt> +<dd><p>Don’t suppress any warnings. +</p> +</dd> +<dt>‘<samp>readable</samp>’ +<a name="index-readable"></a> +</dt> +<dd><a name="index-unreadable-file-warnings"></a> +<p>Suppress warnings about attempts to access a file whose permissions +render it unreadable. +</p> +</dd> +<dt>‘<samp>special</samp>’ +<a name="index-special"></a> +</dt> +<dd><a name="index-unknown-special-warnings"></a> +<a name="index-_005cspecial_002c-suppressing-warnings-about"></a> +<p>Suppresses warnings about an unimplemented or unparsable +‘<samp>\special</samp>’ command. +</p></dd> +</dl> - <dl> -<dt>‘<samp><span class="samp">all</span></samp>’<a name="index-all-759"></a><dd>Suppress everything possible. +<p><samp>tex-hush.c</samp> defines the function that checks the +variable value. Each driver implements its own checks where +appropriate. +</p> - <br><dt>‘<samp><span class="samp">checksum</span></samp>’<a name="index-checksum-760"></a><dd><a name="index-mismatched-checksum-warnings-761"></a>Suppress mismatched font checksum warnings. +<hr> +<a name="mktex-scripts"></a> +<div class="header"> +<p> +Previous: <a href="#Suppressing-warnings" accesskey="p" rel="prev">Suppressing warnings</a>, Up: <a href="#TeX-support" accesskey="u" rel="up">TeX support</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="mktex-scripts-1"></a> +<h3 class="section">6.5 <samp>mktex</samp> scripts</h3> - <br><dt>‘<samp><span class="samp">lostchar</span></samp>’<a name="index-lostchar-762"></a><dd><a name="index-missing-character-warnings-763"></a>Suppress warnings when a character is missing from a font that a DVI or -VF file tries to typeset. +<a name="index-mktex-scripts"></a> +<a name="index-scripts-for-file-creation"></a> - <br><dt>‘<samp><span class="samp">none</span></samp>’<a name="index-none-764"></a><dd>Don't suppress any warnings. +<a name="index-font-set_002c-infinite"></a> +<a name="index-dynamic-creation-of-files"></a> +<a name="index-Sauter-fonts_002c-and-dynamic-source-creation"></a> +<a name="index-EC-fonts_002c-and-dynamic-source-creation"></a> +<p>If Kpathsea cannot otherwise find a file, for some file types it is +configured by default to invoke an external program to create it +dynamically (see <a href="#mktex-configuration">mktex configuration</a>). These are collectively +known as <em><code>mktex</code> scripts</em>, since most of them are named +<code>mktex...</code>. +</p> +<p>For example, this is useful for fonts (bitmaps, TFM’s, and +arbitrarily-sizable Metafont sources such as the Sauter and EC fonts), +since any given document can use fonts never before referenced. +Building all fonts in advance is therefore impractical, if not +impossible. +</p> +<p>It is also useful for the TeX ‘<samp>.fmt</samp>’ (and Metafont +‘<samp>.base</samp>’ and Metapost ‘<samp>.mem</samp>’ files, see <a href="Web2c.html#Memory-dumps">Memory +dumps</a> in <cite>web2c</cite>), where pre-generating every format consumes a +lot of both time and space. +</p> +<p>The script is passed the name of the file to create and possibly other +arguments, as explained below. It must echo the full pathname of the +file it created (and nothing else) to standard output; it can write +diagnostics to standard error. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#mktex-configuration" accesskey="1">config</a>:</td><td> </td><td align="left" valign="top"> +</td></tr> +<tr><td align="left" valign="top">• <a href="#mktex-script-names" accesskey="2">names</a>:</td><td> </td><td align="left" valign="top"> +</td></tr> +<tr><td align="left" valign="top">• <a href="#mktex-script-arguments" accesskey="3">args</a>:</td><td> </td><td align="left" valign="top"> +</td></tr> +</table> + + +<hr> +<a name="mktex-configuration"></a> +<div class="header"> +<p> +Next: <a href="#mktex-script-names" accesskey="n" rel="next">mktex script names</a>, Up: <a href="#mktex-scripts" accesskey="u" rel="up">mktex scripts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="mktex-configuration-1"></a> +<h4 class="subsection">6.5.1 <samp>mktex</samp> configuration</h4> - <br><dt>‘<samp><span class="samp">readable</span></samp>’<a name="index-readable-765"></a><dd><a name="index-unreadable-file-warnings-766"></a>Suppress warnings about attempts to access a file whose permissions -render it unreadable. +<a name="index-mktex-script-configuration"></a> +<a name="index-configuration-of-mktex-scripts"></a> +<a name="index-enabling-mktex-scripts"></a> +<a name="index-disabling-mktex-scripts"></a> - <br><dt>‘<samp><span class="samp">special</span></samp>’<a name="index-special-767"></a><dd><a name="index-unknown-special-warnings-768"></a><a name="index-g_t_005cspecial_0040r_007b_002c-suppressing-warnings-about_007d-769"></a>Suppresses warnings about an unimplemented or unparsable -‘<samp><span class="samp">\special</span></samp>’ command. +<p>The list of file types and program names that can run an external +program to create missing files is listed in the next section. In the +absence of <code>configure</code> options specifying otherwise, everything +but <samp>mktextex</samp> will be enabled by default. The <code>configure</code> +options to change the defaults are: +</p> +<a name="index-configure-options-for-mktex-scripts"></a> +<a name="index-_002d_002dwithout_002dmktexfmt_002ddefault"></a> +<a name="index-_002d_002dwithout_002dmktexmf_002ddefault"></a> +<a name="index-_002d_002dwithout_002dmktexocp_002ddefault"></a> +<a name="index-_002d_002dwithout_002dmktexofm_002ddefault"></a> +<a name="index-_002d_002dwithout_002dmktexpk_002ddefault"></a> +<a name="index-_002d_002dwithout_002dmktextfm_002ddefault"></a> +<a name="index-_002d_002dwith_002dmktextex_002ddefault"></a> +<div class="example"> +<pre class="example">--without-mktexfmt-default +--without-mktexmf-default +--without-mktexocp-default +--without-mktexofm-default +--without-mktexpk-default +--without-mktextfm-default +--with-mktextex-default +</pre></div> + +<p>The <code>configure</code> setting is overridden if the environment variable +or configuration file value named for the script is set; e.g., +<samp>MKTEXPK</samp> (see <a href="#mktex-script-arguments">mktex script arguments</a>). +</p> +<a name="index-fmtutils_002ecnf"></a> +<p><code>mktexfmt</code> reads a file <samp>fmtutil.cnf</samp>, typically located in +<samp>texmf/web2c/</samp> to glean its configuration information. The rest +of the files and features in this section are primarily intended for +the font generation scripts. +</p> +<a name="index-mktex_002ecnf-1"></a> +<a name="index-mktex_002eopt"></a> +<a name="index-site-overrides-for-mktex_2026"></a> +<p>As distributed, all the scripts source a file +<samp>texmf/web2c/mktex.cnf</samp> if it exists, so you can override various +defaults. +See <samp>mktex.opt</samp>, for instance, which defines the default mode, +resolution, some special directory names, etc. If you prefer not to +change the distributed scripts, you can simply create <samp>mktex.cnf</samp> +with the appropriate definitions (you do not need to create it if you +have nothing to put in it). <samp>mktex.cnf</samp> has no special syntax; +it’s an arbitrary Bourne shell script. The distribution contains a +sample <samp>mktex.cnf</samp> for you to copy and modify as you please (it +is not installed anywhere). +</p> +<a name="index-mktex_002eopt-1"></a> +<a name="index-MT_005fFEATURES"></a> +<p>In addition, you can configure a number of features with the +<code>MT_FEATURES</code> variable, which you can define: +</p> +<ul> +<li> in <samp>mktex.opt</samp>, as just mentioned; + +</li><li> by editing the file <samp>mktex.opt</samp>, either before ‘<samp>make +install</samp>’ (in the source hierarchy) or after (in the installed +hierarchy); + +</li><li> or in the environment. +</li></ul> + +<p>If none of the options below are enabled, <code>mktexpk</code>, +<code>mktextfm</code>, and <code>mktexmf</code> follow the following procedure to +decide where fonts should be installed. Find the tree where the font’s +sources are, and test the permissions of the ‘<samp>fonts</samp>’ directory of +that tree to determine whether it is writable. If it is, put the files +in the tree in appropriate locations. If it isn’t writable, see whether +the tree is a system tree (named in <code>SYSTEXMF</code>). If so, the +<code>VARTEXFONTS</code> tree is used. In all other cases the working +directory is used. +</p> +<p>The ‘<samp>appendonlydir</samp>’ option is enabled by default. +</p> +<dl compact="compact"> +<dt>‘<samp>appendonlydir</samp>’ +<a name="index-appendonlydir"></a> +</dt> +<dd><a name="index-directories_002c-making-append_002donly"></a> +<a name="index-mktexdir"></a> +<p>Tell <code>mktexdir</code> to create directories append-only, i.e., set +their sticky bit (see <a href="http://www.gnu.org/software/coreutils/manual/coreutils#Mode-Structure">Mode Structure</a> in <cite>GNU Core +Utilities</cite>). This feature is silently ignored on non-Unix platforms +(e.g. Windows/NT and MS-DOS) which don’t support similar functionality. +This feature is enabled by default. +</p> +</dd> +<dt>‘<samp>dosnames</samp>’ +<a name="index-dosnames"></a> +</dt> +<dd><a name="index-8_002e3-filenames_002c-using"></a> +<a name="index-DOS-compatible-names"></a> +<a name="index-dpinnn-directories"></a> +<p>Use 8.3 names; e.g., <samp>dpi600/cmr10.pk</samp> instead of +<samp>cmr10.600pk</samp>. Note that this feature only affects filenames that +would otherwise clash with other TeX-related filenames; <samp>mktex</samp> +scripts do nothing about filenames which exceed the 8+3 MS-DOS limits +but remain unique when truncated (by the OS) to these limits, and nether +do the scripts care about possible clashes with files which aren’t +related with TeX. For example, <samp>cmr10.600pk</samp> would clash with +<samp>cmr10.600gf</samp> and is therefore changed when ‘<samp>dosnames</samp>’ is in +effect, but <samp>mf.pool</samp> and <samp>mp.base</samp> don’t clash with any +TeX-related files and are therefore unchanged. +</p> +<p>This feature is turned on by default on MS-DOS. If you do not wish +‘<samp>dosnames</samp>’ to be set on an MS-DOS platform, you need to set the +<code>MT_FEATURES</code> environment variable to a value that doesn’t include +‘<samp>dosnames</samp>’. You can also change the default setting by editing +<samp>mktex.opt</samp>, but only if you use the <samp>mktex</samp> shell scripts; +the emulation programs don’t consult <samp>mktex.opt</samp>. +</p> +</dd> +<dt>‘<samp>fontmaps</samp>’ +<a name="index-fontmaps-1"></a> +</dt> +<dd><a name="index-fontmaps"></a> +<a name="index-fontname"></a> +<p>Instead of deriving the location of a font in the destination tree from +the location of the sources, the aliases and directory names from the +Fontname distribution are used. (see <a href="fontname.html#Top">Introduction</a> in <cite>Fontname</cite>). +</p> +</dd> +<dt>‘<samp>nomfdrivers</samp>’ +<a name="index-nomfdrivers"></a> +</dt> +<dd><a name="index-metafont-driver-files"></a> +<p>Let mktexpk and mktextfm create metafont driver files in a temporary +directory. These will be used for just one metafont run and not +installed permanently. +</p> +</dd> +<dt>‘<samp>nomode</samp>’ +<a name="index-nomode"></a> +</dt> +<dd><a name="index-mode-directory_002c-omitting"></a> +<p>Omit the directory level for the mode name; this is fine as long as +you generate fonts for only one mode. +</p> +</dd> +<dt>‘<samp>stripsupplier</samp>’ +<a name="index-stripsupplier"></a> +</dt> +<dd><a name="index-supplier-directory_002c-omitting"></a> +<p>Omit the font supplier name directory level. +</p> +</dd> +<dt>‘<samp>striptypeface</samp>’ +<a name="index-striptypeface"></a> +</dt> +<dd><a name="index-typeface-directory_002c-omitting"></a> +<p>Omit the font typeface name directory level. +</p> +</dd> +<dt>‘<samp>strip</samp>’ +<a name="index-strip"></a> +</dt> +<dd><a name="index-supplier-directory_002c-omitting-1"></a> +<a name="index-typeface-directory_002c-omitting-1"></a> +<p>Omit the font supplier and typeface name directory levels. This feature +is deprecated in favour of ‘<samp>stripsupplier</samp>’ and ‘<samp>striptypeface</samp>’. +</p> +</dd> +<dt>‘<samp>varfonts</samp>’ +<a name="index-varfonts"></a> +</dt> +<dd><a name="index-_002fvar_002ftmp_002ftexfonts"></a> +<a name="index-VARTEXFONTS"></a> +<a name="index-Linux-File-System-Standard"></a> +<p>When this option is enabled, fonts that would otherwise be written in +system texmf tree go to the <code>VARTEXFONTS</code> tree instead. The +default value in <samp>kpathsea/Makefile.in</samp> is +<samp>/var/tmp/texfonts</samp>. The <cite>Linux File System Standard</cite> +recommends <samp>/var/tex/fonts</samp>. +</p> +<a name="index-USE_005fVARTEXFONTS"></a> +<p>The ‘<samp>varfonts</samp>’ setting in <code>MT_FEATURES</code> is overridden by the +<code>USE_VARTEXFONTS</code> environment variable: if set to ‘<samp>1</samp>’, the +feature is enabled, and if set to ‘<samp>0</samp>’, the feature is disabled. +</p> +</dd> +<dt>‘<samp>texmfvar</samp>’ +<a name="index-texmfvar"></a> +</dt> +<dd><a name="index-TEXMFVAR"></a> +<p>Force generated files that would go into a system tree (as defined by +<code>SYSTEXMF</code>) into <code>TEXMFVAR</code>. Starting with teTeX-3.0, the +variable <code>TEXMFVAR</code> is always set. The ‘<samp>varfonts</samp>’ feature takes +precedence if also set. +</p> +<a name="index-USE_005fTEXMFVAR"></a> +<p>The ‘<samp>texmfvar</samp>’ setting in <code>MT_FEATURES</code> is overridden by the +<code>USE_TEXMFVAR</code> environment variable: if set to ‘<samp>1</samp>’, the +feature is enabled, and if set to ‘<samp>0</samp>’, the feature is disabled. +</p></dd> </dl> -<p class="noindent"><samp><span class="file">tex-hush.c</span></samp> defines the function that checks the -variable value. Each driver implements its own checks where -appropriate. -<div class="node"> -<a name="Programming"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Index">Index</a>, -Previous: <a rel="previous" accesskey="p" href="#TeX-support">TeX support</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> +<hr> +<a name="mktex-script-names"></a> +<div class="header"> +<p> +Next: <a href="#mktex-script-arguments" accesskey="n" rel="next">mktex script arguments</a>, Previous: <a href="#mktex-configuration" accesskey="p" rel="prev">mktex configuration</a>, Up: <a href="#mktex-scripts" accesskey="u" rel="up">mktex scripts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="mktex-script-names-1"></a> +<h4 class="subsection">6.5.2 <samp>mktex</samp> script names</h4> + +<a name="index-mktex-script-names"></a> +<a name="index-names-for-mktex-scripts"></a> + +<p>The following table shows the default name of the script for each +of the file types which support runtime generation. +</p> +<dl compact="compact"> +<dt><samp>mktexfmt</samp></dt> +<dd><a name="index-mktexfmt"></a> +<a name="index-fmtutil"></a> +<p>(‘<samp>.fmt</samp>’, ‘<samp>.base</samp>’, ‘<samp>.mem</samp>’) TeX/Metafont/MetaPost +formats. This script is also named <code>fmtutil</code>, and reads +<samp>fmtutil.cnf</samp> for configuration information. +</p> +</dd> +<dt><samp>mktexmf</samp></dt> +<dd><a name="index-mktexmf"></a> +<p>(‘<samp>.mf</samp>’) Metafont input files. +</p> +</dd> +<dt><samp>mkocp</samp></dt> +<dd><a name="index-mkocp"></a> +<p>(‘<samp>.ocp</samp>’) Omega compiled process files. +</p> +</dd> +<dt><samp>mkofm</samp></dt> +<dd><a name="index-mkofm"></a> +<p>(‘<samp>.ofm</samp>’) Omega font metric files. +</p> +</dd> +<dt><samp>mktexpk</samp></dt> +<dd><a name="index-mktexpk"></a> +<p>(‘<samp>pk</samp>’) Glyph fonts. +</p> +</dd> +<dt><samp>mktextex</samp></dt> +<dd><a name="index-mktextex"></a> +<p>(‘<samp>.tex</samp>’) TeX input files (disabled by default). +</p> +</dd> +<dt><samp>mktextfm</samp></dt> +<dd><a name="index-mktextfm"></a> +<p>(‘<samp>.tfm</samp>’) TFM files. +</p></dd> +</dl> + +<a name="index-DVIPSMAKEPK"></a> +<a name="index-XDVIMAKEPK"></a> +<a name="index-DVILJMAKEPK"></a> +<p>These names can be overridden by an environment variable specific +to the program—for example, <code>DVIPSMAKEPK</code> for Dvipsk. +</p> +<a name="index-missfont_002elog"></a> +<a name="index-failed-mktex_2026-script-invocation"></a> +<p>If a <code>mktex…</code> script fails, the invocation is appended to a +file <samp>missfont.log</samp> (by default) in the current directory. You can +then execute the log file to create the missing files after fixing the +problem. +</p> +<a name="index-TEXMFOUTPUT"></a> +<a name="index-MISSFONT_005fLOG"></a> +<p>If the current directory is not writable and the environment variable or +configuration file value <code>TEXMFOUTPUT</code> is set, its value is +used. Otherwise, nothing is written. The name ‘<samp>missfont.log</samp>’ is +overridden by the <code>MISSFONT_LOG</code> environment variable or +configuration file value. +</p> +<hr> +<a name="mktex-script-arguments"></a> +<div class="header"> +<p> +Previous: <a href="#mktex-script-names" accesskey="p" rel="prev">mktex script names</a>, Up: <a href="#mktex-scripts" accesskey="u" rel="up">mktex scripts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="mktex-script-arguments-1"></a> +<h4 class="subsection">6.5.3 <samp>mktex</samp> script arguments</h4> -<h2 class="chapter">5 Programming</h2> +<a name="index-arguments-to-mktex"></a> -<p>This chapter is for programmers who wish to use Kpathsea. -See <a href="#Introduction">Introduction</a>, for the conditions under which you may do so. +<p>The first argument to a <samp>mktex</samp> script is always the name +of the file to be created. +</p> +<p>In the default <samp>mktexpk</samp> implementation, additional arguments may +also be passed: +</p> +<dl compact="compact"> +<dt>‘<samp>--dpi <var>num</var></samp>’</dt> +<dd><p>Sets the resolution of the generated font to <var>num</var>. +</p></dd> +<dt>‘<samp>--mfmode <var>name</var></samp>’</dt> +<dd><p>Sets the Metafont mode to <var>name</var>. +</p></dd> +<dt>‘<samp>--bdpi <var>num</var></samp>’</dt> +<dd><p>Sets the “base dpi” for the font. This must match the mode being +used. +</p></dd> +<dt>‘<samp>--mag <var>string</var></samp>’</dt> +<dd><p>A “magstep” string suitable for the Metafont <code>mag</code> variable. +This must match the combination of <var>bdpi</var> and <var>dpi</var> being used. +</p></dd> +<dt>‘<samp>--destdir <var>string</var></samp>’</dt> +<dd><p>A directory name. If the directory is absolute, it is used as-is. +Otherwise, it is appended to the root destination directory set in the +script. +</p></dd> +</dl> -<ul class="menu"> -<li><a accesskey="1" href="#Programming-overview">Overview</a>: Introduction. -<li><a accesskey="2" href="#Calling-sequence">Calling sequence</a>: Specifics of what to call. -<li><a accesskey="3" href="#Program_002dspecific-files">Program-specific files</a>: How to handle these. -<li><a accesskey="4" href="#Programming-with-config-files">Config</a>: Getting info from texmf.cnf. -</ul> -<div class="node"> -<a name="Programming-overview"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Calling-sequence">Calling sequence</a>, -Up: <a rel="up" accesskey="u" href="#Programming">Programming</a> +<hr> +<a name="Programming"></a> +<div class="header"> +<p> +Next: <a href="#Reporting-bugs" accesskey="n" rel="next">Reporting bugs</a>, Previous: <a href="#TeX-support" accesskey="p" rel="prev">TeX support</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Programming-1"></a> +<h2 class="chapter">7 Programming</h2> + +<p>This chapter is for programmers who wish to use Kpathsea. +See <a href="#Introduction">Introduction</a>, for the conditions under which you may do so. +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Programming-overview" accesskey="1">Overview</a>:</td><td> </td><td align="left" valign="top">Introduction. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Calling-sequence" accesskey="2">Calling sequence</a>:</td><td> </td><td align="left" valign="top">Specifics of what to call. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Program_002dspecific-files" accesskey="3">Program-specific files</a>:</td><td> </td><td align="left" valign="top">How to handle these. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Programming-with-config-files" accesskey="4">Config</a>:</td><td> </td><td align="left" valign="top">Getting info from texmf.cnf. +</td></tr> +</table> + + +<hr> +<a name="Programming-overview"></a> +<div class="header"> +<p> +Next: <a href="#Calling-sequence" accesskey="n" rel="next">Calling sequence</a>, Up: <a href="#Programming" accesskey="u" rel="up">Programming</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Programming-overview-1"></a> +<h3 class="section">7.1 Programming overview</h3> -<h3 class="section">5.1 Programming overview</h3> +<a name="index-programming-overview"></a> +<a name="index-overview-of-programming-with-Kpathsea"></a> -<p><a name="index-programming-overview-770"></a><a name="index-overview-of-programming-with-Kpathsea-771"></a> -Aside from this manual, your best source of information is the source +<p>Aside from this manual, your best source of information is the source to the programs that use Kpathsea (see <a href="#Introduction">Introduction</a>). Of those, -Dviljk is probably the simplest, and hence a good place to start. +Dviljk is probably the simplest, and hence a good place to start. Xdvik adds VF support and the complication of X resources. Dvipsk adds the complication of its own config files. Web2c is source code I also maintain, so it uses Kpathsea rather straightforwardly, but is of course complicated by the Web to C translation. Finally, Kpsewhich is a small utility program whose sole purpose is to exercise the main path-searching functionality. - - <p><a name="index-re_002dentrant-API-772"></a><a name="index-API_002c-re_002dentrant-773"></a>When looking at these program sources, you should know that previous +</p> +<a name="index-re_002dentrant-API"></a> +<a name="index-API_002c-re_002dentrant"></a> +<p>When looking at these program sources, you should know that previous versions of the library had a different programming interface, to support re-entrancy. In that interface the library function names were prefixed with <code>kpse_</code> instead of <code>kpathsea_</code>, and they did not need an instance variable as first argument. This change was made in 2009. Some of the programs mentioned above may still be using the previous interface. - - <p><a name="index-pathsearch_002eh-774"></a><a name="index-tex_002dfile_002eh-775"></a><a name="index-tex_002dglyph_002eh-776"></a><a name="index-kpathsea_002eh-777"></a>Beyond these examples, the <samp><span class="file">.h</span></samp> files in the Kpathsea source -describe the interfaces and functionality (and of course the <samp><span class="file">.c</span></samp> -files define the actual routines, which are the ultimate documentation). -<samp><span class="file">pathsearch.h</span></samp> declares the basic searching routine. -<samp><span class="file">tex-file.h</span></samp> and <samp><span class="file">tex-glyph.h</span></samp> define the interfaces for +</p> +<a name="index-pathsearch_002eh"></a> +<a name="index-tex_002dfile_002eh"></a> +<a name="index-tex_002dglyph_002eh"></a> +<a name="index-kpathsea_002eh"></a> +<p>Beyond these examples, the <samp>.h</samp> files in the Kpathsea source +describe the interfaces and functionality (and of course the <samp>.c</samp> +files define the actual routines, which are the ultimate documentation). +<samp>pathsearch.h</samp> declares the basic searching routine. +<samp>tex-file.h</samp> and <samp>tex-glyph.h</samp> define the interfaces for looking up particular kinds of files. In view of the way the headers depend on each other, it is recommended to use <code>#include <kpathsea/kpathsea.h></code>, which includes every Kpathsea header. - - <p><a name="index-config_002eh-778"></a><a name="index-c_002dauto_002eh-779"></a>If you want to include only specific headers, you should still consider -including <samp><span class="file">kpathsea/config.h</span></samp> before including any other Kpathsea +</p> +<a name="index-config_002eh"></a> +<a name="index-c_002dauto_002eh"></a> +<p>If you want to include only specific headers, you should still consider +including <samp>kpathsea/config.h</samp> before including any other Kpathsea header, as it provides symbols used in the other headers. Note that -<samp><span class="file">kpathsea/config.h</span></samp> includes <samp><span class="file">kpathsea/c-auto.h</span></samp>, which is +<samp>kpathsea/config.h</samp> includes <samp>kpathsea/c-auto.h</samp>, which is generated by Autoconf. - - <p><a name="index-file-types_002c-registering-new-780"></a>The library provides no way for an external program to register new file -types: <samp><span class="file">tex-file.[ch]</span></samp> must be modified to do this. For example, +</p> +<a name="index-file-types_002c-registering-new"></a> +<p>The library provides no way for an external program to register new file +types: <samp>tex-file.[ch]</samp> must be modified to do this. For example, Kpathsea has support for looking up Dvips config files, even though no program other than Dvips will likely ever want to do so. I felt this was acceptable, since along with new file types should also come new -defaults in <samp><span class="file">texmf.cnf</span></samp> (and its descendant <samp><span class="file">paths.h</span></samp>), since -it's simplest for users if they can modify one configuration file for +defaults in <samp>texmf.cnf</samp> (and its descendant <samp>paths.h</samp>), since +it’s simplest for users if they can modify one configuration file for all kinds of paths. - - <p>Kpathsea does not parse any formats itself; it barely opens any files. +</p> +<p>Kpathsea does not parse any formats itself; it barely opens any files. Its primary purpose is to return filenames. The GNU font utilities does contain libraries to read TFM, GF, and PK files, as do the programs above, of course. +</p> -<div class="node"> +<hr> <a name="Calling-sequence"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Program_002dspecific-files">Program-specific files</a>, -Previous: <a rel="previous" accesskey="p" href="#Programming-overview">Programming overview</a>, -Up: <a rel="up" accesskey="u" href="#Programming">Programming</a> - +<div class="header"> +<p> +Next: <a href="#Program_002dspecific-files" accesskey="n" rel="next">Program-specific files</a>, Previous: <a href="#Programming-overview" accesskey="p" rel="prev">Programming overview</a>, Up: <a href="#Programming" accesskey="u" rel="up">Programming</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h3 class="section">5.2 Calling sequence</h3> - -<p><a name="index-programming-with-Kpathsea-781"></a><a name="index-calling-sequence-782"></a> -The typical way to use Kpathsea in your program goes something like this: - - <ol type=1 start=1> - - <li><a name="index-kpathsea_005fnew-783"></a>Call <code>kpathsea_new</code> to create a new library instance. This variable -must be passed as the first argument to all the following library functions. +<a name="Calling-sequence-1"></a> +<h3 class="section">7.2 Calling sequence</h3> + +<a name="index-programming-with-Kpathsea"></a> +<a name="index-calling-sequence"></a> + +<p>The typical way to use Kpathsea in your program goes something like this: +</p> +<ol> +<li> <a name="index-kpathsea_005fnew"></a> +Call <code>kpathsea_new</code> to create a new library instance. This variable +must be passed as the first argument to all the following library functions. The rest of this manual will be using <code>kpse</code> as a placeholder for the name of this variable. - <li><a name="index-kpathsea_005fset_005fprogram_005fname-784"></a><a name="index-argv_005b0_005d-785"></a>Call <code>kpathsea_set_program_name</code> with <code>argv[0]</code> as the second +</li><li> <a name="index-kpathsea_005fset_005fprogram_005fname"></a> +<a name="index-argv_005b0_005d"></a> +Call <code>kpathsea_set_program_name</code> with <code>argv[0]</code> as the second argument; the third argument is a string or <code>NULL</code>. The third argument is used by Kpathsea as the program name for the -<code>.</code><var>program</var> feature of config files (see <a href="#Config-files">Config files</a>). +<code>.<var>program</var></code> feature of config files (see <a href="#Config-files">Config files</a>). If the third argument is <code>NULL</code>, the value of the second argument is used. This function must be called before any other use of the Kpathsea library. - <p><a name="index-kpse_002d_003einvocation_005fname-786"></a><a name="index-kpse_002d_003einvocation_005fshort_005fname-787"></a><a name="index-kpse_002d_003eprogram_005fname-788"></a><a name="index-error-message-macros-789"></a><code>kpathsea_set_program_name</code> always sets the variables -<code>kpse->invocation_name</code> and <code>kpse->invocation_short_name</code>. +<a name="index-kpse_002d_003einvocation_005fname"></a> +<a name="index-kpse_002d_003einvocation_005fshort_005fname"></a> +<a name="index-kpse_002d_003eprogram_005fname"></a> +<a name="index-error-message-macros"></a> +<p><code>kpathsea_set_program_name</code> always sets the variables +<code>kpse->invocation_name</code> and <code>kpse->invocation_short_name</code>. These variables are used in the error message macros defined in -<samp><span class="file">kpathsea/lib.h</span></samp>. It sets the variable +<samp>kpathsea/lib.h</samp>. It sets the variable <code>kpse->program_name</code> to the program name it uses. - - <p><a name="index-KPATHSEA_005fDEBUG-790"></a>It also initializes debugging options based on the environment +</p> +<a name="index-KPATHSEA_005fDEBUG"></a> +<p>It also initializes debugging options based on the environment variable <code>KPATHSEA_DEBUG</code> (if that is set). - - <p><a name="index-SELFAUTOLOC-791"></a><a name="index-SELFAUTODIR-792"></a><a name="index-SELFAUTOPARENT-793"></a><a name="index-symlinks_002c-resolving-794"></a><a name="index-expanding-symlinks-795"></a>Finally, it sets the environment variables <code>SELFAUTOLOC</code>, <code>SELFAUTODIR</code> +</p> +<a name="index-SELFAUTOLOC"></a> +<a name="index-SELFAUTODIR"></a> +<a name="index-SELFAUTOPARENT"></a> +<a name="index-symlinks_002c-resolving"></a> +<a name="index-expanding-symlinks"></a> +<p>Finally, it sets the environment variables <code>SELFAUTOLOC</code>, <code>SELFAUTODIR</code> and <code>SELFAUTOPARENT</code> to the location, parent and grandparent -directory of the executable, removing <samp><span class="file">.</span></samp> and <samp><span class="file">..</span></samp> path +directory of the executable, removing <samp>.</samp> and <samp>..</samp> path elements and resolving symbolic links. These are used in the default configuration file to allow people to invoke TeX from anywhere. You -can use ‘<samp><span class="samp">kpsewhich --expand-var=\$SELFAUTOLOC</span></samp>’, etc., to see the +can use ‘<samp>kpsewhich --expand-var=\$SELFAUTOLOC</samp>’, etc., to see the values. - - <li><a name="index-kpse_002d_003edebug-_0040r_007bvariable_007d-796"></a><a name="index-debugging-options_002c-in-Kpathsea_002dusing-program-797"></a>Set debugging options. See <a href="#Debugging">Debugging</a>. If your program doesn't have a +</p> +</li><li> <a name="index-kpse_002d_003edebug-variable"></a> +<a name="index-debugging-options_002c-in-Kpathsea_002dusing-program"></a> +Set debugging options. See <a href="#Debugging">Debugging</a>. If your program doesn’t have a debugging option already, you can define one and set <code>kpse->debug</code> to the number that the user supplies (as in Dviljk and Web2c), or you can just omit this altogether (people can always set <code>KPATHSEA_DEBUG</code>). If you do have runtime debugging already, you -need to merge Kpathsea's options with yours (as in Dvipsk and Xdvik). +need to merge Kpathsea’s options with yours (as in Dvipsk and Xdvik). - <li><a name="index-client_005fpath-_0040r_007bin-_0040code_007bkpse_002d_003eformat_005finfo_007d_007d-798"></a><a name="index-kpse_002d_003eformat_005finfo-799"></a><a name="index-resident_002ec-800"></a><a name="index-config-files_002c-for-Kpathsea_002dusing-programs-801"></a>If your program has its own configuration files that can define search +</li><li> <a name="index-client_005fpath-in-kpse_002d_003eformat_005finfo"></a> +<a name="index-kpse_002d_003eformat_005finfo"></a> +<a name="index-resident_002ec"></a> +<a name="index-config-files_002c-for-Kpathsea_002dusing-programs"></a> +If your program has its own configuration files that can define search paths, you should assign those paths to the <code>client_path</code> member in the appropriate element of the <code>kpse->format_info</code> array. (This -array is indexed by file type; see <samp><span class="file">tex-file.h</span></samp>.) See -<samp><span class="file">resident.c</span></samp> in Dvipsk for an example. +array is indexed by file type; see <samp>tex-file.h</samp>.) See +<samp>resident.c</samp> in Dvipsk for an example. - <li><a name="index-kpathsea_005finit_005fprog-802"></a><a name="index-proginit_002eh-803"></a>Call <code>kpathsea_init_prog</code> (see <samp><span class="file">proginit.c</span></samp>). It's useful for the +</li><li> <a name="index-kpathsea_005finit_005fprog-1"></a> +<a name="index-proginit_002eh"></a> +Call <code>kpathsea_init_prog</code> (see <samp>proginit.c</samp>). It’s useful for the DVI drivers, at least, but for other programs it may be simpler to extract the parts of it that actually apply. This does not initialize any paths, it just looks for (and sets) certain environment variables @@ -4050,946 +3373,1636 @@ and other random information. (A search path is always initialized at the first call to find a file of that type; this eliminates much useless work, e.g., initializing the BibTeX search paths in a DVI driver.) - <li><a name="index-kpathsea_005ffind_005ffile-804"></a>The routine to actually find a file of type <var>format</var> is -<samp><span class="file">kpathsea_find_file</span></samp>. You can call +</li><li> <a name="index-kpathsea_005ffind_005ffile-1"></a> +The routine to actually find a file of type <var>format</var> is +<samp>kpathsea_find_file</samp>. You can call <code>kpathsea_find_file</code> after doing only the first and second of the initialization steps above—Kpathsea automatically reads the -<samp><span class="file">texmf.cnf</span></samp> generic config files, looks for environment variables, +<samp>texmf.cnf</samp> generic config files, looks for environment variables, and does expansions at the first lookup. - <li>To find PK and/or GF bitmap fonts, the routine +</li><li> To find PK and/or GF bitmap fonts, the routine is <code>kpathsea_find_glyph</code>, defined in -<samp><span class="file">tex-glyph.h</span></samp>. This returns a structure in addition to the +<samp>tex-glyph.h</samp>. This returns a structure in addition to the resultant filename, because fonts can be found in so many ways. See the documentation in the source. - <li><a name="index-kpathsea_005fopen_005ffile-805"></a>To actually open a file, not just return a filename, call +</li><li> <a name="index-kpathsea_005fopen_005ffile"></a> +To actually open a file, not just return a filename, call <code>kpathsea_open_file</code>. This function takes the name to look up and a -Kpathsea file format as arguments, and returns the usual <code>FILE *</code>. +Kpathsea file format as arguments, and returns the usual <code>FILE *</code>. It always assumes the file must exist, and thus will search the disk if -necessary (unless the search path specified ‘<samp><span class="samp">!!</span></samp>’, etc.). In other +necessary (unless the search path specified ‘<samp>!!</samp>’, etc.). In other words, if you are looking up a VF or some other file that need not -exist, don't use this. +exist, don’t use this. - <li><a name="index-kpathsea_005fout_005fname_005fok-806"></a>TeX can write output files, via the <code>\openout</code> primitive; this opens +</li><li> <a name="index-kpathsea_005fout_005fname_005fok"></a> +TeX can write output files, via the <code>\openout</code> primitive; this opens a security hole vulnerable to Trojan horse attack: an unwitting user could -run a TeX program that overwrites, say, <samp><span class="file">~/.rhosts</span></samp>. Analogous +run a TeX program that overwrites, say, <samp>~/.rhosts</samp>. Analogous security holes exist for many other programs. To alleviate this, there is a configuration variable <code>openout_any</code>, which selects one of three levels -of security. When it is set to ‘<samp><span class="samp">a</span></samp>’ (for “any”), no restrictions are -imposed. When it is set to ‘<samp><span class="samp">r</span></samp>’ (for “restricted”), filenames -beginning with ‘<samp><span class="samp">.</span></samp>’ are disallowed (except <samp><span class="file">.tex</span></samp> because LaTeX -needs it). When it is set to ‘<samp><span class="samp">p</span></samp>’ (for “paranoid”) additional +of security. When it is set to ‘<samp>a</samp>’ (for “any”), no restrictions are +imposed. When it is set to ‘<samp>r</samp>’ (for “restricted”), filenames +beginning with ‘<samp>.</samp>’ are disallowed (except <samp>.tex</samp> because LaTeX +needs it). When it is set to ‘<samp>p</samp>’ (for “paranoid”) additional restrictions are imposed: an absolute filename must refer to a file in (a subdirectory) of <code>TEXMFOUTPUT</code>, and any attempt to go up a directory -level is forbidden (that is, paths may not contain a ‘<samp><span class="samp">..</span></samp>’ component). -The paranoid setting is the default. (For backwards compatibility, ‘<samp><span class="samp">y</span></samp>’ -and ‘<samp><span class="samp">1</span></samp>’ are synonyms of ‘<samp><span class="samp">a</span></samp>’, while ‘<samp><span class="samp">n</span></samp>’ and ‘<samp><span class="samp">0</span></samp>’ are -synonyms for ‘<samp><span class="samp">r</span></samp>’.) The function <code>kpathsea_out_name_ok</code>, with a +level is forbidden (that is, paths may not contain a ‘<samp>..</samp>’ component). +The paranoid setting is the default. (For backwards compatibility, ‘<samp>y</samp>’ +and ‘<samp>1</samp>’ are synonyms of ‘<samp>a</samp>’, while ‘<samp>n</samp>’ and ‘<samp>0</samp>’ are +synonyms for ‘<samp>r</samp>’.) The function <code>kpathsea_out_name_ok</code>, with a filename as second argument, returns <code>true</code> if that filename is acceptable to be opend for output or <code>false</code> otherwise. - <li><a name="index-kpathsea_005fin_005fname_005fok-807"></a>Similarly, the function <code>kpathsea_in_name_ok</code>, with a filename as +</li><li> <a name="index-kpathsea_005fin_005fname_005fok"></a> +Similarly, the function <code>kpathsea_in_name_ok</code>, with a filename as second argument, returns <code>true</code> if that filename is acceptable to be opend for input or <code>false</code> otherwise, depending on the value of the -configuration variable <code>openin_any</code> (with ‘<samp><span class="samp">a</span></samp>’ as default). +configuration variable <code>openin_any</code> (with ‘<samp>a</samp>’ as default). - <li><a name="index-kpathsea_005ffinish-808"></a>To close the kpathsea library instance you are using, call +</li><li> <a name="index-kpathsea_005ffinish"></a> +To close the kpathsea library instance you are using, call <code>kpathsea_finish</code>. This function closes any open log files and frees the memory used by the instance. - </ol> +</li></ol> - <p><a name="index-hash-table-routines-809"></a><a name="index-memory-allocation-routines-810"></a><a name="index-string-routines-811"></a><a name="index-reading-arbitrary_002dlength-lines-812"></a><a name="index-input-lines_002c-reading-813"></a><a name="index-lines_002c-reading-arbitrary_002dlength-814"></a>Kpathsea also provides many utility routines. Some are generic: hash +<a name="index-hash-table-routines"></a> +<a name="index-memory-allocation-routines"></a> +<a name="index-string-routines"></a> +<a name="index-reading-arbitrary_002dlength-lines"></a> +<a name="index-input-lines_002c-reading"></a> +<a name="index-lines_002c-reading-arbitrary_002dlength"></a> +<p>Kpathsea also provides many utility routines. Some are generic: hash tables, memory allocation, string concatenation and copying, string lists, reading input lines of arbitrary length, etc. Others are filename-related: default path, tilde, and variable expansion, -<code>stat</code> calls, etc. (Perhaps someday I'll move the former to a +<code>stat</code> calls, etc. (Perhaps someday I’ll move the former to a separate library.) - - <p><a name="index-c_002d_002a_002eh-815"></a><a name="index-autoconf_0040r_007b_002c-recommended_007d-816"></a>The <samp><span class="file">c-*.h</span></samp> header files can also help your program adapt to many +</p> +<a name="index-c_002d_002a_002eh"></a> +<a name="index-autoconf_002c-recommended"></a> +<p>The <samp>c-*.h</samp> header files can also help your program adapt to many different systems. You will almost certainly want to use Autoconf and probably Automake for configuring and building your software if you use -Kpathsea; I strongly recommend using Autoconf and Automake regardless. -They are available from <a href="ftp://ftp.gnu.og/pub/gnu/">ftp://ftp.gnu.og/pub/gnu/</a>. +Kpathsea; I strongly recommend using Autoconf and Automake regardless. +They are available from <a href="http://www.gnu.org/software">http://www.gnu.org/software</a>. +</p> -<div class="node"> -<a name="Program-specific-files"></a> +<hr> <a name="Program_002dspecific-files"></a> -<p><hr> -Next: <a rel="next" accesskey="n" href="#Programming-with-config-files">Programming with config files</a>, -Previous: <a rel="previous" accesskey="p" href="#Calling-sequence">Calling sequence</a>, -Up: <a rel="up" accesskey="u" href="#Programming">Programming</a> - +<div class="header"> +<p> +Next: <a href="#Programming-with-config-files" accesskey="n" rel="next">Programming with config files</a>, Previous: <a href="#Calling-sequence" accesskey="p" rel="prev">Calling sequence</a>, Up: <a href="#Programming" accesskey="u" rel="up">Programming</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> - -<h3 class="section">5.3 Program-specific files</h3> +<a name="Program_002dspecific-files-1"></a> +<h3 class="section">7.3 Program-specific files</h3> <p>Many programs will need to find some configuration files. Kpathsea contains some support to make it easy to place them in their own -directories. The Standard TeX directory structure (see <a href="tds.html#Top">Introduction</a>), specifies +directories. The Standard TeX directory structure (see <a href="tds.html#Top">Introduction</a> in <cite>A Directory Structure for TeX files</cite>), specifies that such files should go into a subdirectory named after the program, -like ‘<samp><span class="samp">texmf/ttf2pk</span></samp>’. - - <p>Two formats, ‘<samp><span class="samp">kpse_program_text_format</span></samp>’ and -‘<samp><span class="samp">kpse_program_binary_format</span></samp>’, use <code>.:$TEXMF/</code><var>program</var><code>//</code> +like ‘<samp>texmf/ttf2pk</samp>’. +</p> +<p>Two formats, ‘<samp>kpse_program_text_format</samp>’ and +‘<samp>kpse_program_binary_format</samp>’, use <code>.:$TEXMF/<var>program</var>//</code> as their compiled-in search path. To override this default, you can -use the variable <var>PROGRAM</var><code>INPUTS</code> in the environment and/or -‘<samp><span class="samp">texmf.cnf</span></samp>’. That is to say, the name of the variable is +use the variable <code><var>PROGRAM</var>INPUTS</code> in the environment and/or +‘<samp>texmf.cnf</samp>’. That is to say, the name of the variable is constructed by converting the name of the program to upper case, and appending <code>INPUTS</code>. - - <p>The only difference between these two formats is whether +</p> +<p>The only difference between these two formats is whether <code>kpathsea_open_file</code> will open the files it finds in text or binary mode. +</p> -<div class="node"> +<hr> <a name="Programming-with-config-files"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Program_002dspecific-files">Program-specific files</a>, -Up: <a rel="up" accesskey="u" href="#Programming">Programming</a> - +<div class="header"> +<p> +Previous: <a href="#Program_002dspecific-files" accesskey="p" rel="prev">Program-specific files</a>, Up: <a href="#Programming" accesskey="u" rel="up">Programming</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Programming-with-config-files-1"></a> +<h3 class="section">7.4 Programming with config files</h3> -<h3 class="section">5.4 Programming with config files</h3> +<a name="index-programming-with-config-files"></a> +<a name="index-config-files_002c-programming-with"></a> -<p><a name="index-programming-with-config-files-817"></a><a name="index-config-files_002c-programming-with-818"></a> -You can (and probably should) use the same <code>texmf.cnf</code> +<p>You can (and probably should) use the same <code>texmf.cnf</code> configuration file that Kpathsea uses for your program. This helps installers by keeping all configuration in one place. - - <p><a name="index-kpathsae_005fvar_005fvalue-819"></a><a name="index-variable_002eh-820"></a><a name="index-shell_005fescape_0040r_007b_002c-example-for-code_007d-821"></a>To retrieve a value <var>var</var> from config files, the best way is to call -<code>kpathsea_var_value</code> on the string <var>var</var>. This will look -first for an environment variable <var>var</var>, then a config file value. -The result will be the value found or ‘<samp><span class="samp">NULL</span></samp>’. This function is -declared in <samp><span class="file">kpathsea/variable.h</span></samp>. For an example, see the -<code>shell_escape</code> code in <samp><span class="file">web2c/lib/texmfmp.c</span></samp>. - - <p>The routine to do variable expansion in the context of a search path (as +</p> +<a name="index-kpathsea_005fvar_005fvalue"></a> +<a name="index-variable_002eh"></a> +<a name="index-shell_005fescape_002c-example-for-code"></a> +<p>To retrieve a value <var>var</var> from config files, the best way is to call +<code>kpathsea_var_value</code> on the string <code><var>var</var></code>. This will look +first for an environment variable <var>var</var>, then a config file value. +The result will be the value found or ‘<samp>NULL</samp>’. This function is +declared in <samp>kpathsea/variable.h</samp>. For an example, see the +<code>shell_escape</code> code in <samp>web2c/lib/texmfmp.c</samp>. +</p> +<p>The routine to do variable expansion in the context of a search path (as opposed to simply retrieving a value) is <code>kpathsea_var_expand</code>, also -declared in <samp><span class="file">kpathsea/variable.h</span></samp>. It's generally only necessary +declared in <samp>kpathsea/variable.h</samp>. It’s generally only necessary to set the search path structure components as explained in the previous section, rather than using this yourself. - - <p><a name="index-kpathsea_005fcnf_005fget-822"></a><a name="index-cnf_002eh-823"></a>If for some reason you want to retrieve a value <em>only</em> from a +</p> +<a name="index-kpathsea_005fcnf_005fget"></a> +<a name="index-cnf_002eh"></a> +<p>If for some reason you want to retrieve a value <em>only</em> from a config file, not automatically looking for a corresponding environment -variable, call <code>kpathsea_cnf_get</code> (declared in <samp><span class="file">kpathsea/cnf.h</span></samp>) +variable, call <code>kpathsea_cnf_get</code> (declared in <samp>kpathsea/cnf.h</samp>) with the string <var>var</var>. +</p> +<p>No initialization calls are needed. +</p> - <p>No initialization calls are needed. +<hr> +<a name="Reporting-bugs"></a> +<div class="header"> +<p> +Next: <a href="#Index" accesskey="n" rel="next">Index</a>, Previous: <a href="#Programming" accesskey="p" rel="prev">Programming</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Reporting-bugs-1"></a> +<h2 class="chapter">8 Reporting bugs</h2> -<div class="node"> -<a name="Index"></a> -<p><hr> -Previous: <a rel="previous" accesskey="p" href="#Programming">Programming</a>, -Up: <a rel="up" accesskey="u" href="#Top">Top</a> +<a name="index-reporting-bugs"></a> +<a name="index-bugs_002c-reporting"></a> +<a name="index-tex_002dk_0040tug_002eorg-_0028bug-address_0029"></a> +<a name="index-bug-address"></a> +<p>If you have problems or suggestions, please report them to +<a href="mailto:tex-k@tug.org">tex-k@tug.org</a> using the bug checklist below. +</p> +<p>Please report bugs in the documentation; not only factual errors or +inconsistent behavior, but unclear or incomplete explanations, typos, +wrong fonts, … +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Bug-checklist" accesskey="1">Bug checklist</a>:</td><td> </td><td align="left" valign="top">What to include in a good bug report. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Mailing-lists" accesskey="2">Mailing lists</a>:</td><td> </td><td align="left" valign="top">Joining the bugs or announcements mailing lists. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Debugging" accesskey="3">Debugging</a>:</td><td> </td><td align="left" valign="top">Analyzing runtime problems. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Logging" accesskey="4">Logging</a>:</td><td> </td><td align="left" valign="top">Recording searches. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Common-problems" accesskey="5">Common problems</a>:</td><td> </td><td align="left" valign="top">When things go wrong. +</td></tr> +</table> + + +<hr> +<a name="Bug-checklist"></a> +<div class="header"> +<p> +Next: <a href="#Mailing-lists" accesskey="n" rel="next">Mailing lists</a>, Up: <a href="#Reporting-bugs" accesskey="u" rel="up">Reporting bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> </div> +<a name="Bug-checklist-1"></a> +<h3 class="section">8.1 Bug checklist</h3> -<h2 class="unnumbered">Index</h2> +<a name="index-checklist-for-bug-reports"></a> +<a name="index-bug-checklist"></a> + +<p>Before reporting a bug, please check below to be sure it isn’t already +known (see <a href="#Common-problems">Common problems</a>). +</p> +<p>Bug reports should be sent via electronic mail to +<a href="mailto:tex-k@tug.org">tex-k@tug.org</a>. +</p> +<p>The general principle is that a good bug report includes all the +information necessary for reproduction. Therefore, to enable +investigation, your report should include the following: +</p> +<ul> +<li> <a name="index-version-numbers_002c-determining"></a> +The version number(s) of the program(s) involved, and of Kpathsea +itself. You can get the former by giving a sole option ‘<samp>--version</samp>’ +to the program, and the latter by running ‘<samp>kpsewhich --version</samp>’. +The <samp>NEWS</samp> and <samp>ChangeLog</samp> files also contain the version +number. + +</li><li> <a name="index-uname"></a> +The hardware, operating system (including version), compiler, and +<code>make</code> program you are using (the output of <code>uname -a</code> is a +start on the first two, though incomplete). + +</li><li> <a name="index-config_002elog"></a> +Any options you gave to <code>configure</code>. This is recorded in the +<samp>config.status</samp> files. + +<a name="index-configuration-bugs"></a> +<a name="index-config_002estatus"></a> +<p>If you are reporting a bug in ‘<samp>configure</samp>’ itself, it’s probably +system-dependent, and it will be unlikely the maintainers can do +anything useful if you merely report that thus-and-such is broken. +Therefore, you need to do some additional work: for some bugs, you can +look in the file <samp>config.log</samp> where the test that failed should +appear, along with the compiler invocation and source program in +question. You can then compile it yourself by hand, and discover why +the test failed. Other ‘<samp>configure</samp>’ bugs do not involve the +compiler; in that case, the only recourse is to inspect the +<code>configure</code> shell script itself, or the Autoconf macros that +generated <code>configure</code>. +</p> +</li><li> The log of all debugging output, if the bug is in path searching. You +can get this by setting the environment variable <code>KPATHSEA_DEBUG</code> +to ‘<samp>-1</samp>’ before running the program. Please look at the log +yourself to make sure the behavior is really a bug before reporting it; +perhaps “old” environment variable settings are causing files not to +be found, for example. + +</li><li> The contents of any input files necessary to reproduce the bug. For +bugs in DVI-reading programs, for example, this generally means a DVI +file (and any EPS or other files it uses)—TeX source files are +helpful, but the DVI file is required, because that’s the actual +program input. + +</li><li> <a name="index-context-diff"></a> +<a name="index-sending-patches"></a> +<a name="index-ChangeLog-entry"></a> +If you are sending a patch (do so if you can!), please do so in the form +of a context diff (‘<samp>diff -c</samp>’) against the original distribution +source. Any other form of diff is either not as complete or harder for +me to understand. Please also include a <samp>ChangeLog</samp> entry. + +</li><li> <a name="index-stack-trace"></a> +<a name="index-debugger"></a> +<a name="index-crashes_002c-reporting"></a> +<a name="index-core-dumps_002c-reporting"></a> +<a name="index-null-pointers_002c-dereferencing"></a> +<a name="index-gdb_002c-recommended"></a> +If the bug involved is an actual crash (i.e., core dump), it is easy +and useful to include a stack trace from a debugger (I recommend the +GNU debugger GDB (<a href="http://www.gnu.org/software/gdb">http://www.gnu.org/software/gdb</a>). If the +cause is apparent (a <code>NULL</code> value being dereferenced, for +example), please send the details along. If the program involved is +TeX or Metafont, and the crash is happening at apparently-sound +code, however, the bug may well be in the compiler, rather than in the +program or the library (see <a href="#TeX-or-Metafont-failing">TeX or +Metafont failing</a>). + +</li><li> Any additional information that will be helpful in reproducing, +diagnosing, or fixing the bug. +</li></ul> + + +<hr> +<a name="Mailing-lists"></a> +<div class="header"> +<p> +Next: <a href="#Debugging" accesskey="n" rel="next">Debugging</a>, Previous: <a href="#Bug-checklist" accesskey="p" rel="prev">Bug checklist</a>, Up: <a href="#Reporting-bugs" accesskey="u" rel="up">Reporting bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Mailing-lists-1"></a> +<h3 class="section">8.2 Mailing lists</h3> + +<a name="index-mailing-lists"></a> +<a name="index-bug-mailing-list"></a> +<a name="index-announcement-mailing-list"></a> + +<a name="index-tex_002dk_0040tug_002eorg"></a> +<p>Web2c and Kpathsea in general are discussed on the mailing list +<a href="mailto:tex-k@tug.org">tex-k@tug.org</a>. You can subscribe and peruse the archives on +the web <a href="http://lists.tug.org/tex-k">http://lists.tug.org/tex-k</a>. +</p> +<p>You do not need to join to submit a report, nor will it affect whether +you get a response. Be aware that large data files are sometimes +included in bug reports. If this is a problem for you, do not join +the list. +</p> +<p>If you are looking for general TeX help, such as how to install a +full TeX system or how to use LaTeX, please see +<a href="http://tug.org/begin.html">http://tug.org/begin.html</a>. +</p> + +<hr> +<a name="Debugging"></a> +<div class="header"> +<p> +Next: <a href="#Logging" accesskey="n" rel="next">Logging</a>, Previous: <a href="#Mailing-lists" accesskey="p" rel="prev">Mailing lists</a>, Up: <a href="#Reporting-bugs" accesskey="u" rel="up">Reporting bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Debugging-1"></a> +<h3 class="section">8.3 Debugging</h3> + +<a name="index-debugging"></a> +<a name="index-runtime-debugging"></a> +<a name="index-options-for-debugging"></a> + +<a name="index-kpse_002d_003edebug"></a> +<a name="index-debug_002eh"></a> +<p>Kpathsea provides a number of runtime debugging options, detailed below +by their names and corresponding numeric values. When the files you +expect aren’t being found, the thing to do is enable these options and +examine the output. +</p> +<p>You can set these with some runtime argument (e.g., ‘<samp>-d</samp>’) to the +program; in that case, you should use the numeric values described in +the program’s documentation (which, for Dvipsk and Xdvik, are different +than those below). It’s best to give the ‘<samp>-d</samp>’ (or whatever) option +first, for maximal output. Dvipsk and Xdvik have additional +program-specific debugging options as well. +</p> +<a name="index-KPATHSEA_005fDEBUG-1"></a> +<a name="index-kpse_002d_003edebug-1"></a> +<p>You can also set the environment variable <code>KPATHSEA_DEBUG</code>; in this +case, you should use the numbers below. If you run the program under a +debugger and set the instance variable <code>kpse->debug</code>, also use the numbers +below. +</p> +<a name="index-_002d1-debugging-value"></a> +<p>In any case, by far the simplest value to use is ‘<samp>-1</samp>’, which will +turn on all debugging output. This is usually better than guessing +which particular values will yield the output you need. +</p> +<a name="index-debugging-output"></a> +<a name="index-standard-error-and-debugging-output"></a> +<p>Debugging output always goes to standard error, so you can redirect it +easily. For example, in Bourne-compatible shells: +</p><div class="example"> +<pre class="example">dvips -d -1 … 2>/tmp/debug +</pre></div> + +<a name="index-Kpsewhich_002c-and-debugging"></a> +<p>It is sometimes helpful to run the standalone Kpsewhich utility +(see <a href="#Invoking-kpsewhich">Invoking kpsewhich</a>), instead of the original program. +</p> +<a name="index-numeric-debugging-values"></a> +<p>In any case, you cannot use the names below; you must always use +somebody’s numbers. (Sorry.) To set more than one option, just sum +the corresponding numbers. +</p> +<dl compact="compact"> +<dt><code>KPSE_DEBUG_STAT <span class="roman">(1)</span></code> +<a name="index-KPSE_005fDEBUG_005fSTAT-_00281_0029"></a> +</dt> +<dd><p>Report ‘<samp>stat</samp>’(2) calls. This is useful for verifying that your +directory structure is not forcing Kpathsea to do many additional file +tests (see <a href="#Slow-path-searching">Slow path searching</a>, and see <a href="#Subdirectory-expansion">Subdirectory expansion</a>). If you are using an up-to-date <samp>ls-R</samp> database +(see <a href="#Filename-database">Filename database</a>), this should produce no output unless a +nonexistent file that must exist is searched for. +</p> +</dd> +<dt><code>KPSE_DEBUG_HASH <span class="roman">(2)</span></code> +<a name="index-KPSE_005fDEBUG_005fHASH-_00282_0029"></a> +</dt> +<dd><p>Report lookups in all hash tables: <samp>ls-R</samp> and <samp>aliases</samp> +(see <a href="#Filename-database">Filename database</a>); font aliases (see <a href="#Fontmap">Fontmap</a>); and config +file values (see <a href="#Config-files">Config files</a>). Useful when expected values are not +being found, e.g.., file searches are looking at the disk instead of +using <samp>ls-R</samp>. +</p> +</dd> +<dt><code>KPSE_DEBUG_FOPEN <span class="roman">(4)</span></code> +<a name="index-KPSE_005fDEBUG_005fFOPEN-_00284_0029"></a> +</dt> +<dd><a name="index-fopen_002c-redefined"></a> +<p>Report file openings and closings. Especially useful when your system’s +file table is full, for seeing which files have been opened but never +closed. In case you want to set breakpoints in a debugger: this works by +redefining ‘<samp>fopen</samp>’ (‘<samp>fclose</samp>’) to be ‘<samp>kpse_fopen_trace</samp>’ +(‘<samp>kpse_fclose_trace</samp>’). +</p> +</dd> +<dt><code>KPSE_DEBUG_PATHS <span class="roman">(8)</span></code> +<a name="index-KPSE_005fDEBUG_005fPATHS-_00288_0029"></a> +</dt> +<dd><a name="index-kpse_005fformat_005finfo_005ftype"></a> +<p>Report general path information for each file type Kpathsea is asked to +search. This is useful when you are trying to track down how a +particular path got defined—from <samp>texmf.cnf</samp>, <samp>config.ps</samp>, +an environment variable, the compile-time default, etc. This is the +contents of the <code>kpse_format_info_type</code> structure defined in +<samp>tex-file.h</samp>. +</p> +</dd> +<dt><code>KPSE_DEBUG_EXPAND <span class="roman">(16)</span></code> +<a name="index-KPSE_005fDEBUG_005fEXPAND-_002816_0029"></a> +</dt> +<dd><p>Report the directory list corresponding to each path element Kpathsea +searches. This is only relevant when Kpathsea searches the disk, since +<samp>ls-R</samp> searches don’t look through directory lists in this way. +</p> +</dd> +<dt><code>KPSE_DEBUG_SEARCH <span class="roman">(32)</span></code> +<a name="index-KPSE_005fDEBUG_005fSEARCH-_002832_0029"></a> +</dt> +<dd><p>Report on each file search: the name of the file searched for, the path +searched in, whether or not the file must exist (when drivers search for +<samp>cmr10.vf</samp>, it need not exist), and whether or not we are +collecting all occurrences of the file in the path (as with, e.g., +<samp>texmf.cnf</samp> and <samp>texfonts.map</samp>), or just the first (as with +most lookups). This can help you correlate what Kpathsea is doing with +what is in your input file. +</p> +</dd> +<dt><code>KPSE_DEBUG_VARS <span class="roman">(64)</span></code> +<a name="index-KPSE_005fDEBUG_005fVARS-_002864_0029"></a> +</dt> +<dd><p>Report the value of each variable Kpathsea looks up. This is useful for +verifying that variables do indeed obtain their correct values. +</p> +</dd> +<dt><code>GSFTOPK_DEBUG <span class="roman">(128)</span></code> +<a name="index-GSFTOPK_005fDEBUG-_0028128_0029"></a> +</dt> +<dd><p>Activates debugging printout specific to <code>gsftopk</code> program. +</p> +</dd> +<dt><code>MAKETEX_DEBUG <span class="roman">(512)</span></code> +<a name="index-MAKETEX_005fDEBUG-_0028512_0029"></a> +</dt> +<dd><p>If you use the optional <code>mktex</code> programs instead of the +traditional shell scripts, this will report the name of the site file +(<samp>mktex.cnf</samp> by default) which is read, directories created by +<code>mktexdir</code>, the full path of the <samp>ls-R</samp> database built by +<code>mktexlsr</code>, font map searches, <code>MT_FEATURES</code> in effect, +parameters from <code>mktexnam</code>, filenames added by +<code>mktexupd</code>, and some subsidiary commands run by the programs. +</p> +</dd> +<dt><code>MAKETEX_FINE_DEBUG <span class="roman">(1024)</span></code> +<a name="index-MAKETEX_005fFINE_005fDEBUG-_00281024_0029"></a> +</dt> +<dd><p>When the optional <code>mktex</code> programs are used, this will print +additional debugging info from functions internal to these programs. +</p></dd> +</dl> + +<a name="index-kdebug_003a"></a> +<a name="index-hash_005fsummary_005fonly-variable-for-debugging"></a> +<a name="index-hash-table-buckets_002c-printing"></a> +<p>Debugging output from Kpathsea is always written to standard error, and +begins with the string ‘<samp>kdebug:</samp>’. (Except for hash table buckets, +which just start with the number, but you can only get that output +running under a debugger. See comments at the <code>hash_summary_only</code> +variable in <samp>kpathsea/db.c</samp>.) +</p> + +<hr> +<a name="Logging"></a> +<div class="header"> +<p> +Next: <a href="#Common-problems" accesskey="n" rel="next">Common problems</a>, Previous: <a href="#Debugging" accesskey="p" rel="prev">Debugging</a>, Up: <a href="#Reporting-bugs" accesskey="u" rel="up">Reporting bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Logging-1"></a> +<h3 class="section">8.4 Logging</h3> + +<a name="index-log-file"></a> + +<a name="index-logging-successful-searches"></a> +<a name="index-recording-successful-searches"></a> +<a name="index-usage-patterns_002c-finding"></a> +<a name="index-disk-usage_002c-reducing"></a> +<p>Kpathsea can record the time and filename found for each successful +search. This may be useful in finding good candidates for deletion when +your filesystem is full, or in discovering usage patterns +at your site. +</p> +<a name="index-TEXMFLOG"></a> +<p>To do this, define the environment or config file variable +<code>TEXMFLOG</code>. The value is the name of the file to append the +information to. The file is created if it doesn’t exist, and appended +to if it does. +</p> +<a name="index-epoch_002c-seconds-since"></a> +<a name="index-time-system-call"></a> +<p>Each successful search turns into one line in the log file: two words +separated by a space. The first word is the time of the search, as the +integer number of seconds since “the epoch”, i.e., UTC midnight 1 +January 1970 (more precisely, the result of the <code>time</code> system +call). The second word is the filename. +</p> +<p>For example, after <code>setenv TEXMFLOG /tmp/log</code>, running Dvips on +<samp>story.dvi</samp> appends the following lines: +</p> +<div class="example"> +<pre class="example">774455887 /usr/local/share/texmf/dvips/config.ps +774455887 /usr/local/share/texmf/dvips/psfonts.map +774455888 /usr/local/share/texmf/dvips/texc.pro +774455888 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmbx10.600pk +774455889 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmsl10.600pk +774455889 /usr/local/share/texmf/fonts/pk/ljfour/public/cm/cmr10.600pk +774455889 /usr/local/share/texmf/dvips/texc.pro +</pre></div> + +<a name="index-privacy_002c-semblance-of"></a> +<p>Only filenames that are absolute are recorded, to preserve +some semblance of privacy. +</p> +<p>In addition to this Kpathsea-specific logging, <code>pdftex</code> +provides an option <samp>-recorder</samp> to write the names of all files +accessed during a run to the file <samp><var>basefile</var>.fls</samp>. +</p> +<p>Finally, most systems provide a general tool to output each system +call, thus including opening and closing files. It might be named +<code>strace</code>, <code>truss</code>, <code>struss</code>, or something +else. +</p> + +<hr> +<a name="Common-problems"></a> +<div class="header"> +<p> +Previous: <a href="#Logging" accesskey="p" rel="prev">Logging</a>, Up: <a href="#Reporting-bugs" accesskey="u" rel="up">Reporting bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Common-problems-1"></a> +<h3 class="section">8.5 Common problems</h3> + +<a name="index-common-problems"></a> +<a name="index-problems_002c-common"></a> +<a name="index-FAQ_002c-Kpathsea"></a> + +<p>Here are some common problems with configuration, compilation, linking, +execution, … +</p> +<table class="menu" border="0" cellspacing="0"> +<tr><td align="left" valign="top">• <a href="#Unable-to-find-files" accesskey="1">Unable to find files</a>:</td><td> </td><td align="left" valign="top">If your program can’t find fonts (or whatever). +</td></tr> +<tr><td align="left" valign="top">• <a href="#Slow-path-searching" accesskey="2">Slow path searching</a>:</td><td> </td><td align="left" valign="top">If it takes forever to find anything. +</td></tr> +<tr><td align="left" valign="top">• <a href="#Unable-to-generate-fonts" accesskey="3">Unable to generate fonts</a>:</td><td> </td><td align="left" valign="top">If mktexpk fails. +</td></tr> +<tr><td align="left" valign="top">• <a href="#TeX-or-Metafont-failing" accesskey="4">TeX or Metafont failing</a>:</td><td> </td><td align="left" valign="top">Likely compiler bugs. +</td></tr> +</table> + +<hr> +<a name="Unable-to-find-files"></a> +<div class="header"> +<p> +Next: <a href="#Slow-path-searching" accesskey="n" rel="next">Slow path searching</a>, Up: <a href="#Common-problems" accesskey="u" rel="up">Common problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Unable-to-find-files-1"></a> +<h4 class="subsection">8.5.1 Unable to find files</h4> + +<a name="index-unable-to-find-files"></a> +<a name="index-files_002c-unable-to-find"></a> + +<p>If a program complains it cannot find fonts (or other input files), any +of several things might be wrong. In any case, you may find the +debugging options helpful. See <a href="#Debugging">Debugging</a>. +</p> +<ul> +<li> Perhaps you simply haven’t installed all the necessary files; the basic +fonts and input files are distributed separately from the programs. +See <a href="#unixtex_002eftp">unixtex.ftp</a>. + +</li><li> <a name="index-_002fetc_002fprofile"></a> +<a name="index-environment-variables_002c-old"></a> +You have (perhaps unknowingly) told Kpathsea to use search paths that +don’t reflect where the files actually are. One common cause is having +environment variables set from a previous installation, thus overriding +what you carefully set in <samp>texmf.cnf</samp> (see <a href="#Supported-file-formats">Supported file formats</a>). System <samp>/etc/profile</samp> or other files such may be the +culprit. + +</li><li> <a name="index-symbolic-links-not-found"></a> +<a name="index-leaf-directories-wrongly-guessed"></a> +Your files reside in a directory that is only pointed to via a symbolic +link, in a leaf directory and is not listed in <samp>ls-R</samp>. + +<p>Unfortunately, Kpathsea’s subdirectory searching has an irremediable +deficiency: If a directory <var>d</var> being searched for subdirectories +contains plain files and symbolic links to other directories, but no +true subdirectories, <var>d</var> will be considered a leaf directory, i.e., +the symbolic links will not be followed. See <a href="#Subdirectory-expansion">Subdirectory expansion</a>. +</p> +<p>You can work around this problem by creating an empty dummy subdirectory +in <var>d</var>. Then <var>d</var> will no longer be a leaf, and the symlinks will +be followed. +</p> +<p>The directory immediately followed by the ‘<samp>//</samp>’ in the path +specification, however, is always searched for subdirectories, even if +it is a leaf. Presumably you would not have asked for the directory to +be searched for subdirectories if you didn’t want it to be. +</p> +</li><li> If the fonts (or whatever) don’t already exist, <code>mktexpk</code> (or +<code>mktexmf</code> or <code>mktextfm</code>) will try to create them. If +these rather complicated shell scripts fail, you’ll eventually get an +error message saying something like ‘<samp>Can't find font +<var>fontname</var></samp>’. The best solution is to fix (or at least report) the +bug in <code>mktexpk</code>; the workaround is to generate the necessary +fonts by hand with Metafont, or to grab them from a CTAN site +(see <a href="#unixtex_002eftp">unixtex.ftp</a>). + +</li><li> There is a bug in the library. See <a href="#Reporting-bugs">Reporting bugs</a>. +</li></ul> + + +<hr> +<a name="Slow-path-searching"></a> +<div class="header"> +<p> +Next: <a href="#Unable-to-generate-fonts" accesskey="n" rel="next">Unable to generate fonts</a>, Previous: <a href="#Unable-to-find-files" accesskey="p" rel="prev">Unable to find files</a>, Up: <a href="#Common-problems" accesskey="u" rel="up">Common problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Slow-path-searching-1"></a> +<h4 class="subsection">8.5.2 Slow path searching</h4> + +<a name="index-excessive-startup-time"></a> +<a name="index-slow-startup-time"></a> +<a name="index-startup-time_002c-excessive"></a> + +<p>If your program takes an excessively long time to find fonts or other +input files, but does eventually succeed, here are some possible culprits: +</p> +<ul> +<li> Most likely, you just have a lot of directories to search, and that +takes a noticeable time. The solution is to create and maintain a +separate <samp>ls-R</samp> file that lists all the files in your main TeX +hierarchy. See <a href="#Filename-database">Filename database</a>. Kpathsea always uses <samp>ls-R</samp> +if it’s present; there’s no need to recompile or reconfigure any of the +programs. + +</li><li> Your recursively-searched directories (e.g., +<samp>/usr/local/share/texmf/fonts//</samp>), contain a mixture of files and +directories. This prevents Kpathsea from using a useful optimization +(see <a href="#Subdirectory-expansion">Subdirectory expansion</a>). + +<p>It is best to have only directories (and perhaps a <samp>README</samp>) in the +upper levels of the directory structure, and it’s very important to have +<em>only</em> files, and no subdirectories, in the leaf directories where +the dozens of TFM, PK, or whatever files reside. +</p></li></ul> -<ul class="index-cp" compact> -<li><a href="#index-g_t_0021_0021-_0040r_007bin-path-specifications_007d-537"><code>!! </code><span class="roman">in path specifications</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_0024-_0040r_007bexpansion_007d-483"><code>$ </code><span class="roman">expansion</span></a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-g_t_002d_002dall-547"><code>--all</code></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dcolor_003dtty-524"><code>--color=tty</code></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002d_002ddebug_003d_0040var_007bnum_007d-578"><code>--debug=</code><var>num</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002ddisable_002dstatic-110"><code>--disable-static</code></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_002d_002ddpi_003d_0040var_007bnum_007d-549"><code>--dpi=</code><var>num</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002denable-_0040r_007boptions_007d-106"><code>--enable </code><span class="roman">options</span></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_002d_002denable_002dmaintainer_002dmode-111"><code>--enable-maintainer-mode</code></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_002d_002denable_002dshared-139"><code>--enable-shared</code></a>: <a href="#Shared-library">Shared library</a></li> -<li><a href="#index-g_t_002d_002denable_002dshared-109"><code>--enable-shared</code></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_002d_002dengine_003d_0040var_007bname_007d-552"><code>--engine=</code><var>name</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dexpand_002dbraces_003d_0040var_007bstring_007d-580"><code>--expand-braces=</code><var>string</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002dexpand_002dpath_003d_0040var_007bstring_007d-582"><code>--expand-path=</code><var>string</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002dexpand_002dvar_003d_0040var_007bstring_007d-581"><code>--expand-var=</code><var>string</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002dformat_003d_0040var_007bname_007d-554"><code>--format=</code><var>name</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dhelp-585"><code>--help</code></a>: <a href="#Standard-options">Standard options</a></li> -<li><a href="#index-g_t_002d_002dinteractive-555"><code>--interactive</code></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dmktex_003d_0040var_007bfiletype_007d-557"><code>--mktex=</code><var>filetype</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dmode_003d_0040var_007bstring_007d-559"><code>--mode=</code><var>string</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dmust_002dexist-560"><code>--must-exist</code></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dno_002dmktex_003d_0040var_007bfiletype_007d-558"><code>--no-mktex=</code><var>filetype</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dpath_003d_0040var_007bstring_007d-561"><code>--path=</code><var>string</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dprogname_003d_0040var_007bname_007d-562"><code>--progname=</code><var>name</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dsafe_002din_002dname_003d_0040var_007bname_007d-563"><code>--safe-in-name=</code><var>name</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dsafe_002dout_002dname_003d_0040var_007bname_007d-564"><code>--safe-out-name=</code><var>name</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dshow_002dpath_003d_0040var_007bname_007d-583"><code>--show-path=</code><var>name</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002dsrcdir_0040r_007b_002c-for-building-multiple-architectures_007d-129"><code>--srcdir</code><span class="roman">, for building multiple architectures</span></a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-g_t_002d_002dsubdir_003d_0040var_007bstring_007d-565"><code>--subdir=</code><var>string</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002d_002dvar_002dvalue_003d_0040var_007bvariable_007d-579"><code>--var-value=</code><var>variable</var></a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-g_t_002d_002dversion-586"><code>--version</code></a>: <a href="#Standard-options">Standard options</a></li> -<li><a href="#index-g_t_002d_002dwith-_0040r_007boptions_007d-105"><code>--with </code><span class="roman">options</span></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_002d_002dwith_002dmktextex_002ddefault-200"><code>--with-mktextex-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktexfmt_002ddefault-194"><code>--without-mktexfmt-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktexmf_002ddefault-195"><code>--without-mktexmf-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktexocp_002ddefault-196"><code>--without-mktexocp-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktexofm_002ddefault-197"><code>--without-mktexofm-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktexpk_002ddefault-198"><code>--without-mktexpk-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d_002dwithout_002dmktextfm_002ddefault-199"><code>--without-mktextfm-default</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_002d1-_0040r_007bdebugging-value_007d-321"><code>-1 </code><span class="roman">debugging value</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-g_t_002dA-_0040r_007boption-to-_0040code_007bls_007d_007d-526"><code>-A </code><span class="roman">option to </span><code>ls</code></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002dBdynamic-413"><code>-Bdynamic</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-g_t_002dBstatic-412"><code>-Bstatic</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-g_t_002dD-_0040var_007bnum_007d-550"><code>-D </code><var>num</var></a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-g_t_002ddynamic-411"><code>-dynamic</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-g_t_002dg_0040r_007b_002c-compiling-without_007d-135"><code>-g</code><span class="roman">, compiling without</span></a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-g_t_002dL-_0040r_007boption-to-_0040code_007bls_007d_007d-532"><code>-L </code><span class="roman">option to </span><code>ls</code></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002dO_0040r_007b_002c-compiling-with_007d-134"><code>-O</code><span class="roman">, compiling with</span></a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-g_t_002dstatic-410"><code>-static</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-g_t_002e-_0040r_007bdirectories_002c-ignored_007d-529"><code>. </code><span class="roman">directories, ignored</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002e-_0040r_007bfiles_007d-528"><code>. </code><span class="roman">files</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002e2602gf-367"><code>.2602gf</code></a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-g_t_002eafm-593"><code>.afm</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ebase-595"><code>.base</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ebib-598"><code>.bib</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ebst-601"><code>.bst</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ecid-617"><code>.cid</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ecmap-603"><code>.cmap</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ecnf-605"><code>.cnf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eenc-612"><code>.enc</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eeps-625"><code>.eps</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eepsi-626"><code>.epsi</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002efea-619"><code>.fea</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002efmt-614"><code>.fmt</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eist-629"><code>.ist</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002elig-632"><code>.lig</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emap-636"><code>.map</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emem-638"><code>.mem</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emf-642"><code>.mf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emft-646"><code>.mft</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emlbib-649"><code>.mlbib</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emlbst-653"><code>.mlbst</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002emp-656"><code>.mp</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eocp-660"><code>.ocp</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eofm-662"><code>.ofm</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eopl-665"><code>.opl</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eotp-666"><code>.otp</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eovf-668"><code>.ovf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eovp-670"><code>.ovp</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002epfa-699"><code>.pfa</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002epfb-700"><code>.pfb</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002epk-673"><code>.pk</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002epool-644"><code>.pool</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002epro-678"><code>.pro</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002erhosts_0040r_007b_002c-writable-by-_0040TeX_007b_007d_007d-258"><code>.rhosts</code><span class="roman">, writable by TeX</span></a>: <a href="#Security">Security</a></li> -<li><a href="#index-g_t_002esfd-681"><code>.sfd</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002etex-683"><code>.tex</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002etex-_0040r_007bfile_002c-included-in-_0040file_007bls_002dR_007d_007d-530"><code>.tex </code><span class="roman">file, included in </span><samp><span class="file">ls-R</span></samp></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002etfm-692"><code>.tfm</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ettc-697"><code>.ttc</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ettf-696"><code>.ttf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002evf-706"><code>.vf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002ew-607"><code>.w</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002eweb-608"><code>.web</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_002f-_0040r_007bmay-not-be-_002f_007d-425"><code>/ </code><span class="roman">may not be /</span></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-g_t_002f_0040r_007b_002c-trailing-in-home-directory_007d-499"><code>/</code><span class="roman">, trailing in home directory</span></a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-g_t_002f_002f-506"><code>//</code></a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-g_t_002fafs_002f_0040dots_007b_007d-_0040r_007b_002c-installing-into_007d-173"><code>/afs/... </code><span class="roman">, installing into</span></a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-g_t_002fetc_002fprofile-355"><code>/etc/profile</code></a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-g_t_002fetc_002fprofile-_0040r_007band-aliases_007d-525"><code>/etc/profile </code><span class="roman">and aliases</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-g_t_002fvar_002ftmp_002ftexfonts-229"><code>/var/tmp/texfonts</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t2602gf-368"><code>2602gf</code></a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-g_t8_002e3-filenames_002c-using-211">8.3 filenames, using</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_003a-_0040r_007bmay-not-be-_003a_007d-424"><code>: </code><span class="roman">may not be :</span></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-g_t_003a_003a-_0040r_007bexpansion_007d-474"><code>:: </code><span class="roman">expansion</span></a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-g_t_0040_0040_0040var_007bvar_007d_0040_0040-substitutions-87">@<var>var</var>@ substitutions</a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-g_t_005c_0040r_007b_002c-line-continuation-in-_0040file_007btexmf_002ecnf_007d_007d-466"><code>\</code><span class="roman">, line continuation in </span><samp><span class="file">texmf.cnf</span></samp></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-g_t_005copenin-435"><code>\openin</code></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-g_t_005cspecial_0040r_007b_002c-suppressing-warnings-about_007d-769"><code>\special</code><span class="roman">, suppressing warnings about</span></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-absolute-filenames-437">absolute filenames</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-ac_005finclude_0040r_007b_002c-Autoconf-extension_007d-86"><code>ac_include</code><span class="roman">, Autoconf extension</span></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-access-warnings-443">access warnings</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-AFMFONTS-594"><code>AFMFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-AFS-171">AFS</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-AIX-4_002e1-_0040code_007bconfigure_007d-error-390">AIX 4.1 <code>configure</code> error</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-AIX-shells-and-_0040code_007bconfigure_007d-96">AIX shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-aliases-for-fonts-736">aliases for fonts</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-aliases_002c-for-filenames-540">aliases, for filenames</a>: <a href="#Filename-aliases">Filename aliases</a></li> -<li><a href="#index-all-759"><code>all</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-all-matches_002c-finding-548">all matches, finding</a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-alphabetical-order_002c-not-509">alphabetical order, not</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-Amiga-support-42">Amiga support</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-Andrew-File-System_002c-installing-with-172">Andrew File System, installing with</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-announcement-mailing-list-305">announcement mailing list</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-ANSI-C-381">ANSI C</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-API_002c-re_002dentrant-773">API, re-entrant</a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-append_002donly-directories-and-_0040code_007bmktexpk_007d-262">append-only directories and <code>mktexpk</code></a>: <a href="#Security">Security</a></li> -<li><a href="#index-appendonlydir-207"><code>appendonlydir</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-architecture_002d_0028in_0029dependent-files_002c-installing-only-167">architecture-(in)dependent files, installing only</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-architectures_002c-compiling-multiple-127">architectures, compiling multiple</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-arguments-to-_0040file_007bmktex_007d-253">arguments to <samp><span class="file">mktex</span></samp></a>: <a href="#mktex-script-arguments">mktex script arguments</a></li> -<li><a href="#index-argv_005b0_005d-785"><code>argv[0]</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-ash_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-97"><code>ash</code><span class="roman">, losing with </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-autoconf_0040r_007b_002c-recommended_007d-816"><code>autoconf</code><span class="roman">, recommended</span></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-automounter_002c-and-configuration-133">automounter, and configuration</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-automounter_002c-and-_0040file_007bls_002dR_007d-533">automounter, and <samp><span class="file">ls-R</span></samp></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-auxiliary-tasks-577">auxiliary tasks</a>: <a href="#Auxiliary-tasks">Auxiliary tasks</a></li> -<li><a href="#index-Babel-164">Babel</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-Babel-61">Babel</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-Bach_002c-Johann-Sebastian-481">Bach, Johann Sebastian</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-backslash_002dnewline-463">backslash-newline</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-bash_0040r_007b_002c-recommended-for-running-_0040code_007bconfigure_007d_007d-92"><code>bash</code><span class="roman">, recommended for running </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-basic-glyph-lookup-729">basic glyph lookup</a>: <a href="#Basic-glyph-lookup">Basic glyph lookup</a></li> -<li><a href="#index-Berry_002c-Karl-15">Berry, Karl</a>: <a href="#History">History</a></li> -<li><a href="#index-BIBINPUTS-599"><code>BIBINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-blank-lines_002c-in-_0040file_007btexmf_002ecnf_007d-462">blank lines, in <samp><span class="file">texmf.cnf</span></samp></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-brace-expansion-502">brace expansion</a>: <a href="#Brace-expansion">Brace expansion</a></li> -<li><a href="#index-BSD-universe-159">BSD universe</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-bsh_0040r_007b_002c-ok-with-_0040code_007bconfigure_007d_007d-94"><code>bsh</code><span class="roman">, ok with </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-BSTINPUTS-602"><code>BSTINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-bug-address-286">bug address</a>: <a href="#Reporting-bugs">Reporting bugs</a></li> -<li><a href="#index-bug-checklist-288">bug checklist</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-bug-mailing-list-304">bug mailing list</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-bugs_002c-reporting-284">bugs, reporting</a>: <a href="#Reporting-bugs">Reporting bugs</a></li> -<li><a href="#index-c_002d_002a_002eh-815"><code>c-*.h</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-c_002dauto_002eh-779"><code>c-auto.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-c_002dauto_002ein-84"><code>c-auto.in</code></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-cache-of-fonts_002c-local-260">cache of fonts, local</a>: <a href="#Security">Security</a></li> -<li><a href="#index-calling-sequence-782">calling sequence</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-CC-112"><code>CC</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-cc-_0040r_007bwarnings_007d-417"><code>cc </code><span class="roman">warnings</span></a>: <a href="#Pointer-combination-warnings">Pointer combination warnings</a></li> -<li><a href="#index-cc_0040r_007b_002c-compiling-with_007d-114"><code>cc</code><span class="roman">, compiling with</span></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-CFLAGS-115"><code>CFLAGS</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-ChangeLog-_0040r_007bentry_007d-296"><code>ChangeLog </code><span class="roman">entry</span></a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-checklist-for-bug-reports-287">checklist for bug reports</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-checksum-760"><code>checksum</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-circle-fonts-739">circle fonts</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-clean-_0040r_007bMake-target_007d-178"><code>clean </code><span class="roman">Make target</span></a>: <a href="#Cleaning-up">Cleaning up</a></li> -<li><a href="#index-client_005fpath-_0040r_007bin-_0040code_007bkpse_002d_003eformat_005finfo_007d_007d-798"><code>client_path </code><span class="roman">in </span><code>kpse->format_info</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-CMAPFONTS-604"><code>CMAPFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-cmr10_0040r_007b_002c-as-fallback-font_007d-754"><code>cmr10</code><span class="roman">, as fallback font</span></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-cmr10_002evf-434"><code>cmr10.vf</code></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-cnf_002ec-471"><code>cnf.c</code></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-cnf_002eh-823"><code>cnf.h</code></a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-code-sharing-140">code sharing</a>: <a href="#Shared-library">Shared library</a></li> -<li><a href="#index-color-printers_002c-configuring-35">color printers, configuring</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-comments_002c-in-fontmap-files-741">comments, in fontmap files</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-comments_002c-in-_0040file_007btexmf_002ecnf_007d-461">comments, in <samp><span class="file">texmf.cnf</span></samp></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-comments_002c-making-5">comments, making</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-common-features-in-glyph-lookup-730">common features in glyph lookup</a>: <a href="#Basic-glyph-lookup">Basic glyph lookup</a></li> -<li><a href="#index-common-problems-350">common problems</a>: <a href="#Common-problems">Common problems</a></li> -<li><a href="#index-comp_002esys_002esun_002eadmin-_0040r_007bFAQ_007d-404"><code>comp.sys.sun.admin </code><span class="roman">FAQ</span></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-comp_002etext_002etex-313"><code>comp.text.tex</code></a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-compilation-28">compilation</a>: <a href="#Installation">Installation</a></li> -<li><a href="#index-compilation-value_002c-source-for-path-453">compilation value, source for path</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-compiler-bugs-376">compiler bugs</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-compiler-bugs_002c-finding-380">compiler bugs, finding</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-compiler-options_002c-additional-149">compiler options, additional</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-compiler-options_002c-specifying-116">compiler options, specifying</a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-compiler_002c-changing-156">compiler, changing</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-compiling-on-HP_002dUX-383">compiling on HP-UX</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-conditions-for-use-7">conditions for use</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-config-files-454">config files</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-config-files_002c-for-Kpathsea_002dusing-programs-801">config files, for Kpathsea-using programs</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-config-files_002c-programming-with-818">config files, programming with</a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-config_002eh-778"><code>config.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-config_002elog-291"><code>config.log</code></a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-config_002eps-566"><code>config.ps</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-config_002eps_0040r_007b_002c-search-path-for_007d-611"><code>config.ps</code><span class="roman">, search path for</span></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-config_002estatus-293"><code>config.status</code></a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-configuration-27">configuration</a>: <a href="#Installation">Installation</a></li> -<li><a href="#index-configuration-bugs-292">configuration bugs</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-configuration-compiler-options-118">configuration compiler options</a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-configuration-file_002c-source-for-path-450">configuration file, source for path</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-configuration-files-as-shell-scripts_002e-470">configuration files as shell scripts.</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-configuration-of-_0040file_007bmktex_007d-scripts-190">configuration of <samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-configuration-of-optional-features-107">configuration of optional features</a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-configure-_0040r_007berror-from-_0040code_007bsed_007d_007d-386"><code>configure </code><span class="roman">error from </span><code>sed</code></a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-g_t_0040code_007bconfigure_007d-options-104"><code>configure</code> options</a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-g_t_0040code_007bconfigure_007d-options-for-_0040file_007bmktex_007d-scripts-193"><code>configure</code> options for <samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-configure_0040r_007b_002c-running_007d-83"><code>configure</code><span class="roman">, running</span></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-context-diff-294">context diff</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-continuation-character-464">continuation character</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-core-dumps_002c-reporting-300">core dumps, reporting</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-CPPFLAGS-117"><code>CPPFLAGS</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-crashes_002c-reporting-299">crashes, reporting</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-custom-installation-39">custom installation</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-CWEBINPUTS-609"><code>CWEBINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-database-search-426">database search</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-database_002c-for-filenames-519">database, for filenames</a>: <a href="#Filename-database">Filename database</a></li> -<li><a href="#index-database_002c-format-of-542">database, format of</a>: <a href="#Database-format">Database format</a></li> -<li><a href="#index-debug_002eh-318"><code>debug.h</code></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-debugger-298">debugger</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-debugging-314">debugging</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-debugging-options_002c-in-Kpathsea_002dusing-program-797">debugging options, in Kpathsea-using program</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-debugging-output-322">debugging output</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-debugging-with-_0040samp_007b_002dg_007d_002c-disabling-137">debugging with ‘<samp><span class="samp">-g</span></samp>’, disabling</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-DEC-shells-and-_0040code_007bconfigure_007d-101">DEC shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-default-expansion-479">default expansion</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-default-path-features-66">default path features</a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-default-paths_002c-changing-74">default paths, changing</a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-default-paths_002c-how-they_0027re-made-78">default paths, how they're made</a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-default_005ftexsizes-753"><code>default_texsizes</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-DEFS-119"><code>DEFS</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-depot-132"><code>depot</code></a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-device_002c-wrong-366">device, wrong</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-directories_002c-changing-default-installation-77">directories, changing default installation</a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-directories_002c-making-append_002donly-208">directories, making append-only</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-directory-permissions-267">directory permissions</a>: <a href="#Security">Security</a></li> -<li><a href="#index-directory-structure_002c-for-_0040TeX_007b_007d-files-271">directory structure, for TeX files</a>: <a href="#TeX-directory-structure">TeX directory structure</a></li> -<li><a href="#index-disabling-_0040file_007bmktex_007d-scripts-192">disabling <samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-disk-search-430">disk search</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-disk-searching_002c-avoiding-538">disk searching, avoiding</a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-disk-space_002c-needed-46">disk space, needed</a>: <a href="#Disk-space">Disk space</a></li> -<li><a href="#index-disk-usage_002c-reducing-345">disk usage, reducing</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-distclean-_0040r_007bMake-target_007d-176"><code>distclean </code><span class="roman">Make target</span></a>: <a href="#Cleaning-up">Cleaning up</a></li> -<li><a href="#index-distributions_002c-compiling-simultaneously-49">distributions, compiling simultaneously</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-distributions_002c-not-compiling-52">distributions, not compiling</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-dlclose-396"><code>dlclose</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-dlopen-394"><code>dlopen</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-dlsym-395"><code>dlsym</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-dlsym_002ec-399"><code>dlsym.c</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-doc-files-685"><code>doc files</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-DOS-compatible-names-212">DOS compatible names</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-DOS-support-43">DOS support</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-dosnames-210"><code>dosnames</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-dot-files-527">dot files</a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-doubled-colons-475">doubled colons</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-dpi_0040var_007bnnn_007d-directories-213"><code>dpi</code><var>nnn</var><code> directories</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-DVI-drivers-55">DVI drivers</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-DVILJMAKEPK-248"><code>DVILJMAKEPK</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-DVILJSIZES-751"><code>DVILJSIZES</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-dvipdfmx_002ecfg-567"><code>dvipdfmx.cfg</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-DVIPSFONTS-715"><code>DVIPSFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-DVIPSHEADERS-704"><code>DVIPSHEADERS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-DVIPSMAKEPK-246"><code>DVIPSMAKEPK</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-DVIPSSIZES-749"><code>DVIPSSIZES</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-dynamic-creation-of-files-186">dynamic creation of files</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-dynamic-linking-problems-with-OpenWin-libraries-400">dynamic linking problems with OpenWin libraries</a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-EC-fonts_002c-and-dynamic-source-creation-188">EC fonts, and dynamic source creation</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-elt_002ddirs_002ec-516"><code>elt-dirs.c</code></a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-enabling-_0040file_007bmktex_007d-scripts-191">enabling <samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-ENCFONTS-613"><code>ENCFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-engine-name-553">engine name</a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-environment-variable_002c-source-for-path-449">environment variable, source for path</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-environment-variables-for-_0040TeX_007b_007d-590">environment variables for TeX</a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-environment-variables-in-paths-484">environment variables in paths</a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-environment-variables_002c-old-356">environment variables, old</a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-epoch_002c-seconds-since-347">epoch, seconds since</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-error-message-macros-789">error message macros</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-excessive-startup-time-359">excessive startup time</a>: <a href="#Slow-path-searching">Slow path searching</a></li> -<li><a href="#index-expand_002ec-504"><code>expand.c</code></a>: <a href="#Brace-expansion">Brace expansion</a></li> -<li><a href="#index-expanding-symlinks-795">expanding symlinks</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-expansion_002c-default-480">expansion, default</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-expansion_002c-path-element-436">expansion, path element</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-expansion_002c-search-path-473">expansion, search path</a>: <a href="#Path-expansion">Path expansion</a></li> -<li><a href="#index-expansion_002c-subdirectory-508">expansion, subdirectory</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-expansion_002c-tilde-494">expansion, tilde</a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-expansion_002c-variable-486">expansion, variable</a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-explicitly-relative-filenames-439">explicitly relative filenames</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-extensions_002c-filename-719">extensions, filename</a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-externally_002dbuilt-filename-database-520">externally-built filename database</a>: <a href="#Filename-database">Filename database</a></li> -<li><a href="#index-extra-colons-478">extra colons</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-extraclean-_0040r_007bMake-target_007d-180"><code>extraclean </code><span class="roman">Make target</span></a>: <a href="#Cleaning-up">Cleaning up</a></li> -<li><a href="#index-failed-_0040code_007bmktex_0040dots_007b_007d_007d-script-invocation-250">failed <code>mktex...</code> script invocation</a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-fallback-font-744">fallback font</a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-fallback-resolutions-745">fallback resolutions</a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-fallback-resolutions_002c-overriding-144">fallback resolutions, overriding</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-FAQ_002c-_0040t_007bcomp_002esys_002esun_002eadmin_007d-405">FAQ, <tt>comp.sys.sun.admin</tt></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-FAQ_002c-Kpathsea-352">FAQ, Kpathsea</a>: <a href="#Common-problems">Common problems</a></li> -<li><a href="#index-Farwell_002c-Matthew-512">Farwell, Matthew</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-features_002c-of-default-paths-67">features, of default paths</a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-file-formats_002c-supported-589">file formats, supported</a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-file-lookup-716">file lookup</a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-file-permissions-265">file permissions</a>: <a href="#Security">Security</a></li> -<li><a href="#index-file-types_002c-registering-new-780">file types, registering new</a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-filename-aliases-539">filename aliases</a>: <a href="#Filename-aliases">Filename aliases</a></li> -<li><a href="#index-filename-database-518">filename database</a>: <a href="#Filename-database">Filename database</a></li> -<li><a href="#index-filename-database-generation-181">filename database generation</a>: <a href="#Filename-database-generation">Filename database generation</a></li> -<li><a href="#index-filenames_002c-absolute-or-explicitly-relative-440">filenames, absolute or explicitly relative</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-files_002c-unable-to-find-354">files, unable to find</a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-filesystem-search-429">filesystem search</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-floating-directories-428">floating directories</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-fmtutil-239"><code>fmtutil</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-fmtutil_002ecnf-568"><code>fmtutil.cnf</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-fmtutils_002ecnf-201"><code>fmtutils.cnf</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-font-alias-files-735">font alias files</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-font-generation-failures-363">font generation failures</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-font-of-last-resort-746">font of last resort</a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-font-set_002c-infinite-185">font set, infinite</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-FONTCIDMAPS-618"><code>FONTCIDMAPS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-FONTFEATURES-620"><code>FONTFEATURES</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-fontmap-files-734">fontmap files</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-fontmaps-214"><code>fontmaps</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-fontname-216">fontname</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-fontnames_002c-arbitrary-length-738">fontnames, arbitrary length</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-fonts_002c-being-created-36">fonts, being created</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-FOOINPUTS-712"><code>FOOINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-fopen_0040r_007b_002c-redefined_007d-329"><code>fopen</code><span class="roman">, redefined</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-format-of-external-database-541">format of external database</a>: <a href="#Database-format">Database format</a></li> -<li><a href="#index-FreeBSD-_0040code_007bconfigure_007d-error-388">FreeBSD <code>configure</code> error</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-FreeBSD-shells-and-_0040code_007bconfigure_007d-99">FreeBSD shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-ftp_002ecs_002estanford_002eedu-280"><code>ftp.cs.stanford.edu</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-ftp_002etug_002eorg-279"><code>ftp.tug.org</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-fundamental-purpose-of-Kpathsea-2">fundamental purpose of Kpathsea</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-gcc_0040r_007b_002c-compiling-with_007d-113"><code>gcc</code><span class="roman">, compiling with</span></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-gdb_0040r_007b_002c-recommended_007d-302"><code>gdb</code><span class="roman">, recommended</span></a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-generation-of-filename-database-182">generation of filename database</a>: <a href="#Filename-database-generation">Filename database generation</a></li> -<li><a href="#index-get_005fapplicationShellWidgetClass-403"><code>get_applicationShellWidgetClass</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-get_005fwmShellWidgetClass-402"><code>get_wmShellWidgetClass</code></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-gf-621"><code>gf</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-GFFONTS-622"><code>GFFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-globally-writable-directories-261">globally writable directories</a>: <a href="#Security">Security</a></li> -<li><a href="#index-glyph-lookup-724">glyph lookup</a>: <a href="#Glyph-lookup">Glyph lookup</a></li> -<li><a href="#index-glyph-lookup-bitmap-tolerance-732">glyph lookup bitmap tolerance</a>: <a href="#Basic-glyph-lookup">Basic glyph lookup</a></li> -<li><a href="#index-GLYPHFONTS-623"><code>GLYPHFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-glyphlist_002etxt-569"><code>glyphlist.txt</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-GNU-C-compiler-bugs-378">GNU C compiler bugs</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-GNU-General-Public-License-9">GNU General Public License</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-group_002dwritable-directories-263">group-writable directories</a>: <a href="#Security">Security</a></li> -<li><a href="#index-GSFTOPK_005fDEBUG-_0040r_007b_0028128_0029_007d-335"><code>GSFTOPK_DEBUG </code><span class="roman">(128)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-hash-table-buckets_002c-printing-340">hash table buckets, printing</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-hash-table-routines-809">hash table routines</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-hash_005fsummary_005fonly-_0040r_007bvariable-for-debugging_007d-339"><code>hash_summary_only </code><span class="roman">variable for debugging</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-help_002c-mailing-list-for-general-_0040TeX_007b_007d-311">help, mailing list for general TeX</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-history-of-Kpathsea-11">history of Kpathsea</a>: <a href="#History">History</a></li> -<li><a href="#index-home-directories-in-paths-492">home directories in paths</a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-HOME_0040r_007b_002c-as-_007e-expansion_007d-495"><code>HOME</code><span class="roman">, as ~ expansion</span></a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-HP_002dUX_002c-compiling-on-382">HP-UX, compiling on</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-identifiers_002c-characters-valid-in-467">identifiers, characters valid in</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-illegal-pointer-combination-warnings-416">illegal pointer combination warnings</a>: <a href="#Pointer-combination-warnings">Pointer combination warnings</a></li> -<li><a href="#index-include-_0040r_007bfontmap-directive_007d-743"><code>include </code><span class="roman">fontmap directive</span></a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-INDEXSTYLE-631"><code>INDEXSTYLE</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-info_002dtex_0040_0040shsu_002eedu-312"><code>info-tex@shsu.edu</code></a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-input-lines_002c-reading-813">input lines, reading</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-install_002ddata-_0040r_007bMake-target_007d-170"><code>install-data </code><span class="roman">Make target</span></a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-install_002dexec-_0040r_007bMake-target_007d-169"><code>install-exec </code><span class="roman">Make target</span></a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-installation-26">installation</a>: <a href="#Installation">Installation</a></li> -<li><a href="#index-installation-testing-255">installation testing</a>: <a href="#Installation-testing">Installation testing</a></li> -<li><a href="#index-installation_002c-architecture_002d_0028in_0029dependent-files-only-168">installation, architecture-(in)dependent files only</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-installation_002c-changing-default-directories-76">installation, changing default directories</a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-installation_002c-customized-40">installation, customized</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-installation_002c-getting-executables-instead-of-32">installation, getting executables instead of</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-installation_002c-simple-30">installation, simple</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-installing-files-165">installing files</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-interactive-query-556">interactive query</a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-interface_002c-not-frozen-4">interface, not frozen</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-introduction-1">introduction</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-g_t_0040samp_007bkdebug_003a_007d-338">‘<samp><span class="samp">kdebug:</span></samp>’</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-kdefault_002ec-482"><code>kdefault.c</code></a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-Knuth_002c-Donald-E_002e-12">Knuth, Donald E.</a>: <a href="#History">History</a></li> -<li><a href="#index-Knuth_002c-Donald-E_002e_002c-archive-of-programs-by-282">Knuth, Donald E., archive of programs by</a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-Korn-shell_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-95">Korn shell<span class="roman">, losing with </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-kpathsae_005fvar_005fvalue-819"><code>kpathsae_var_value</code></a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-Kpathsea-config-file_002c-source-for-path-451">Kpathsea config file, source for path</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-Kpathsea-version-number-51">Kpathsea version number</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-kpathsea_002eh-777"><code>kpathsea.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-kpathsea_002fREADME_002eCONFIGURE-90"><code>kpathsea/README.CONFIGURE</code></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-kpathsea_005fcnf_005fget-822"><code>kpathsea_cnf_get</code></a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-KPATHSEA_005fDEBUG-790"><code>KPATHSEA_DEBUG</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-KPATHSEA_005fDEBUG-319"><code>KPATHSEA_DEBUG</code></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-kpathsea_005ffind_005ffile-804"><code>kpathsea_find_file</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005ffind_005ffile-723"><code>kpathsea_find_file</code></a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-kpathsea_005ffind_005fglyph-728"><code>kpathsea_find_glyph</code></a>: <a href="#Glyph-lookup">Glyph lookup</a></li> -<li><a href="#index-kpathsea_005ffinish-808"><code>kpathsea_finish</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005fin_005fname_005fok-807"><code>kpathsea_in_name_ok</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005finit_005fprog-802"><code>kpathsea_init_prog</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005finit_005fprog-755"><code>kpathsea_init_prog</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-kpathsea_005fnew-783"><code>kpathsea_new</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005fopen_005ffile-805"><code>kpathsea_open_file</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005fout_005fname_005fok-806"><code>kpathsea_out_name_ok</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpathsea_005fset_005fprogram_005fname-784"><code>kpathsea_set_program_name</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-KPATHSEA_005fWARNING-458"><code>KPATHSEA_WARNING</code></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-kpse_002d_003edebug-317"><code>kpse->debug</code></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-kpse_002d_003edebug-_0040r_007bvariable_007d-796"><code>kpse->debug </code><span class="roman">variable</span></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpse_002d_003eformat_005finfo-799"><code>kpse->format_info</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpse_002d_003einvocation_005fname-786"><code>kpse->invocation_name</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpse_002d_003einvocation_005fshort_005fname-787"><code>kpse->invocation_short_name</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-kpse_002d_003eprogram_005fname-788"><code>kpse->program_name</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-KPSE_005fBITMAP_005fTOLERANCE-733"><code>KPSE_BITMAP_TOLERANCE</code></a>: <a href="#Basic-glyph-lookup">Basic glyph lookup</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fEXPAND-_0040r_007b_002816_0029_007d-332"><code>KPSE_DEBUG_EXPAND </code><span class="roman">(16)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fFOPEN-_0040r_007b_00284_0029_007d-328"><code>KPSE_DEBUG_FOPEN </code><span class="roman">(4)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fHASH-_0040r_007b_00282_0029_007d-327"><code>KPSE_DEBUG_HASH </code><span class="roman">(2)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fPATHS-_0040r_007b_00288_0029_007d-330"><code>KPSE_DEBUG_PATHS </code><span class="roman">(8)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fSEARCH-_0040r_007b_002832_0029_007d-333"><code>KPSE_DEBUG_SEARCH </code><span class="roman">(32)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fSTAT-_0040r_007b_00281_0029_007d-326"><code>KPSE_DEBUG_STAT </code><span class="roman">(1)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDEBUG_005fVARS-_0040r_007b_002864_0029_007d-334"><code>KPSE_DEBUG_VARS </code><span class="roman">(64)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-KPSE_005fDOT-_0040r_007bexpansion_007d-505"><code>KPSE_DOT </code><span class="roman">expansion</span></a>: <a href="#KPSE_005fDOT-expansion">KPSE_DOT expansion</a></li> -<li><a href="#index-kpse_005fformat_005finfo_005ftype-331"><code>kpse_format_info_type</code></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-kpse_005finit_005fprog_0040r_007b_002c-and-_0040code_007bMAKETEX_005fMODE_007d_007d-70"><code>kpse_init_prog</code><span class="roman">, and </span><code>MAKETEX_MODE</code></a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-kpsewhich-543"><code>kpsewhich</code></a>: <a href="#Invoking-kpsewhich">Invoking kpsewhich</a></li> -<li><a href="#index-Kpsewhich_002c-and-debugging-324">Kpsewhich, and debugging</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-ksh_0040r_007b_002c-losing-with-_0040code_007bconfigure_007d_007d-93"><code>ksh</code><span class="roman">, losing with </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-LaserJet-drive-57">LaserJet drive</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-last_002dresort-font-748">last-resort font</a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-La_0040TeX_007b_007d-help-mailing-list-308">LaTeX help mailing list</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-lcircle10-740"><code>lcircle10</code></a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-LDFLAGS-121"><code>LDFLAGS</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-leading-colons-476">leading colons</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-leaf-directories-wrongly-guessed-358">leaf directories wrongly guessed</a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-leaf-directory-trick-511">leaf directory trick</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-libdl_002ea-398"><code>libdl.a</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-libraries_002c-changing-157">libraries, changing</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-libraries_002c-specifying-additional-124">libraries, specifying additional</a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-LIBS-123"><code>LIBS</code></a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-libucb_0040r_007b_002c-avoiding_007d-162"><code>libucb</code><span class="roman">, avoiding</span></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-license-for-using-the-library-8">license for using the library</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-LIGFONTS-633"><code>LIGFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-lines_002c-reading-arbitrary_002dlength-814">lines, reading arbitrary-length</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-Linux-File-System-Standard-231">Linux File System Standard</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-Linux-shells-and-_0040code_007bconfigure_007d-100">Linux shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-lndir-_0040r_007bfor-building-symlink-trees_007d-130"><code>lndir </code><span class="roman">for building symlink trees</span></a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-loader-options-122">loader options</a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-loader-options_002c-final-153">loader options, final</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-loader-options_002c-initial-151">loader options, initial</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-local-cache-of-fonts-259">local cache of fonts</a>: <a href="#Security">Security</a></li> -<li><a href="#index-log-file-341">log file</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-logging-successful-searches-342">logging successful searches</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-lost_002bfound-_0040r_007bdirectory_007d-445"><code>lost+found </code><span class="roman">directory</span></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-lostchar-762"><code>lostchar</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-ls_002dR-634"><code>ls-R</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-ls_002dR-_0040r_007band-AFS_007d-174"><code>ls-R </code><span class="roman">and AFS</span></a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-ls_002dR-_0040r_007bdatabase-file_007d-521"><code>ls-R </code><span class="roman">database file</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-ls_002dR_0040r_007b_002c-simplest-build_007d-523"><code>ls-R</code><span class="roman">, simplest build</span></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-Mach10-_0040code_007bconfigure_007d-error-389">Mach10 <code>configure</code> error</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-MacKenzie_002c-David-513">MacKenzie, David</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-MacKenzie_002c-David-21">MacKenzie, David</a>: <a href="#History">History</a></li> -<li><a href="#index-magic-characters-423">magic characters</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-mailing-lists-303">mailing lists</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-maintainer_002dclean-_0040r_007bMake-target_007d-179"><code>maintainer-clean </code><span class="roman">Make target</span></a>: <a href="#Cleaning-up">Cleaning up</a></li> -<li><a href="#index-Make-arguments_002c-additional-155">Make arguments, additional</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-make_0040r_007b_002c-running_007d-141"><code>make</code><span class="roman">, running</span></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-Makefile_002ein-85"><code>Makefile.in</code></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-Makefiles_002c-empty-384">Makefiles, empty</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-MAKETEX_005fDEBUG-_0040r_007b_0028512_0029_007d-336"><code>MAKETEX_DEBUG </code><span class="roman">(512)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-MAKETEX_005fFINE_005fDEBUG-_0040r_007b_00281024_0029_007d-337"><code>MAKETEX_FINE_DEBUG </code><span class="roman">(1024)</span></a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-MAKETEX_005fMODE-68"><code>MAKETEX_MODE</code></a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-memory-allocation-routines-810">memory allocation routines</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-metafont-driver-files-218">metafont driver files</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-Metafont-failures-375">Metafont failures</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-Metafont-installation-373">Metafont installation</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-Metafont-making-too_002dlarge-fonts-369">Metafont making too-large fonts</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-Metafont-using-the-wrong-device-365">Metafont using the wrong device</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-MFBASES-596"><code>MFBASES</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MFINPUTS-643"><code>MFINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MFPOOL-645"><code>MFPOOL</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MFTINPUTS-647"><code>MFTINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MISCFONTS-648"><code>MISCFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-mismatched-checksum-warnings-761">mismatched checksum warnings</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-missfont_002elog-249"><code>missfont.log</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-MISSFONT_005fLOG-252"><code>MISSFONT_LOG</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-missing-character-warnings-763">missing character warnings</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-mkocp-241"><code>mkocp</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-mkofm-242"><code>mkofm</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-g_t_0040file_007bmktex_007d-script-configuration-189"><samp><span class="file">mktex</span></samp> script configuration</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-g_t_0040file_007bmktex_007d-script-names-236"><samp><span class="file">mktex</span></samp> script names</a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-g_t_0040file_007bmktex_007d-scripts-183"><samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-mktex_002ecnf-570"><code>mktex.cnf</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-mktex_002ecnf-202"><code>mktex.cnf</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-mktex_002eopt-203"><code>mktex.opt</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-mktexdir-209"><code>mktexdir</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-mktexfmt-238"><code>mktexfmt</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-mktexmf-240"><code>mktexmf</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-mktexpk-243"><code>mktexpk</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-mktexpk-_0040r_007b_002c-initial-runs_007d-37"><code>mktexpk </code><span class="roman">, initial runs</span></a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-g_t_0040code_007bmktexpk_007d-can_0027t-guess-mode-364"><code>mktexpk</code> can't guess mode</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-mktextex-244"><code>mktextex</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-mktextfm-245"><code>mktextfm</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-MLBIBINPUTS-650"><code>MLBIBINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MLBSTINPUTS-654"><code>MLBSTINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-mode-directory_002c-omitting-220">mode directory, omitting</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-Morgan_002c-Tim-13">Morgan, Tim</a>: <a href="#History">History</a></li> -<li><a href="#index-mostlyclean-_0040r_007bMake-target_007d-177"><code>mostlyclean </code><span class="roman">Make target</span></a>: <a href="#Cleaning-up">Cleaning up</a></li> -<li><a href="#index-MPINPUTS-657"><code>MPINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MPMEMS-639"><code>MPMEMS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MPPOOL-659"><code>MPPOOL</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MPSUPPORT-641"><code>MPSUPPORT</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-MT_005fFEATURES-206"><code>MT_FEATURES</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-multiple-architectures_002c-compiling-on-126">multiple architectures, compiling on</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-multiple-architectures_002c-directories-for-131">multiple architectures, directories for</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-multiple-architectures_002c-installing-on-166">multiple architectures, installing on</a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-multiple-_0040TeX_007b_007d-hierarchies-503">multiple TeX hierarchies</a>: <a href="#Brace-expansion">Brace expansion</a></li> -<li><a href="#index-must-exist-432">must exist</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-names-for-_0040file_007bmktex_007d-scripts-237">names for <samp><span class="file">mktex</span></samp> scripts</a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-NetBSD-_0040code_007bconfigure_007d-error-387">NetBSD <code>configure</code> error</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-NetBSD-shells-and-_0040code_007bconfigure_007d-98">NetBSD shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-Neumann_002c-Gustaf-24">Neumann, Gustaf</a>: <a href="#History">History</a></li> -<li><a href="#index-newsgroup-for-_0040TeX_007b_007d-310">newsgroup for TeX</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-NeXT-_0040code_007bsed_007d-error-391">NeXT <code>sed</code> error</a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-NeXT_002c-lacking-X11-53">NeXT, lacking X11</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-NFS-and-_0040file_007bls_002dR_007d-534">NFS and <samp><span class="file">ls-R</span></samp></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-nomfdrivers-217"><code>nomfdrivers</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-nomode-219"><code>nomode</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-non_002dEnglish-typesetting-62">non-English typesetting</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-non_002dUnix-operating-systems-41">non-Unix operating systems</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-none-764"><code>none</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-null-pointers_002c-dereferencing-301">null pointers, dereferencing</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-numeric-debugging-values-325">numeric debugging values</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-obtaining-_0040TeX_007b_007d-274">obtaining TeX</a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-OCPINPUTS-661"><code>OCPINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-OFMFONTS-663"><code>OFMFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-online-Metafont-display_002c-spurious-371">online Metafont display, spurious</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-OPENTYPEFONTS-664"><code>OPENTYPEFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-OpenWin-libraries_002c-dynamic-linking-problems-401">OpenWin libraries, dynamic linking problems</a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-optimization-caveat-377">optimization caveat</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-optimization_002c-enabling-136">optimization, enabling</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-options-for-debugging-316">options for debugging</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-options-to-_0040code_007bconfigure_007d-108">options to <code>configure</code></a>: <a href="#configure-options">configure options</a></li> -<li><a href="#index-OS_002f2-support-44">OS/2 support</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-OTPINPUTS-667"><code>OTPINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-overview-of-path-searching-421">overview of path searching</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-overview-of-programming-with-Kpathsea-771">overview of programming with Kpathsea</a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-OVFFONTS-669"><code>OVFFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-OVPFONTS-671"><code>OVPFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-patches_002c-Sun-OpenWin-408">patches, Sun OpenWin</a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-path-expansion-472">path expansion</a>: <a href="#Path-expansion">Path expansion</a></li> -<li><a href="#index-path-searching-418">path searching</a>: <a href="#Path-searching">Path searching</a></li> -<li><a href="#index-path-searching-options-546">path searching options</a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-path-searching_002c-overview-420">path searching, overview</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-path-searching_002c-standalone-544">path searching, standalone</a>: <a href="#Invoking-kpsewhich">Invoking kpsewhich</a></li> -<li><a href="#index-path-sources-447">path sources</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-paths_002c-changing-default-75">paths, changing default</a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-paths_002c-changing-default-64">paths, changing default</a>: <a href="#Changing-search-paths">Changing search paths</a></li> -<li><a href="#index-paths_002c-device-name-included-in-69">paths, device name included in</a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-paths_002eh-82"><code>paths.h</code></a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-paths_002eh_0040r_007b_002c-creating_007d-143"><code>paths.h</code><span class="roman">, creating</span></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-pathsearch_002eh-774"><code>pathsearch.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-pc-_0040r_007bPascal-compiler_007d-19"><code>pc </code><span class="roman">Pascal compiler</span></a>: <a href="#History">History</a></li> -<li><a href="#index-PCL-driver-56">PCL driver</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-PDF-generation-58">PDF generation</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-pdfglyphlist_002etxt-571"><code>pdfglyphlist.txt</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-pdftex_002ecfg-572"><code>pdftex.cfg</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-PDFTEXCONFIG-672"><code>PDFTEXCONFIG</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-pdftexconfig_002etex-573"><code>pdftexconfig.tex</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-permission-denied-441">permission denied</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-permissions_002c-directory-268">permissions, directory</a>: <a href="#Security">Security</a></li> -<li><a href="#index-permissions_002c-file-266">permissions, file</a>: <a href="#Security">Security</a></li> -<li><a href="#index-PKFONTS-674"><code>PKFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-plain_002ebase-372"><code>plain.base</code></a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-pointer-combination-warnings-415">pointer combination warnings</a>: <a href="#Pointer-combination-warnings">Pointer combination warnings</a></li> -<li><a href="#index-PostScript-driver-59">PostScript driver</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-PostScript-fonts_002c-additional-34">PostScript fonts, additional</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-precompiled-executables_002c-instead-of-installation-31">precompiled executables, instead of installation</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-preprocessor-options-120">preprocessor options</a>: <a href="#configure-environment">configure environment</a></li> -<li><a href="#index-preprocessor-options_002c-additional-147">preprocessor options, additional</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-printer-configuration-files-33">printer configuration files</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-privacy_002c-semblance-of-349">privacy, semblance of</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-problems_002c-common-351">problems, common</a>: <a href="#Common-problems">Common problems</a></li> -<li><a href="#index-proginit_002ec-71"><code>proginit.c</code></a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-proginit_002eh-803"><code>proginit.h</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-program_002dvarying-paths-592">program-varying paths</a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-programming-overview-770">programming overview</a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-programming-with-config-files-817">programming with config files</a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-programming-with-Kpathsea-781">programming with Kpathsea</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-programs-using-the-library-3">programs using the library</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-proof-mode-370">proof mode</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-PSHEADERS-680"><code>PSHEADERS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-pxp-_0040r_007bPascal-preprocessor_007d-18"><code>pxp </code><span class="roman">Pascal preprocessor</span></a>: <a href="#History">History</a></li> -<li><a href="#index-quoting-variable-values-488">quoting variable values</a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-re_002dentrant-API-772">re-entrant API</a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-readable-765"><code>readable</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-reading-arbitrary_002dlength-lines-812">reading arbitrary-length lines</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-README_002eCONFIGURE-89"><code>README.CONFIGURE</code></a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-recording-successful-searches-343">recording successful searches</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-relative-filenames-438">relative filenames</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-relative-filenames-in-_0040file_007bls_002dR_007d-175">relative filenames in <samp><span class="file">ls-R</span></samp></a>: <a href="#Installing-files">Installing files</a></li> -<li><a href="#index-reporting-bugs-283">reporting bugs</a>: <a href="#Reporting-bugs">Reporting bugs</a></li> -<li><a href="#index-resident_002ec-800"><code>resident.c</code></a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-resolution_002c-setting-551">resolution, setting</a>: <a href="#Path-searching-options">Path searching options</a></li> -<li><a href="#index-resolutions_002c-last_002dresort-747">resolutions, last-resort</a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-retrieving-_0040TeX_007b_007d-275">retrieving TeX</a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-right_002dhand-side-of-variable-assignments-468">right-hand side of variable assignments</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-Rokicki_002c-Tom-14">Rokicki, Tom</a>: <a href="#History">History</a></li> -<li><a href="#index-g_t_0040t_007broot_007d-user-497"><tt>root</tt> user</a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-runtime-configuration-files-456">runtime configuration files</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-runtime-debugging-315">runtime debugging</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-Sauter-fonts_002c-and-dynamic-source-creation-187">Sauter fonts, and dynamic source creation</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-scripts-for-file-creation-184">scripts for file creation</a>: <a href="#mktex-scripts">mktex scripts</a></li> -<li><a href="#index-search-path_002c-defined-422">search path, defined</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-search-paths_002c-changing-default-63">search paths, changing default</a>: <a href="#Changing-search-paths">Changing search paths</a></li> -<li><a href="#index-searching-for-files-717">searching for files</a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-searching-for-glyphs-725">searching for glyphs</a>: <a href="#Glyph-lookup">Glyph lookup</a></li> -<li><a href="#index-searching-overview-419">searching overview</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-searching-the-database-427">searching the database</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-searching-the-disk-431">searching the disk</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-security-considerations-256">security considerations</a>: <a href="#Security">Security</a></li> -<li><a href="#index-sed-_0040r_007berror-from-_0040code_007bconfigure_007d_007d-385"><code>sed </code><span class="roman">error from </span><code>configure</code></a>: <a href="#Empty-Makefiles">Empty Makefiles</a></li> -<li><a href="#index-SELFAUTODIR-792">SELFAUTODIR</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-SELFAUTOLOC-791">SELFAUTOLOC</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-SELFAUTOPARENT-793">SELFAUTOPARENT</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-sending-patches-295">sending patches</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-setgid-scripts-264">setgid scripts</a>: <a href="#Security">Security</a></li> -<li><a href="#index-SFDFONTS-682"><code>SFDFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-sh5_0040r_007b_002c-ok-with-_0040code_007bconfigure_007d_007d-103"><code>sh5</code><span class="roman">, ok with </span><code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-shared-library_002c-making-138">shared library, making</a>: <a href="#Shared-library">Shared library</a></li> -<li><a href="#index-shell-scripts-as-configuration-files-469">shell scripts as configuration files</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-shell-variables-489">shell variables</a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-shell_005fescape_0040r_007b_002c-example-for-code_007d-821"><code>shell_escape</code><span class="roman">, example for code</span></a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-shells-and-_0040code_007bconfigure_007d-91">shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-simple-installation-29">simple installation</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-site-overrides-for-_0040code_007bmktex_0040dots_007b_007d_007d-204">site overrides for <code>mktex...</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-size-of-distribution-archives-48">size of distribution archives</a>: <a href="#Disk-space">Disk space</a></li> -<li><a href="#index-skeleton-_0040TeX_007b_007d-directory-272">skeleton TeX directory</a>: <a href="#TeX-directory-structure">TeX directory structure</a></li> -<li><a href="#index-slow-startup-time-360">slow startup time</a>: <a href="#Slow-path-searching">Slow path searching</a></li> -<li><a href="#index-Solaris-BSD-compatibility_002c-not-161">Solaris BSD compatibility, not</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-source-files-687"><code>source files</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-sources-for-search-paths-448">sources for search paths</a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-special-767"><code>special</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-st_005fnlink-514"><code>st_nlink</code></a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-ST_005fNLINK_005fTRICK-515"><code>ST_NLINK_TRICK</code></a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-stack-trace-297">stack trace</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-standalone-path-searching-545">standalone path searching</a>: <a href="#Invoking-kpsewhich">Invoking kpsewhich</a></li> -<li><a href="#index-standard-error-and-debugging-output-323">standard error and debugging output</a>: <a href="#Debugging">Debugging</a></li> -<li><a href="#index-standard-options-584">standard options</a>: <a href="#Standard-options">Standard options</a></li> -<li><a href="#index-startup-time_002c-excessive-361">startup time, excessive</a>: <a href="#Slow-path-searching">Slow path searching</a></li> -<li><a href="#index-static-linking-409">static linking</a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-static-linking-and-_0040code_007bdlsym_007d-393">static linking and <code>dlsym</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-string-routines-811">string routines</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-strip-225"><code>strip</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-stripsupplier-221"><code>stripsupplier</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-striptypeface-223"><code>striptypeface</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-subdirectory-searching-507">subdirectory searching</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-suffixes_002c-filename-720">suffixes, filename</a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-suggestions_002c-making-6">suggestions, making</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-Sun-2-17">Sun 2</a>: <a href="#History">History</a></li> -<li><a href="#index-Sun-OpenWin-patches-407">Sun OpenWin patches</a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-supplier-directory_002c-omitting-222">supplier directory, omitting</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-supported-file-formats-588">supported file formats</a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-suppressing-warnings-757">suppressing warnings</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-symbolic-link-trees_002c-for-multiple-architectures-128">symbolic link trees, for multiple architectures</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-symbolic-links-not-found-357">symbolic links not found</a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-symbolic-links_002c-and-_0040file_007bls_002dR_007d-531">symbolic links, and <samp><span class="file">ls-R</span></samp></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-symlinks_002c-resolving-794">symlinks, resolving</a>: <a href="#Calling-sequence">Calling sequence</a></li> -<li><a href="#index-system-C-compiler-bugs-379">system C compiler bugs</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-system-dependencies-88">system dependencies</a>: <a href="#Running-configure">Running configure</a></li> -<li><a href="#index-system-V-universe-160">system V universe</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-T1FONTS-701"><code>T1FONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-T1INPUTS-702"><code>T1INPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-T42FONTS-705"><code>T42FONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-tcfmgr_002emap-576"><code>tcfmgr.map</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-TDS-273">TDS</a>: <a href="#TeX-directory-structure">TeX directory structure</a></li> -<li><a href="#index-TDS-72">TDS</a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-testing_002c-post_002dinstallation-254">testing, post-installation</a>: <a href="#Installation-testing">Installation testing</a></li> -<li><a href="#index-tests_002c-simple-38">tests, simple</a>: <a href="#Simple-installation">Simple installation</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-directory-structure-270">TeX directory structure</a>: <a href="#TeX-directory-structure">TeX directory structure</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-directory-structure-73">TeX directory structure</a>: <a href="#Default-path-features">Default path features</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-environment-variables-591">TeX environment variables</a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-failures-374">TeX failures</a>: <a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-file-lookup-718">TeX file lookup</a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-glyph-lookup-726">TeX glyph lookup</a>: <a href="#Glyph-lookup">Glyph lookup</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-help-mailing-list-307">TeX help mailing list</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-hierarchy_002c-one-125">TeX hierarchy, one</a>: <a href="#configure-scenarios">configure scenarios</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-support-587">TeX support</a>: <a href="#TeX-support">TeX support</a></li> -<li><a href="#index-g_t_0040TeX_007b_007d-Users-Group-10">TeX Users Group</a>: <a href="#Introduction">Introduction</a></li> -<li><a href="#index-tex_002dfile_002ec-722"><code>tex-file.c</code></a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-tex_002dfile_002eh-775"><code>tex-file.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-tex_002dglyph_002ec-727"><code>tex-glyph.c</code></a>: <a href="#Glyph-lookup">Glyph lookup</a></li> -<li><a href="#index-tex_002dglyph_002eh-776"><code>tex-glyph.h</code></a>: <a href="#Programming-overview">Programming overview</a></li> -<li><a href="#index-tex_002dk_002drequest_0040_0040tug_002eorg-306"><code>tex-k-request@tug.org</code></a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-tex_002dk_0040_0040tug_002eorg-_0040r_007b_0028bug-address_0029_007d-285"><code>tex-k@tug.org </code><span class="roman">(bug address)</span></a>: <a href="#Reporting-bugs">Reporting bugs</a></li> -<li><a href="#index-tex_002eweb-281"><code>tex.web</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-TEX_005fHUSH-758"><code>TEX_HUSH</code></a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-TEX_005fHUSH-446"><code>TEX_HUSH</code></a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-TEXBIB-600"><code>TEXBIB</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXCONFIG-610"><code>TEXCONFIG</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXDOCS-686"><code>TEXDOCS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXFONTMAPS-637"><code>TEXFONTMAPS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXFONTS-624"><code>TEXFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-texfonts_002emap-737"><code>texfonts.map</code></a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-TEXFORMATS-615"><code>TEXFORMATS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXINDEXSTYLE-630"><code>TEXINDEXSTYLE</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXINPUTS-628"><code>TEXINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXMF-269"><code>TEXMF</code></a>: <a href="#TeX-directory-structure">TeX directory structure</a></li> -<li><a href="#index-texmf_002ecnf-574"><code>texmf.cnf</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-g_t_0040file_007btexmf_002ecnf_007d-missing_002c-warning-about-460"><samp><span class="file">texmf.cnf</span></samp> missing, warning about</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-texmf_002ecnf_0040r_007b_002c-and-variable-expansion_007d-487"><code>texmf.cnf</code><span class="roman">, and variable expansion</span></a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-texmf_002ecnf_0040r_007b_002c-creating_007d-142"><code>texmf.cnf</code><span class="roman">, creating</span></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-texmf_002ecnf_0040r_007b_002c-definition-for_007d-455"><code>texmf.cnf</code><span class="roman">, definition for</span></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-texmf_002ecnf_0040r_007b_002c-generated_007d-81"><code>texmf.cnf</code><span class="roman">, generated</span></a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-texmf_002ecnf_0040r_007b_002c-source-for-path_007d-452"><code>texmf.cnf</code><span class="roman">, source for path</span></a>: <a href="#Path-sources">Path sources</a></li> -<li><a href="#index-texmf_002ein-80"><code>texmf.in</code></a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-texmf_002ein_0040r_007b_002c-editing_007d-65"><code>texmf.in</code><span class="roman">, editing</span></a>: <a href="#Changing-search-paths">Changing search paths</a></li> -<li><a href="#index-texmf_002esed-79"><code>texmf.sed</code></a>: <a href="#Default-path-generation">Default path generation</a></li> -<li><a href="#index-TEXMFCNF-606"><code>TEXMFCNF</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXMFCNF-457"><code>TEXMFCNF</code></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-TEXMFDBS-635"><code>TEXMFDBS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXMFDBS-522"><code>TEXMFDBS</code></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-TEXMFINI-597"><code>TEXMFINI</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXMFLOG-346"><code>TEXMFLOG</code></a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-TEXMFOUTPUT-251"><code>TEXMFOUTPUT</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-TEXMFSCRIPTS-689"><code>TEXMFSCRIPTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXMFVAR-234"><code>TEXMFVAR</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-texmfvar-233"><code>texmfvar</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-TEXPICTS-627"><code>TEXPICTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXPKS-675"><code>TEXPKS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXPOOL-691"><code>TEXPOOL</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXPSHEADERS-679"><code>TEXPSHEADERS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TEXSIZES-752"><code>TEXSIZES</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-TEXSOURCES-688"><code>TEXSOURCES</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-TFMFONTS-693"><code>TFMFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-tilde-expansion-493">tilde expansion</a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-tilde_002ec-500"><code>tilde.c</code></a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-time-_0040r_007bsystem-call_007d-348"><code>time </code><span class="roman">system call</span></a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-tolerance-for-glyph-lookup-731">tolerance for glyph lookup</a>: <a href="#Basic-glyph-lookup">Basic glyph lookup</a></li> -<li><a href="#index-total-disk-space-47">total disk space</a>: <a href="#Disk-space">Disk space</a></li> -<li><a href="#index-trailing-_0040samp_007b_002f_007d-in-home-directory-498">trailing ‘<samp><span class="samp">/</span></samp>’ in home directory</a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-trailing-colons-477">trailing colons</a>: <a href="#Default-expansion">Default expansion</a></li> -<li><a href="#index-TRFONTS-695"><code>TRFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-trick-for-detecting-leaf-directories-510">trick for detecting leaf directories</a>: <a href="#Subdirectory-expansion">Subdirectory expansion</a></li> -<li><a href="#index-trojan-horse-attack-257">trojan horse attack</a>: <a href="#Security">Security</a></li> -<li><a href="#index-try_005fstd_005fextension_005ffirst-721"><code>try_std_extension_first</code></a>: <a href="#File-lookup">File lookup</a></li> -<li><a href="#index-TTFONTS-698"><code>TTFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-tug_002eorg-277"><code>tug.org</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-typeface-directory_002c-omitting-224">typeface directory, omitting</a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-ucbinclude_0040r_007b_002c-avoiding_007d-163"><code>ucbinclude</code><span class="roman">, avoiding</span></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-Ultrix-shells-and-_0040code_007bconfigure_007d-102">Ultrix shells and <code>configure</code></a>: <a href="#configure-shells">configure shells</a></li> -<li><a href="#index-unable-to-find-files-353">unable to find files</a>: <a href="#Unable-to-find-files">Unable to find files</a></li> -<li><a href="#index-unable-to-generate-fonts-362">unable to generate fonts</a>: <a href="#Unable-to-generate-fonts">Unable to generate fonts</a></li> -<li><a href="#index-uname-290"><code>uname</code></a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-universe_002c-BSD-vs_002e_0040_003a-system-V-158">universe, BSD vs. system V</a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-unixtex_002eftp-276"><code>unixtex.ftp</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-unknown-special-warnings-768">unknown special warnings</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-unreadable-file-warnings-766">unreadable file warnings</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-unreadable-files-442">unreadable files</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-unusable-_0040file_007bls_002dR_007d-warning-536">unusable <samp><span class="file">ls-R</span></samp> warning</a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-usage-patterns_002c-finding-344">usage patterns, finding</a>: <a href="#Logging">Logging</a></li> -<li><a href="#index-USE_005fTEXMFVAR-235"><code>USE_TEXMFVAR</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-USE_005fVARTEXFONTS-232"><code>USE_VARTEXFONTS</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-Usenet-_0040TeX_007b_007d-newsgroup-309">Usenet TeX newsgroup</a>: <a href="#Mailing-lists">Mailing lists</a></li> -<li><a href="#index-USERPROFILE_0040r_007b_002c-as-_007e-expansion_007d-496"><code>USERPROFILE</code><span class="roman">, as ~ expansion</span></a>: <a href="#Tilde-expansion">Tilde expansion</a></li> -<li><a href="#index-varfonts-228"><code>varfonts</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-variable-expansion-485">variable expansion</a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-variable_002ec-490"><code>variable.c</code></a>: <a href="#Variable-expansion">Variable expansion</a></li> -<li><a href="#index-variable_002eh-820"><code>variable.h</code></a>: <a href="#Programming-with-config-files">Programming with config files</a></li> -<li><a href="#index-VARTEXFONTS-230"><code>VARTEXFONTS</code></a>: <a href="#mktex-configuration">mktex configuration</a></li> -<li><a href="#index-VAX-11_002f750-16">VAX 11/750</a>: <a href="#History">History</a></li> -<li><a href="#index-version-number_002c-of-Kpathsea-50">version number, of Kpathsea</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-version-numbers_002c-determining-289">version numbers, determining</a>: <a href="#Bug-checklist">Bug checklist</a></li> -<li><a href="#index-VF-files_002c-not-found-433">VF files, not found</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-VFFONTS-707"><code>VFFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-VMS-support-45">VMS support</a>: <a href="#Custom-installation">Custom installation</a></li> -<li><a href="#index-Vojta_002c-Paul-20">Vojta, Paul</a>: <a href="#History">History</a></li> -<li><a href="#index-Walsh_002c-Norman-23">Walsh, Norman</a>: <a href="#History">History</a></li> -<li><a href="#index-warning-about-unusable-_0040file_007bls_002dR_007d-535">warning about unusable <samp><span class="file">ls-R</span></samp></a>: <a href="#ls_002dR">ls-R</a></li> -<li><a href="#index-warning_002c-about-missing-_0040file_007btexmf_002ecnf_007d-459">warning, about missing <samp><span class="file">texmf.cnf</span></samp></a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-warnings_002c-file-access-444">warnings, file access</a>: <a href="#Searching-overview">Searching overview</a></li> -<li><a href="#index-warnings_002c-pointer-combinations-414">warnings, pointer combinations</a>: <a href="#Pointer-combination-warnings">Pointer combination warnings</a></li> -<li><a href="#index-warnings_002c-suppressing-756">warnings, suppressing</a>: <a href="#Suppressing-warnings">Suppressing warnings</a></li> -<li><a href="#index-wcstombs-397"><code>wcstombs</code></a>: <a href="#dlopen">dlopen</a></li> -<li><a href="#index-WEB2C-711"><code>WEB2C</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-Weber_002c-Olaf-25">Weber, Olaf</a>: <a href="#History">History</a></li> -<li><a href="#index-WEBINPUTS-710"><code>WEBINPUTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-whitespace_002c-in-fontmap-files-742">whitespace, in fontmap files</a>: <a href="#Fontmap">Fontmap</a></li> -<li><a href="#index-whitespace_002c-not-ignored-on-continuation-lines-465">whitespace, not ignored on continuation lines</a>: <a href="#Config-files">Config files</a></li> -<li><a href="#index-www_002etug_002eorg-278"><code>www.tug.org</code></a>: <a href="#unixtex_002eftp">unixtex.ftp</a></li> -<li><a href="#index-X11-previewer-60">X11 previewer</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-X11_002c-lacking-on-NeXT-54">X11, lacking on NeXT</a>: <a href="#Kpathsea-application-distributions">Kpathsea application distributions</a></li> -<li><a href="#index-XCFLAGS-148"><code>XCFLAGS</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-XCPPFLAGS-145"><code>XCPPFLAGS</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-XDEFS-146"><code>XDEFS</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-XDvi-575"><code>XDvi</code></a>: <a href="#Specially_002drecognized-files">Specially-recognized files</a></li> -<li><a href="#index-XDVIFONTS-714"><code>XDVIFONTS</code></a>: <a href="#Supported-file-formats">Supported file formats</a></li> -<li><a href="#index-XDVIMAKEPK-247"><code>XDVIMAKEPK</code></a>: <a href="#mktex-script-names">mktex script names</a></li> -<li><a href="#index-XDVISIZES-750"><code>XDVISIZES</code></a>: <a href="#Fallback-font">Fallback font</a></li> -<li><a href="#index-XLDFLAGS-150"><code>XLDFLAGS</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-XLOADLIBES-152"><code>XLOADLIBES</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-XMAKEARGS-154"><code>XMAKEARGS</code></a>: <a href="#Running-make">Running make</a></li> -<li><a href="#index-Xmu-_0040r_007blibrary-problems_007d-406"><code>Xmu </code><span class="roman">library problems</span></a>: <a href="#ShellWidgetClass">ShellWidgetClass</a></li> -<li><a href="#index-XtStrings-392"><code>XtStrings</code></a>: <a href="#XtStrings">XtStrings</a></li> -<li><a href="#index-zuhn_002c-david-22">zuhn, david</a>: <a href="#History">History</a></li> -<li><a href="#index-g_t_0040_007b-_0040r_007bexpansion_007d-501"><code>{ </code><span class="roman">expansion</span></a>: <a href="#Brace-expansion">Brace expansion</a></li> -<li><a href="#index-g_t_007e-_0040r_007bexpansion_007d-491"><code>~ </code><span class="roman">expansion</span></a>: <a href="#Tilde-expansion">Tilde expansion</a></li> - </ul></body></html> +<p>In any case, you may find the debugging options helpful in determining +precisely when the disk or network is being pounded. See <a href="#Debugging">Debugging</a>. +</p> + +<hr> +<a name="Unable-to-generate-fonts"></a> +<div class="header"> +<p> +Next: <a href="#TeX-or-Metafont-failing" accesskey="n" rel="next">TeX or Metafont failing</a>, Previous: <a href="#Slow-path-searching" accesskey="p" rel="prev">Slow path searching</a>, Up: <a href="#Common-problems" accesskey="u" rel="up">Common problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Unable-to-generate-fonts-1"></a> +<h4 class="subsection">8.5.3 Unable to generate fonts</h4> + +<a name="index-unable-to-generate-fonts"></a> +<a name="index-font-generation-failures"></a> + +<p>Metafont outputs fonts in bitmap format, tuned for a particular +device at a particular resolution, in order to allow for the +highest-possible quality of output. Some DVI-to-whatever programs, +such as Dvips, try to generate these on the fly when they are needed, +but this generation may fail in several cases. +</p> +<a name="index-mktexpk-can_0027t-guess-mode"></a> +<p>If <code>mktexpk</code> runs, but fails with this error: +</p><div class="example"> +<pre class="example">mktexpk: Can't guess mode for <var>nnn</var> dpi devices. +mktexpk: Use a config file to specify the mode, or update me. +</pre></div> +<p>you need to ensure the resolution and mode match; just +specifying the resolution, as in <code>-D 360</code>, is not enough. +</p> +<p>You can specify the mode name with the <code>-mode</code> option on the +Dvips command line, or in a Dvips configuration file (see <a href="dvips.html#Config-files">Config +files</a> in <cite>Dvips</cite>), such as <samp>config.ps</samp> in your document +directory, <samp>~/.dvipsrc</samp> in your home directory, or in a system +directory (again named <samp>config.ps</samp>). (Other drivers use other +files, naturally.) +</p> +<p>For example, if you need 360dpi fonts, you could include this in +a configuration file: +</p><div class="example"> +<pre class="example">D 360 +M lqmed +</pre></div> + +<a name="index-Metafont-using-the-wrong-device"></a> +<a name="index-device_002c-wrong"></a> +<p>If Metafont runs, but generates fonts at the wrong resolution or for +the wrong device, most likely <code>mktexpk</code>’s built-in guess for the +mode is wrong, and you should override it as above. +</p> +<p>See <a href="http://ctan.org/pkg/modes">http://ctan.org/pkg/modes</a> for a list of resolutions and mode +names for most devices (additional submissions are welcome). +</p> +<a name="index-_002e2602gf"></a> +<a name="index-2602gf"></a> +<a name="index-Metafont-making-too_002dlarge-fonts"></a> +<a name="index-proof-mode"></a> +<a name="index-online-Metafont-display_002c-spurious"></a> +<p>If Metafont runs but generates fonts at a resolution of 2602dpi +(and prints out the name of each character as well as just a character +number, and maybe tries to display the characters), then your Metafont +base file probably hasn’t been made properly. (It’s using the default +<code>proof</code> mode, instead of an actual device mode.) To make a proper +<samp>plain.base</samp>, assuming the local mode definitions are contained in +a file <samp>modes.mf</samp>, run the following command (assuming Unix): +</p> +<div class="example"> +<pre class="example">inimf "plain; input modes; dump" +</pre></div> + +<a name="index-plain_002ebase"></a> +<p>Then copy the <samp>plain.base</samp> file from the current directory to where +the base files are stored on your system +(<samp>/usr/local/share/texmf/web2c</samp> by default), and make a link +(either hard or soft) from <samp>plain.base</samp> to <samp>mf.base</samp> in that +directory. +See <a href="web2c.html#inimf-invocation">inimf invocation</a> in <cite>Web2c</cite>. +</p> +<a name="index-Metafont-installation"></a> +<p>If <code>mf</code> is a command not found at all by <code>mktexpk</code>, then you +need to install Metafont (see <a href="#unixtex_002eftp">unixtex.ftp</a>). +</p> + +<hr> +<a name="TeX-or-Metafont-failing"></a> +<div class="header"> +<p> +Previous: <a href="#Unable-to-generate-fonts" accesskey="p" rel="prev">Unable to generate fonts</a>, Up: <a href="#Common-problems" accesskey="u" rel="up">Common problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="TeX-or-Metafont-failing-1"></a> +<h4 class="subsection">8.5.4 TeX or Metafont failing</h4> + +<a name="index-TeX-failures"></a> +<a name="index-Metafont-failures"></a> +<a name="index-compiler-bugs"></a> +<p>If TeX or Metafont get a segmentation fault or otherwise fail while +running a normal input file, the problem is usually a compiler bug +(unlikely as that may sound). Even if the trip and trap tests are +passed, problems may lurk. Optimization occasionally causes trouble in +programs other than TeX and Metafont themselves, too. +</p> +<p>Insufficient swap space may also cause core dumps or other erratic +behavior. +</p> +<a name="index-optimization-caveat"></a> +<p>For a workaround, if you enabled any optimization flags, it’s best to +omit optimization entirely. In any case, the way to find the facts is +to run the program under the debugger and see where it’s failing. +</p> +<a name="index-GNU-C-compiler-bugs"></a> +<a name="index-system-C-compiler-bugs"></a> +<p>Also, if you have trouble with a system C compiler, I advise trying the +GNU C compiler. And vice versa, unfortunately; but in that case I also +recommend reporting a bug to the GCC mailing list; see <a href="http://gcc.gnu.org/onlinedocs/gcc/Bugs.html#Bugs">Bugs</a> in <cite>Using and Porting GNU CC</cite>. +</p> +<a name="index-compiler-bugs_002c-finding"></a> +<p>To report compiler bugs effectively requires perseverance and +perspicacity: you must find the miscompiled line, and that usually +involves delving backwards in time from the point of error, checking +through TeX’s (or whatever program’s) data structures. Things are +not helped by all-too-common bugs in the debugger itself. Good luck. +</p> + +<hr> +<a name="Index"></a> +<div class="header"> +<p> +Previous: <a href="#Reporting-bugs" accesskey="p" rel="prev">Reporting bugs</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p> +</div> +<a name="Index-1"></a> +<h2 class="unnumbered">Index</h2> +<table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>!</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-2"><b>$</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-3"><b>-</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-4"><b>.</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-5"><b>/</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-6"><b>2</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-7"><b>8</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-8"><b>:</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-9"><b>\</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-10"><b>{</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-11"><b>~</b></a> + +<br> +<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a> + +<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a> + +<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a> + +<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a> + +<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a> + +<a class="summary-letter" href="#Index_cp_letter-F"><b>F</b></a> + +<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a> + +<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a> + +<a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a> + +<a class="summary-letter" href="#Index_cp_letter-K"><b>K</b></a> + +<a class="summary-letter" href="#Index_cp_letter-L"><b>L</b></a> + +<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a> + +<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a> + +<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a> + +<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a> + +<a class="summary-letter" href="#Index_cp_letter-Q"><b>Q</b></a> + +<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a> + +<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a> + +<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a> + +<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a> + +<a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a> + +<a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a> + +<a class="summary-letter" href="#Index_cp_letter-X"><b>X</b></a> + +<a class="summary-letter" href="#Index_cp_letter-Z"><b>Z</b></a> + +</td></tr></table> +<table class="index-cp" border="0"> +<tr><td></td><th align="left">Index Entry</th><td> </td><th align="left"> Section</th></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-1">!</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_0021_0021-in-path-specifications"><code>!! <span class="roman">in path specifications</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-2">$</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_0024-expansion"><code>$ <span class="roman">expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-3">-</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dall"><code>--all</code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dcolor_003dtty"><code>--color=tty</code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002ddebug_003dnum"><code>--debug=<var>num</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002ddpi_003dnum"><code>--dpi=<var>num</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dengine_003dname"><code>--engine=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dexpand_002dbraces_003dstring"><code>--expand-braces=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dexpand_002dpath_003dstring"><code>--expand-path=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dexpand_002dvar_003dstring"><code>--expand-var=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dformat_003dname"><code>--format=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dhelp"><code>--help</code></a>:</td><td> </td><td valign="top"><a href="#Standard-options">Standard options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dinteractive"><code>--interactive</code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dmktex_003dfiletype"><code>--mktex=<var>filetype</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dmode_003dstring"><code>--mode=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dmust_002dexist"><code>--must-exist</code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dno_002dmktex_003dfiletype"><code>--no-mktex=<var>filetype</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dpath_003dstring"><code>--path=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dprogname_003dname"><code>--progname=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dsafe_002din_002dname_003dname"><code>--safe-in-name=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dsafe_002dout_002dname_003dname"><code>--safe-out-name=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dshow_002dpath_003dname"><code>--show-path=<var>name</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dsubdir_003dstring"><code>--subdir=<var>string</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dvar_002dvalue_003dvariable"><code>--var-value=<var>variable</var></code></a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dversion"><code>--version</code></a>:</td><td> </td><td valign="top"><a href="#Standard-options">Standard options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwith_002dmktextex_002ddefault"><code>--with-mktextex-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktexfmt_002ddefault"><code>--without-mktexfmt-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktexmf_002ddefault"><code>--without-mktexmf-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktexocp_002ddefault"><code>--without-mktexocp-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktexofm_002ddefault"><code>--without-mktexofm-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktexpk_002ddefault"><code>--without-mktexpk-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d_002dwithout_002dmktextfm_002ddefault"><code>--without-mktextfm-default</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002d1-debugging-value"><code>-1 <span class="roman">debugging value</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002dA-option-to-ls"><code>-A <span class="roman">option to <code>ls</code></span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002dD-num"><code>-D <var>num</var></code></a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002dL-option-to-ls"><code>-L <span class="roman">option to <code>ls</code></span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-4">.</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002e-directories_002c-ignored"><code>. <span class="roman">directories, ignored</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002e-files"><code>. <span class="roman">files</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002e2602gf"><code>.2602gf</code></a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eafm"><code>.afm</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ebase"><code>.base</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ebib"><code>.bib</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ebst"><code>.bst</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ecid"><code>.cid</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ecmap"><code>.cmap</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ecnf"><code>.cnf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eenc"><code>.enc</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eeps"><code>.eps</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eepsi"><code>.epsi</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002efea"><code>.fea</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002efmt"><code>.fmt</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eist"><code>.ist</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002elig"><code>.lig</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emap"><code>.map</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emem"><code>.mem</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emf"><code>.mf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emft"><code>.mft</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emlbib"><code>.mlbib</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emlbst"><code>.mlbst</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002emp"><code>.mp</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eocp"><code>.ocp</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eofm"><code>.ofm</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eopl"><code>.opl</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eotp"><code>.otp</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eovf"><code>.ovf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eovp"><code>.ovp</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epfa"><code>.pfa</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epfb"><code>.pfb</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epk"><code>.pk</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epool"><code>.pool</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epool-1"><code>.pool</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epool-2"><code>.pool</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002epro"><code>.pro</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002erhosts_002c-writable-by-TeX"><code>.rhosts<span class="roman">, writable by TeX</span></code></a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002esfd"><code>.sfd</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002etex"><code>.tex</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002etex-file_002c-included-in-ls_002dR"><code>.tex <span class="roman">file, included in <samp>ls-R</samp></span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002etfm"><code>.tfm</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ettc"><code>.ttc</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ettf"><code>.ttf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002evf"><code>.vf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002ew"><code>.w</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eweb"><code>.web</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002eweb-1"><code>.web</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-5">/</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002f-may-not-be-_002f"><code>/ <span class="roman">may not be /</span></code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002f_002c-trailing-in-home-directory"><code>/<span class="roman">, trailing in home directory</span></code></a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002f_002f"><code>//</code></a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002fetc_002fprofile"><code>/etc/profile</code></a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002fetc_002fprofile-and-aliases"><code>/etc/profile <span class="roman">and aliases</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_002fvar_002ftmp_002ftexfonts"><code>/var/tmp/texfonts</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-6">2</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-2602gf"><code>2602gf</code></a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-7">8</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-8_002e3-filenames_002c-using">8.3 filenames, using</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-8">:</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_003a-may-not-be-_003a"><code>: <span class="roman">may not be :</span></code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_003a_003a-expansion"><code>:: <span class="roman">expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-9">\</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_005c_002c-line-continuation-in-texmf_002ecnf"><code>\<span class="roman">, line continuation in <samp>texmf.cnf</samp></span></code></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_005copenin"><code>\openin</code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-_005cspecial_002c-suppressing-warnings-about"><code>\special<span class="roman">, suppressing warnings about</span></code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-10">{</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_007b-expansion"><code>{ <span class="roman">expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Brace-expansion">Brace expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_symbol-11">~</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-_007e-expansion"><code>~ <span class="roman">expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-A">A</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-absolute-filenames">absolute filenames</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-access-warnings">access warnings</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-AFMFONTS"><code>AFMFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-aliases-for-fonts">aliases for fonts</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-aliases_002c-for-filenames">aliases, for filenames</a>:</td><td> </td><td valign="top"><a href="#Filename-aliases">Filename aliases</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-all"><code>all</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-all-matches_002c-finding">all matches, finding</a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-alphabetical-order_002c-not">alphabetical order, not</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-announcement-mailing-list">announcement mailing list</a>:</td><td> </td><td valign="top"><a href="#Mailing-lists">Mailing lists</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-API_002c-re_002dentrant">API, re-entrant</a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-append_002donly-directories-and-mktexpk">append-only directories and <code>mktexpk</code></a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-appendonlydir"><code>appendonlydir</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-arguments-to-mktex">arguments to <samp>mktex</samp></a>:</td><td> </td><td valign="top"><a href="#mktex-script-arguments">mktex script arguments</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-argv_005b0_005d"><code>argv[0]</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-autoconf_002c-recommended"><code>autoconf<span class="roman">, recommended</span></code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-automounter_002c-and-ls_002dR">automounter, and <samp>ls-R</samp></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-auxiliary-tasks">auxiliary tasks</a>:</td><td> </td><td valign="top"><a href="#Auxiliary-tasks">Auxiliary tasks</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-B">B</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-Bach_002c-Johann-Sebastian">Bach, Johann Sebastian</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-backslash_002dnewline">backslash-newline</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-basic-glyph-lookup">basic glyph lookup</a>:</td><td> </td><td valign="top"><a href="#Basic-glyph-lookup">Basic glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Berry_002c-Karl">Berry, Karl</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-BIBINPUTS"><code>BIBINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-BIBINPUTS-1"><code>BIBINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-blank-lines_002c-in-texmf_002ecnf">blank lines, in <samp>texmf.cnf</samp></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-brace-expansion">brace expansion</a>:</td><td> </td><td valign="top"><a href="#Brace-expansion">Brace expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Breitenlohner_002c-Peter">Breitenlohner, Peter</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-BSTINPUTS"><code>BSTINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-BSTINPUTS-1"><code>BSTINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-bug-address">bug address</a>:</td><td> </td><td valign="top"><a href="#Reporting-bugs">Reporting bugs</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-bug-checklist">bug checklist</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-bug-mailing-list">bug mailing list</a>:</td><td> </td><td valign="top"><a href="#Mailing-lists">Mailing lists</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-bugs_002c-reporting">bugs, reporting</a>:</td><td> </td><td valign="top"><a href="#Reporting-bugs">Reporting bugs</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-C">C</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-c_002d_002a_002eh"><code>c-*.h</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-c_002dauto_002eh"><code>c-auto.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-cache-of-fonts_002c-local">cache of fonts, local</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-calling-sequence">calling sequence</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ChangeLog-entry"><code>ChangeLog <span class="roman">entry</span></code></a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-checklist-for-bug-reports">checklist for bug reports</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-checksum"><code>checksum</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-circle-fonts">circle fonts</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-client_005fpath-in-kpse_002d_003eformat_005finfo"><code>client_path <span class="roman">in <code>kpse->format_info</code></span></code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-CMAPFONTS"><code>CMAPFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-cmr10_002c-as-fallback-font"><code>cmr10<span class="roman">, as fallback font</span></code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-cmr10_002evf"><code>cmr10.vf</code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-cnf_002ec"><code>cnf.c</code></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-cnf_002eh"><code>cnf.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-comments_002c-in-fontmap-files">comments, in fontmap files</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-comments_002c-in-texmf_002ecnf">comments, in <samp>texmf.cnf</samp></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-comments_002c-making">comments, making</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-common-features-in-glyph-lookup">common features in glyph lookup</a>:</td><td> </td><td valign="top"><a href="#Basic-glyph-lookup">Basic glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-common-problems">common problems</a>:</td><td> </td><td valign="top"><a href="#Common-problems">Common problems</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-compilation-value_002c-source-for-path">compilation value, source for path</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-compiler-bugs">compiler bugs</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-compiler-bugs_002c-finding">compiler bugs, finding</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-conditions-for-use">conditions for use</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config-files">config files</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config-files_002c-for-Kpathsea_002dusing-programs">config files, for Kpathsea-using programs</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config-files_002c-programming-with">config files, programming with</a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config_002eh"><code>config.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config_002elog"><code>config.log</code></a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config_002eps"><code>config.ps</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config_002eps_002c-search-path-for"><code>config.ps<span class="roman">, search path for</span></code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-config_002estatus"><code>config.status</code></a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-configuration-bugs">configuration bugs</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-configuration-file_002c-source-for-path">configuration file, source for path</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-configuration-files-as-shell-scripts_002e">configuration files as shell scripts.</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-configuration-of-mktex-scripts">configuration of <samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-configure-options-for-mktex-scripts"><code>configure</code> options for <samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-context-diff">context diff</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-continuation-character">continuation character</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-core-dumps_002c-reporting">core dumps, reporting</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-crashes_002c-reporting">crashes, reporting</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-CWEBINPUTS"><code>CWEBINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-D">D</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-database-search">database search</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-database_002c-for-filenames">database, for filenames</a>:</td><td> </td><td valign="top"><a href="#Filename-database">Filename database</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-database_002c-format-of">database, format of</a>:</td><td> </td><td valign="top"><a href="#Database-format">Database format</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-debug_002eh"><code>debug.h</code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-debugger">debugger</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-debugging">debugging</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-debugging-options_002c-in-Kpathsea_002dusing-program">debugging options, in Kpathsea-using program</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-debugging-output">debugging output</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-default-expansion">default expansion</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-default_005ftexsizes"><code>default_texsizes</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-device_002c-wrong">device, wrong</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-directories_002c-making-append_002donly">directories, making append-only</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-directory-permissions">directory permissions</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-directory-structure_002c-for-TeX-files">directory structure, for TeX files</a>:</td><td> </td><td valign="top"><a href="#TeX-directory-structure">TeX directory structure</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-disabling-mktex-scripts">disabling <samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-disk-search">disk search</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-disk-searching_002c-avoiding">disk searching, avoiding</a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-disk-usage_002c-reducing">disk usage, reducing</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-doc-files"><code>doc files</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DOS-compatible-names">DOS compatible names</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-dosnames"><code>dosnames</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-dot-files">dot files</a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-doubled-colons">doubled colons</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-dpinnn-directories"><code>dpi<var>nnn</var> directories</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVILJMAKEPK"><code>DVILJMAKEPK</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVILJSIZES"><code>DVILJSIZES</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-dvipdfmx_002ecfg"><code>dvipdfmx.cfg</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVIPSFONTS"><code>DVIPSFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVIPSHEADERS"><code>DVIPSHEADERS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVIPSMAKEPK"><code>DVIPSMAKEPK</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-DVIPSSIZES"><code>DVIPSSIZES</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-dynamic-creation-of-files">dynamic creation of files</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-E">E</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-EC-fonts_002c-and-dynamic-source-creation">EC fonts, and dynamic source creation</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-elt_002ddirs_002ec"><code>elt-dirs.c</code></a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-elt_002ddirs_002ec-1"><code>elt-dirs.c</code></a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-enabling-mktex-scripts">enabling <samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ENCFONTS"><code>ENCFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-engine-name">engine name</a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-environment-variable_002c-source-for-path">environment variable, source for path</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-environment-variables-for-TeX">environment variables for TeX</a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-environment-variables-in-paths">environment variables in paths</a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-environment-variables_002c-old">environment variables, old</a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-epoch_002c-seconds-since">epoch, seconds since</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-error-message-macros">error message macros</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-excessive-startup-time">excessive startup time</a>:</td><td> </td><td valign="top"><a href="#Slow-path-searching">Slow path searching</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expand_002ec"><code>expand.c</code></a>:</td><td> </td><td valign="top"><a href="#Brace-expansion">Brace expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expanding-symlinks">expanding symlinks</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-default">expansion, default</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-path-element">expansion, path element</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-search-path">expansion, search path</a>:</td><td> </td><td valign="top"><a href="#Path-expansion">Path expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-subdirectory">expansion, subdirectory</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-tilde">expansion, tilde</a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-expansion_002c-variable">expansion, variable</a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-explicitly-relative-filenames">explicitly relative filenames</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-extensions_002c-filename">extensions, filename</a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-externally_002dbuilt-filename-database">externally-built filename database</a>:</td><td> </td><td valign="top"><a href="#Filename-database">Filename database</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-extra-colons">extra colons</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-F">F</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-failed-mktex_2026-script-invocation">failed <code>mktex…</code> script invocation</a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fallback-font">fallback font</a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fallback-resolutions">fallback resolutions</a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-FAQ_002c-Kpathsea">FAQ, Kpathsea</a>:</td><td> </td><td valign="top"><a href="#Common-problems">Common problems</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Farwell_002c-Matthew">Farwell, Matthew</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-file-formats_002c-supported">file formats, supported</a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-file-lookup">file lookup</a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-file-permissions">file permissions</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-file-types_002c-registering-new">file types, registering new</a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-filename-aliases">filename aliases</a>:</td><td> </td><td valign="top"><a href="#Filename-aliases">Filename aliases</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-filename-database">filename database</a>:</td><td> </td><td valign="top"><a href="#Filename-database">Filename database</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-filenames_002c-absolute-or-explicitly-relative">filenames, absolute or explicitly relative</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-files_002c-unable-to-find">files, unable to find</a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-filesystem-search">filesystem search</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-floating-directories">floating directories</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fmtutil"><code>fmtutil</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fmtutil_002ecnf"><code>fmtutil.cnf</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fmtutils_002ecnf"><code>fmtutils.cnf</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-font-alias-files">font alias files</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-font-generation-failures">font generation failures</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-font-of-last-resort">font of last resort</a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-font-set_002c-infinite">font set, infinite</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-FONTCIDMAPS"><code>FONTCIDMAPS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-FONTFEATURES"><code>FONTFEATURES</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fontmap-files">fontmap files</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fontmaps-1"><code>fontmaps</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fontmaps">fontmaps</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fontname">fontname</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fontnames_002c-arbitrary-length">fontnames, arbitrary length</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-FOOINPUTS"><code>FOOINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-FOOINPUTS-1"><code>FOOINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fopen_002c-redefined"><code>fopen<span class="roman">, redefined</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-format-of-external-database">format of external database</a>:</td><td> </td><td valign="top"><a href="#Database-format">Database format</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ftp_002ecs_002estanford_002eedu"><code>ftp.cs.stanford.edu</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ftp_002etug_002eorg"><code>ftp.tug.org</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-fundamental-purpose-of-Kpathsea">fundamental purpose of Kpathsea</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-G">G</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-gdb_002c-recommended"><code>gdb<span class="roman">, recommended</span></code></a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-gf"><code>gf</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GFFONTS"><code>GFFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-globally-writable-directories">globally writable directories</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-glyph-lookup">glyph lookup</a>:</td><td> </td><td valign="top"><a href="#Glyph-lookup">Glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-glyph-lookup-bitmap-tolerance">glyph lookup bitmap tolerance</a>:</td><td> </td><td valign="top"><a href="#Basic-glyph-lookup">Basic glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GLYPHFONTS"><code>GLYPHFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GLYPHFONTS-1"><code>GLYPHFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-glyphlist_002etxt"><code>glyphlist.txt</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GNU-C-compiler-bugs">GNU C compiler bugs</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GNU-General-Public-License">GNU General Public License</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-group_002dwritable-directories">group-writable directories</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-GSFTOPK_005fDEBUG-_0028128_0029"><code>GSFTOPK_DEBUG <span class="roman">(128)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-H">H</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-hash-table-buckets_002c-printing">hash table buckets, printing</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-hash-table-routines">hash table routines</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-hash_005fsummary_005fonly-variable-for-debugging"><code>hash_summary_only <span class="roman">variable for debugging</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-history-of-Kpathsea">history of Kpathsea</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Hoekwater_002c-Taco">Hoekwater, Taco</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-home-directories-in-paths">home directories in paths</a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-HOME_002c-as-_007e-expansion"><code>HOME<span class="roman">, as ~ expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-I">I</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-identifiers_002c-characters-valid-in">identifiers, characters valid in</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-include-fontmap-directive"><code>include <span class="roman">fontmap directive</span></code></a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-INDEXSTYLE"><code>INDEXSTYLE</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-input-lines_002c-reading">input lines, reading</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-interactive-query">interactive query</a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-interface_002c-not-frozen">interface, not frozen</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-introduction">introduction</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-K">K</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-kdebug_003a">‘<samp>kdebug:</samp>’</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kdefault_002ec"><code>kdefault.c</code></a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Knuth_002c-Donald-E_002e">Knuth, Donald E.</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Knuth_002c-Donald-E_002e_002c-archive-of-programs-by">Knuth, Donald E., archive of programs by</a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Kpathsea-config-file_002c-source-for-path">Kpathsea config file, source for path</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_002eh"><code>kpathsea.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fcnf_005fget"><code>kpathsea_cnf_get</code></a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPATHSEA_005fDEBUG"><code>KPATHSEA_DEBUG</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPATHSEA_005fDEBUG-1"><code>KPATHSEA_DEBUG</code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005ffind_005ffile"><code>kpathsea_find_file</code></a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005ffind_005ffile-1"><code>kpathsea_find_file</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005ffind_005fglyph"><code>kpathsea_find_glyph</code></a>:</td><td> </td><td valign="top"><a href="#Glyph-lookup">Glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005ffinish"><code>kpathsea_finish</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005finit_005fprog"><code>kpathsea_init_prog</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005finit_005fprog-1"><code>kpathsea_init_prog</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fin_005fname_005fok"><code>kpathsea_in_name_ok</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fnew"><code>kpathsea_new</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fopen_005ffile"><code>kpathsea_open_file</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fout_005fname_005fok"><code>kpathsea_out_name_ok</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fset_005fprogram_005fname"><code>kpathsea_set_program_name</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpathsea_005fvar_005fvalue"><code>kpathsea_var_value</code></a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPATHSEA_005fWARNING"><code>KPATHSEA_WARNING</code></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003edebug"><code>kpse->debug</code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003edebug-1"><code>kpse->debug</code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003edebug-variable"><code>kpse->debug <span class="roman">variable</span></code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003eformat_005finfo"><code>kpse->format_info</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003einvocation_005fname"><code>kpse->invocation_name</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003einvocation_005fshort_005fname"><code>kpse->invocation_short_name</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_002d_003eprogram_005fname"><code>kpse->program_name</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpsewhich"><code>kpsewhich</code></a>:</td><td> </td><td valign="top"><a href="#Invoking-kpsewhich">Invoking kpsewhich</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Kpsewhich_002c-and-debugging">Kpsewhich, and debugging</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fBITMAP_005fTOLERANCE"><code>KPSE_BITMAP_TOLERANCE</code></a>:</td><td> </td><td valign="top"><a href="#Basic-glyph-lookup">Basic glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fEXPAND-_002816_0029"><code>KPSE_DEBUG_EXPAND <span class="roman">(16)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fFOPEN-_00284_0029"><code>KPSE_DEBUG_FOPEN <span class="roman">(4)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fHASH-_00282_0029"><code>KPSE_DEBUG_HASH <span class="roman">(2)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fPATHS-_00288_0029"><code>KPSE_DEBUG_PATHS <span class="roman">(8)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fSEARCH-_002832_0029"><code>KPSE_DEBUG_SEARCH <span class="roman">(32)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fSTAT-_00281_0029"><code>KPSE_DEBUG_STAT <span class="roman">(1)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDEBUG_005fVARS-_002864_0029"><code>KPSE_DEBUG_VARS <span class="roman">(64)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-KPSE_005fDOT-expansion"><code>KPSE_DOT <span class="roman">expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#KPSE_005fDOT-expansion">KPSE_DOT expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-kpse_005fformat_005finfo_005ftype"><code>kpse_format_info_type</code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-L">L</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-last_002dresort-font">last-resort font</a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-lcircle10"><code>lcircle10</code></a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-leading-colons">leading colons</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-leaf-directories-wrongly-guessed">leaf directories wrongly guessed</a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-leaf-directory-trick">leaf directory trick</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-license-for-using-the-library">license for using the library</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-LIGFONTS"><code>LIGFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-lines_002c-reading-arbitrary_002dlength">lines, reading arbitrary-length</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Linux-File-System-Standard">Linux File System Standard</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-local-cache-of-fonts">local cache of fonts</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-log-file">log file</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-logging-successful-searches">logging successful searches</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-lost_002bfound-directory"><code>lost+found <span class="roman">directory</span></code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-lostchar"><code>lostchar</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ls_002dR"><code>ls-R</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ls_002dR-database-file"><code>ls-R <span class="roman">database file</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ls_002dR_002c-simplest-build"><code>ls-R<span class="roman">, simplest build</span></code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-M">M</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-MacKenzie_002c-David">MacKenzie, David</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MacKenzie_002c-David-1">MacKenzie, David</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-magic-characters">magic characters</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mailing-lists">mailing lists</a>:</td><td> </td><td valign="top"><a href="#Mailing-lists">Mailing lists</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MAKETEX_005fDEBUG-_0028512_0029"><code>MAKETEX_DEBUG <span class="roman">(512)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MAKETEX_005fFINE_005fDEBUG-_00281024_0029"><code>MAKETEX_FINE_DEBUG <span class="roman">(1024)</span></code></a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-memory-allocation-routines">memory allocation routines</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-metafont-driver-files">metafont driver files</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Metafont-failures">Metafont failures</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Metafont-installation">Metafont installation</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Metafont-making-too_002dlarge-fonts">Metafont making too-large fonts</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Metafont-using-the-wrong-device">Metafont using the wrong device</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MFBASES"><code>MFBASES</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MFINPUTS"><code>MFINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MFPOOL"><code>MFPOOL</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MFTINPUTS"><code>MFTINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MISCFONTS"><code>MISCFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mismatched-checksum-warnings">mismatched checksum warnings</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-missfont_002elog"><code>missfont.log</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MISSFONT_005fLOG"><code>MISSFONT_LOG</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-missing-character-warnings">missing character warnings</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mkocp"><code>mkocp</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mkofm"><code>mkofm</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex-script-configuration"><samp>mktex</samp> script configuration</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex-script-names"><samp>mktex</samp> script names</a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex-scripts"><samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex_002ecnf"><code>mktex.cnf</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex_002ecnf-1"><code>mktex.cnf</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex_002eopt"><code>mktex.opt</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktex_002eopt-1"><code>mktex.opt</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktexdir"><code>mktexdir</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktexfmt"><code>mktexfmt</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktexmf"><code>mktexmf</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktexpk"><code>mktexpk</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktexpk-can_0027t-guess-mode"><code>mktexpk</code> can’t guess mode</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktextex"><code>mktextex</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mktextfm"><code>mktextfm</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MLBIBINPUTS"><code>MLBIBINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MLBSTINPUTS"><code>MLBSTINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-mode-directory_002c-omitting">mode directory, omitting</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Morgan_002c-Tim">Morgan, Tim</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MPINPUTS"><code>MPINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MPMEMS"><code>MPMEMS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MPPOOL"><code>MPPOOL</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MPSUPPORT"><code>MPSUPPORT</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-MT_005fFEATURES"><code>MT_FEATURES</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-multiple-TeX-hierarchies">multiple TeX hierarchies</a>:</td><td> </td><td valign="top"><a href="#Brace-expansion">Brace expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-must-exist">must exist</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-N">N</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-names-for-mktex-scripts">names for <samp>mktex</samp> scripts</a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Neumann_002c-Gustaf">Neumann, Gustaf</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-NFS-and-ls_002dR">NFS and <samp>ls-R</samp></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-nomfdrivers"><code>nomfdrivers</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-nomode"><code>nomode</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-none"><code>none</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-null-pointers_002c-dereferencing">null pointers, dereferencing</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-numeric-debugging-values">numeric debugging values</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-O">O</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-obtaining-TeX">obtaining TeX</a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OCPINPUTS"><code>OCPINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OFMFONTS"><code>OFMFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-online-Metafont-display_002c-spurious">online Metafont display, spurious</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OPENTYPEFONTS"><code>OPENTYPEFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-optimization-caveat">optimization caveat</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-options-for-debugging">options for debugging</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OTPINPUTS"><code>OTPINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-overview-of-path-searching">overview of path searching</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-overview-of-programming-with-Kpathsea">overview of programming with Kpathsea</a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OVFFONTS"><code>OVFFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-OVPFONTS"><code>OVPFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-P">P</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-expansion">path expansion</a>:</td><td> </td><td valign="top"><a href="#Path-expansion">Path expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-searching">path searching</a>:</td><td> </td><td valign="top"><a href="#Path-searching">Path searching</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-searching-options">path searching options</a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-searching_002c-overview">path searching, overview</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-searching_002c-standalone">path searching, standalone</a>:</td><td> </td><td valign="top"><a href="#Invoking-kpsewhich">Invoking kpsewhich</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-path-sources">path sources</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pathsearch_002eh"><code>pathsearch.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pc-Pascal-compiler"><code>pc <span class="roman">Pascal compiler</span></code></a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pdfglyphlist_002etxt"><code>pdfglyphlist.txt</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pdftex_002ecfg"><code>pdftex.cfg</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-PDFTEXCONFIG"><code>PDFTEXCONFIG</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pdftexconfig_002etex"><code>pdftexconfig.tex</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-permission-denied">permission denied</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-permissions_002c-directory">permissions, directory</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-permissions_002c-file">permissions, file</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-PKFONTS"><code>PKFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-plain_002ebase"><code>plain.base</code></a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-privacy_002c-semblance-of">privacy, semblance of</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-problems_002c-common">problems, common</a>:</td><td> </td><td valign="top"><a href="#Common-problems">Common problems</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-proginit_002eh"><code>proginit.h</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-program_002dvarying-paths">program-varying paths</a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-programming-overview">programming overview</a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-programming-with-config-files">programming with config files</a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-programming-with-Kpathsea">programming with Kpathsea</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-programs-using-the-library">programs using the library</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-proof-mode">proof mode</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-PSHEADERS"><code>PSHEADERS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-pxp-Pascal-preprocessor"><code>pxp <span class="roman">Pascal preprocessor</span></code></a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-Q">Q</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-quoting-variable-values">quoting variable values</a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-R">R</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-re_002dentrant-API">re-entrant API</a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-readable"><code>readable</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-reading-arbitrary_002dlength-lines">reading arbitrary-length lines</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-recording-successful-searches">recording successful searches</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-relative-filenames">relative filenames</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-reporting-bugs">reporting bugs</a>:</td><td> </td><td valign="top"><a href="#Reporting-bugs">Reporting bugs</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-resident_002ec"><code>resident.c</code></a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-resolution_002c-setting">resolution, setting</a>:</td><td> </td><td valign="top"><a href="#Path-searching-options">Path searching options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-resolutions_002c-last_002dresort">resolutions, last-resort</a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-retrieving-TeX">retrieving TeX</a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-right_002dhand-side-of-variable-assignments">right-hand side of variable assignments</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Rokicki_002c-Tom">Rokicki, Tom</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-root-user"><tt>root</tt> user</a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-runtime-configuration-files">runtime configuration files</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-runtime-debugging">runtime debugging</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-S">S</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-Sauter-fonts_002c-and-dynamic-source-creation">Sauter fonts, and dynamic source creation</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-scripts-for-file-creation">scripts for file creation</a>:</td><td> </td><td valign="top"><a href="#mktex-scripts">mktex scripts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-search-path_002c-defined">search path, defined</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-searching-for-files">searching for files</a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-searching-for-glyphs">searching for glyphs</a>:</td><td> </td><td valign="top"><a href="#Glyph-lookup">Glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-searching-overview">searching overview</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-searching-the-database">searching the database</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-searching-the-disk">searching the disk</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-security-considerations">security considerations</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-SELFAUTODIR">SELFAUTODIR</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-SELFAUTOLOC">SELFAUTOLOC</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-SELFAUTOPARENT">SELFAUTOPARENT</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-sending-patches">sending patches</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-setgid-scripts">setgid scripts</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-SFDFONTS"><code>SFDFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-shell-scripts-as-configuration-files">shell scripts as configuration files</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-shell-variables">shell variables</a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-shell_005fescape_002c-example-for-code"><code>shell_escape<span class="roman">, example for code</span></code></a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-site-overrides-for-mktex_2026">site overrides for <code>mktex…</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-skeleton-TeX-directory">skeleton TeX directory</a>:</td><td> </td><td valign="top"><a href="#TeX-directory-structure">TeX directory structure</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-slow-startup-time">slow startup time</a>:</td><td> </td><td valign="top"><a href="#Slow-path-searching">Slow path searching</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-source-files"><code>source files</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-sources-for-search-paths">sources for search paths</a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-special"><code>special</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-stack-trace">stack trace</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-standalone-path-searching">standalone path searching</a>:</td><td> </td><td valign="top"><a href="#Invoking-kpsewhich">Invoking kpsewhich</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-standard-error-and-debugging-output">standard error and debugging output</a>:</td><td> </td><td valign="top"><a href="#Debugging">Debugging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-standard-options">standard options</a>:</td><td> </td><td valign="top"><a href="#Standard-options">Standard options</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-startup-time_002c-excessive">startup time, excessive</a>:</td><td> </td><td valign="top"><a href="#Slow-path-searching">Slow path searching</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-string-routines">string routines</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-strip"><code>strip</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-stripsupplier"><code>stripsupplier</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-striptypeface"><code>striptypeface</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-st_005fnlink"><code>st_nlink</code></a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-ST_005fNLINK_005fTRICK"><code>ST_NLINK_TRICK</code></a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-subdirectory-searching">subdirectory searching</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-suffixes_002c-filename">suffixes, filename</a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-suggestions_002c-making">suggestions, making</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Sun-2">Sun 2</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-supplier-directory_002c-omitting">supplier directory, omitting</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-supplier-directory_002c-omitting-1">supplier directory, omitting</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-supported-file-formats">supported file formats</a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-suppressing-warnings">suppressing warnings</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-symbolic-links-not-found">symbolic links not found</a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-symbolic-links_002c-and-ls_002dR">symbolic links, and <samp>ls-R</samp></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-symlinks_002c-resolving">symlinks, resolving</a>:</td><td> </td><td valign="top"><a href="#Calling-sequence">Calling sequence</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-system-C-compiler-bugs">system C compiler bugs</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-T">T</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-T1FONTS"><code>T1FONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-T1INPUTS"><code>T1INPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-T42FONTS"><code>T42FONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tcfmgr_002emap"><code>tcfmgr.map</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TDS">TDS</a>:</td><td> </td><td valign="top"><a href="#TeX-directory-structure">TeX directory structure</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-directory-structure">TeX directory structure</a>:</td><td> </td><td valign="top"><a href="#TeX-directory-structure">TeX directory structure</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-environment-variables">TeX environment variables</a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-failures">TeX failures</a>:</td><td> </td><td valign="top"><a href="#TeX-or-Metafont-failing">TeX or Metafont failing</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-file-lookup">TeX file lookup</a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-glyph-lookup">TeX glyph lookup</a>:</td><td> </td><td valign="top"><a href="#Glyph-lookup">Glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-support">TeX support</a>:</td><td> </td><td valign="top"><a href="#TeX-support">TeX support</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TeX-Users-Group">TeX Users Group</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dfile_002ec"><code>tex-file.c</code></a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dfile_002eh"><code>tex-file.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dglyph_002ec"><code>tex-glyph.c</code></a>:</td><td> </td><td valign="top"><a href="#Glyph-lookup">Glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dglyph_002eh"><code>tex-glyph.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-overview">Programming overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dk_0040tug_002eorg"><code>tex-k@tug.org</code></a>:</td><td> </td><td valign="top"><a href="#Mailing-lists">Mailing lists</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002dk_0040tug_002eorg-_0028bug-address_0029"><code>tex-k@tug.org <span class="roman">(bug address)</span></code></a>:</td><td> </td><td valign="top"><a href="#Reporting-bugs">Reporting bugs</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tex_002eweb"><code>tex.web</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXBIB"><code>TEXBIB</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXBIB-1"><code>TEXBIB</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXCONFIG"><code>TEXCONFIG</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXDOCS"><code>TEXDOCS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFONTMAPS"><code>TEXFONTMAPS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFONTS"><code>TEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFONTS-1"><code>TEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFONTS-2"><code>TEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFONTS-3"><code>TEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texfonts_002emap"><code>texfonts.map</code></a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXFORMATS"><code>TEXFORMATS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXINDEXSTYLE"><code>TEXINDEXSTYLE</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXINPUTS"><code>TEXINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXINPUTS-1"><code>TEXINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMF"><code>TEXMF</code></a>:</td><td> </td><td valign="top"><a href="#TeX-directory-structure">TeX directory structure</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmf_002ecnf"><code>texmf.cnf</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmf_002ecnf-missing_002c-warning-about"><samp>texmf.cnf</samp> missing, warning about</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmf_002ecnf_002c-and-variable-expansion"><code>texmf.cnf<span class="roman">, and variable expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmf_002ecnf_002c-definition-for"><code>texmf.cnf<span class="roman">, definition for</span></code></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmf_002ecnf_002c-source-for-path"><code>texmf.cnf<span class="roman">, source for path</span></code></a>:</td><td> </td><td valign="top"><a href="#Path-sources">Path sources</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFCNF"><code>TEXMFCNF</code></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFCNF-1"><code>TEXMFCNF</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFDBS"><code>TEXMFDBS</code></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFDBS-1"><code>TEXMFDBS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFINI"><code>TEXMFINI</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFINI-1"><code>TEXMFINI</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFINI-2"><code>TEXMFINI</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFLOG"><code>TEXMFLOG</code></a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFOUTPUT"><code>TEXMFOUTPUT</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFSCRIPTS"><code>TEXMFSCRIPTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-texmfvar"><code>texmfvar</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXMFVAR"><code>TEXMFVAR</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXPICTS"><code>TEXPICTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXPKS"><code>TEXPKS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXPOOL"><code>TEXPOOL</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXPSHEADERS"><code>TEXPSHEADERS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXPSHEADERS-1"><code>TEXPSHEADERS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXSIZES"><code>TEXSIZES</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEXSOURCES"><code>TEXSOURCES</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEX_005fHUSH"><code>TEX_HUSH</code></a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TEX_005fHUSH-1"><code>TEX_HUSH</code></a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TFMFONTS"><code>TFMFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tilde-expansion">tilde expansion</a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tilde_002ec"><code>tilde.c</code></a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-time-system-call"><code>time <span class="roman">system call</span></code></a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tolerance-for-glyph-lookup">tolerance for glyph lookup</a>:</td><td> </td><td valign="top"><a href="#Basic-glyph-lookup">Basic glyph lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-trailing-_002f-in-home-directory">trailing ‘<samp>/</samp>’ in home directory</a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-trailing-colons">trailing colons</a>:</td><td> </td><td valign="top"><a href="#Default-expansion">Default expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TRFONTS"><code>TRFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-trick-for-detecting-leaf-directories">trick for detecting leaf directories</a>:</td><td> </td><td valign="top"><a href="#Subdirectory-expansion">Subdirectory expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-trojan-horse-attack">trojan horse attack</a>:</td><td> </td><td valign="top"><a href="#Security">Security</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-try_005fstd_005fextension_005ffirst"><code>try_std_extension_first</code></a>:</td><td> </td><td valign="top"><a href="#File-lookup">File lookup</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-TTFONTS"><code>TTFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-tug_002eorg"><code>tug.org</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-typeface-directory_002c-omitting">typeface directory, omitting</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-typeface-directory_002c-omitting-1">typeface directory, omitting</a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-U">U</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-unable-to-find-files">unable to find files</a>:</td><td> </td><td valign="top"><a href="#Unable-to-find-files">Unable to find files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unable-to-generate-fonts">unable to generate fonts</a>:</td><td> </td><td valign="top"><a href="#Unable-to-generate-fonts">Unable to generate fonts</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-uname"><code>uname</code></a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unixtex_002eftp"><code>unixtex.ftp</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unknown-special-warnings">unknown special warnings</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unreadable-file-warnings">unreadable file warnings</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unreadable-files">unreadable files</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-unusable-ls_002dR-warning">unusable <samp>ls-R</samp> warning</a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-usage-patterns_002c-finding">usage patterns, finding</a>:</td><td> </td><td valign="top"><a href="#Logging">Logging</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-USERPROFILE_002c-as-_007e-expansion"><code>USERPROFILE<span class="roman">, as ~ expansion</span></code></a>:</td><td> </td><td valign="top"><a href="#Tilde-expansion">Tilde expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-USE_005fTEXMFVAR"><code>USE_TEXMFVAR</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-USE_005fVARTEXFONTS"><code>USE_VARTEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-V">V</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-varfonts"><code>varfonts</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-variable-expansion">variable expansion</a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-variable_002ec"><code>variable.c</code></a>:</td><td> </td><td valign="top"><a href="#Variable-expansion">Variable expansion</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-variable_002eh"><code>variable.h</code></a>:</td><td> </td><td valign="top"><a href="#Programming-with-config-files">Programming with config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-VARTEXFONTS"><code>VARTEXFONTS</code></a>:</td><td> </td><td valign="top"><a href="#mktex-configuration">mktex configuration</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-VAX-11_002f750">VAX 11/750</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-version-numbers_002c-determining">version numbers, determining</a>:</td><td> </td><td valign="top"><a href="#Bug-checklist">Bug checklist</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-VF-files_002c-not-found">VF files, not found</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-VFFONTS"><code>VFFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Vojta_002c-Paul">Vojta, Paul</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-W">W</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-Walsh_002c-Norman">Walsh, Norman</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-warning-about-unusable-ls_002dR">warning about unusable <samp>ls-R</samp></a>:</td><td> </td><td valign="top"><a href="#ls_002dR">ls-R</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-warning_002c-about-missing-texmf_002ecnf">warning, about missing <samp>texmf.cnf</samp></a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-warnings_002c-file-access">warnings, file access</a>:</td><td> </td><td valign="top"><a href="#Searching-overview">Searching overview</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-warnings_002c-suppressing">warnings, suppressing</a>:</td><td> </td><td valign="top"><a href="#Suppressing-warnings">Suppressing warnings</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-WEB2C"><code>WEB2C</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-Weber_002c-Olaf">Weber, Olaf</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-WEBINPUTS"><code>WEBINPUTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-whitespace_002c-in-fontmap-files">whitespace, in fontmap files</a>:</td><td> </td><td valign="top"><a href="#Fontmap">Fontmap</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-whitespace_002c-not-ignored-on-continuation-lines">whitespace, not ignored on continuation lines</a>:</td><td> </td><td valign="top"><a href="#Config-files">Config files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-www_002etug_002eorg"><code>www.tug.org</code></a>:</td><td> </td><td valign="top"><a href="#unixtex_002eftp">unixtex.ftp</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-X">X</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-XDvi"><code>XDvi</code></a>:</td><td> </td><td valign="top"><a href="#Specially_002drecognized-files">Specially-recognized files</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-XDVIFONTS"><code>XDVIFONTS</code></a>:</td><td> </td><td valign="top"><a href="#Supported-file-formats">Supported file formats</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-XDVIMAKEPK"><code>XDVIMAKEPK</code></a>:</td><td> </td><td valign="top"><a href="#mktex-script-names">mktex script names</a></td></tr> +<tr><td></td><td valign="top"><a href="#index-XDVISIZES"><code>XDVISIZES</code></a>:</td><td> </td><td valign="top"><a href="#Fallback-font">Fallback font</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +<tr><th><a name="Index_cp_letter-Z">Z</a></th><td></td><td></td></tr> +<tr><td></td><td valign="top"><a href="#index-zuhn_002c-david">zuhn, david</a>:</td><td> </td><td valign="top"><a href="#History">History</a></td></tr> +<tr><td colspan="4"> <hr></td></tr> +</table> +<table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>!</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-2"><b>$</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-3"><b>-</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-4"><b>.</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-5"><b>/</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-6"><b>2</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-7"><b>8</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-8"><b>:</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-9"><b>\</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-10"><b>{</b></a> + +<a class="summary-letter" href="#Index_cp_symbol-11"><b>~</b></a> + +<br> +<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a> + +<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a> + +<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a> + +<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a> + +<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a> + +<a class="summary-letter" href="#Index_cp_letter-F"><b>F</b></a> + +<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a> + +<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a> + +<a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a> + +<a class="summary-letter" href="#Index_cp_letter-K"><b>K</b></a> + +<a class="summary-letter" href="#Index_cp_letter-L"><b>L</b></a> + +<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a> + +<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a> + +<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a> + +<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a> + +<a class="summary-letter" href="#Index_cp_letter-Q"><b>Q</b></a> + +<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a> + +<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a> + +<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a> + +<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a> + +<a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a> + +<a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a> + +<a class="summary-letter" href="#Index_cp_letter-X"><b>X</b></a> + +<a class="summary-letter" href="#Index_cp_letter-Z"><b>Z</b></a> + +</td></tr></table> + +<hr> + + + +</body> +</html> |