summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
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'