summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-07-29 10:05:54 +0000
committerNorbert Preining <preining@logic.at>2008-07-29 10:05:54 +0000
commit7e36d5efcac9a9f83f26339e7d110d14f15823c0 (patch)
tree72c40917a6a651eea1311180c1f09cc684e8a971 /Master
parent18f1c14a773048949862b63492175a3aea6d1ba2 (diff)
texconf.tlu: fix a4<->A4 treatment for context papersizes
git-svn-id: svn://tug.org/texlive/trunk@9867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf/scripts/texlive/texconf.tlu6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/texconf.tlu b/Master/texmf/scripts/texlive/texconf.tlu
index 0ad1dbc449b..e41500cc447 100755
--- a/Master/texmf/scripts/texlive/texconf.tlu
+++ b/Master/texmf/scripts/texlive/texconf.tlu
@@ -531,7 +531,7 @@ function set_context_papersize(papersize)
if papersize=='--list' then
print(current_setting)
- if (string.match (current_setting, 'A4')) then
+ if (string.match (current_setting, '[aA]4')) then
print ('letter')
else
print ('A4')
@@ -540,6 +540,10 @@ function set_context_papersize(papersize)
io.stdout:write('Usage: '..usageprogname..' context paper PAPER\n\n'..
'Valid PAPER settings:\n\nA4 letter\n')
else --change paper size
+ -- make sure we have uppercase A4 for paper size
+ if (string.match (papersize, 'a4')) then
+ papersize = 'A4'
+ end
local outfile
mkdirhier(texmfconfig..'/tex/context/user')
outfile=texmfconfig..'/tex/context/user/cont-sys.tex'