summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-30 18:30:52 +0000
committerKarl Berry <karl@freefriends.org>2008-04-30 18:30:52 +0000
commit1bbe1e023af3abf0bce342ecfd49b09053ca7b28 (patch)
treeab2775b3e00a4ce0f38528484f21931189e9823f /Master
parent763297a5e1bde6cb95513b12bbaa8b3a8c1b6894 (diff)
try_std_extension_first config value, and recognize .sty/.cls/etc. as common TeX suffixes
git-svn-id: svn://tug.org/texlive/trunk@7752 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/bin/i386-linux/kpsewhichbin200425 -> 204455 bytes
-rw-r--r--Master/texmf/web2c/texmf.cnf51
2 files changed, 35 insertions, 16 deletions
diff --git a/Master/bin/i386-linux/kpsewhich b/Master/bin/i386-linux/kpsewhich
index 1b43783f1e4..443d015a6c3 100755
--- a/Master/bin/i386-linux/kpsewhich
+++ b/Master/bin/i386-linux/kpsewhich
Binary files differ
diff --git a/Master/texmf/web2c/texmf.cnf b/Master/texmf/web2c/texmf.cnf
index d5c16143d5d..950e8822a8f 100644
--- a/Master/texmf/web2c/texmf.cnf
+++ b/Master/texmf/web2c/texmf.cnf
@@ -402,7 +402,7 @@ OTPINPUTS = .;$TEXMF/omega/otp//
OCPINPUTS = .;$TEXMF/omega/ocp//
% Some additional input variables for several programs. If you add
-% a program that uses the 'other text files' or 'other binary files'
+% a program that uses the `other text files' or `other binary files'
% search formats, you'll want to add their variables here as well.
T4HTINPUTS = .;$TEXMF/tex4ht//
@@ -447,7 +447,38 @@ progname = unsetprogname
engine = unsetengine
-% Part 2: Non-path options.
+% Part 2: Options.
+
+% If this is true, `tex a.b' will look first for a.b.tex (within each
+% path element), and then for a.b, i.e., we try standard extensions
+% first. If this is false, we first look for a.b and then a.b.tex,
+% first. If this is false, we first look for a.b and then a.b.tex,
+% i.e., we try the name as-is first.
+%
+% Both names are always tried; the difference is the order in which they
+% are tried. The setting applies to all searches, not just .tex.
+%
+% This setting only affects names being looked up which *already* have
+% an extension. A name without an extension (e.g., `tex story') will
+% always have an extension added first.
+%
+% The default is true, because we already avoid adding the standard
+% extension(s) in most common cases. E.g., babel.sty will only look for
+% babel.sty, not babel.sty.tex, regardless of this setting.
+try_std_extension_first = t
+
+% Enable system commands via \write18{...}? Obviously insecure, despite
+% being so useful.
+shell_escape = f
+
+% Allow TeX \openin, \openout, or \input on filenames starting with `.'
+% (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?
+% a (any) : any file can be opened.
+% r (restricted) : disallow opening "dotfiles".
+% p (paranoid) : as `r' and disallow going to parent directories, and
+% restrict absolute paths to be under $TEXMFOUTPUT.
+openout_any = p
+openin_any = a
% Write .log/.dvi/etc. files here, if the current directory is unwritable.
% TEXMFOUTPUT = /tmp
@@ -463,18 +494,6 @@ MISSFONT_LOG = missfont.log
% To suppress nothing, use TEX_HUSH = none or do not set the variable at all.
TEX_HUSH = none
-% Enable system commands via \write18{...}?
-shell_escape = f
-
-% Allow TeX \openin, \openout, or \input on filenames starting with `.'
-% (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)?
-% a (any) : any file can be opened.
-% r (restricted) : disallow opening "dotfiles".
-% p (paranoid) : as 'r' and disallow going to parent directories, and
-% restrict absolute paths to be under $TEXMFOUTPUT.
-openout_any = p
-openin_any = a
-
% Allow TeX, MF, and MP to parse the first line of an input file for
% the %&format construct.
parse_first_line = t
@@ -548,7 +567,7 @@ extra_mem_bot.context = 4000000
% Must be >= 20000 and <= 4000000 (without tex.ch changes).
font_mem_size = 3000000
-% Total number of fonts. Must be >= 50 and <= 2000 (without tex.ch changes).
+% Total number of fonts. Must be >= 50 and <= 5000 (without tex.ch changes).
font_max = 5000
% Extra space for the hash table of control sequences (which allows 10K
@@ -606,7 +625,7 @@ gf_buf_size = 16384 % MF
% 45 < error_line < 255;
% 30 < half_error_line < error_line - 15;
% 60 <= max_print_line;
-% These apply to Metafont and MetaPost as well.
+% These apply to TeX, Metafont, and MetaPost.
error_line = 79
half_error_line = 50
max_print_line = 79