summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-08 21:42:32 +0000
committerKarl Berry <karl@freefriends.org>2020-03-08 21:42:32 +0000
commit8853974591602003b6ea3948c580bcd7ad2b8784 (patch)
tree844ae5b27257b58543a5ef2ade4bebc077bd0f77 /Build/source
parentba00aa69508ba23aa5ea249f2b8cf351ab5b9ef5 (diff)
ptex2pdf
git-svn-id: svn://tug.org/texlive/trunk@54179 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua63
1 files changed, 35 insertions, 28 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua b/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
index 4f601437a1f..d2668d6df84 100755
--- a/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
+++ b/Build/source/texk/texlive/linked_scripts/ptex2pdf/ptex2pdf.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env texlua
NAME = "ptex2pdf[.lua]"
-VERSION = "20200119.0"
+VERSION = "20200307.0"
AUTHOR = "Norbert Preining"
AUTHOREMAIL = "norbert@preining.info"
SHORTDESC = "Convert Japanese TeX documents to pdf"
@@ -14,24 +14,25 @@ by dvipdfmx.
]]
USAGE = [[
[texlua] ptex2pdf[.lua] { option | basename[.tex] } ...
-options: -v version
- -h help
- -help print full help (installation, TeXworks setup)
- -e use eptex class of programs
- -u use uptex class of programs
- -l use latex based formats
- -s stop at dvi
- -i retain intermediate files
- -ot '<opts>' extra options for TeX
- -od '<opts>' extra options for dvipdfmx
- -output-directory '<dir>' directory for created files]]
+options: -v version
+ -h help
+ -help print full help (installation, TeXworks setup)
+ -e use eptex class of programs
+ -u use uptex class of programs
+ -l use latex based formats
+ -ld use latex-dev based formats
+ -s stop at dvi
+ -i retain intermediate files
+ -ot '<opts>' extra options for TeX
+ -od '<opts>' extra options for dvipdfmx
+ -output-directory '<dir>' directory for created files]]
LICENSECOPYRIGHT = [[
Originally based on musixtex.lua from Bob Tennent.
-(c) Copyright 2016-2020 Japanese TeX Development Community
-(c) Copyright 2013-2020 Norbert Preining norbert@preining.info
-(c) Copyright 2012 Bob Tennent rdt@cs.queensu.ca
+(c) Copyright 2016-2020 Japanese TeX Development Community
+(c) Copyright 2013-2020 Norbert Preining norbert@preining.info
+(c) Copyright 2012 Bob Tennent rdt@cs.queensu.ca
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -181,6 +182,8 @@ CHANGELOG = [[
support directories containing dots (thanks kn1cht)
- version 20200119.0
check invalid PATH string beforehand on windows
+- version 20200307.0
+ add -ld option to run (u)platex-dev
]]
@@ -278,6 +281,7 @@ intermediate = 1
use_eptex = 0
use_uptex = 0
use_latex = 0
+use_latexdev = 0
outputdir = "."
prefilename = ""
filename = ""
@@ -315,6 +319,9 @@ repeat
use_uptex = 1
elseif this_arg == "-l" then
use_latex = 1
+ elseif this_arg == "-ld" then
+ use_latex = 1
+ use_latexdev = 1
elseif this_arg == "-s" then
dvipdf = ""
elseif this_arg == "-i" then
@@ -344,30 +351,30 @@ until narg > #arg
whoami()
-if use_eptex == 1 then
+if use_latex == 1 then
if use_uptex == 1 then
- if use_latex == 1 then
- tex = "uplatex" -- uplatex already as etex extension
+ if use_latexdev == 1 then
+ tex = "uplatex-dev"
else
- tex = "euptex"
+ tex = "uplatex" -- uplatex already as etex extension
end
else
- if use_latex == 1 then
- tex = "platex" -- latex needs etex anyway
+ if use_latexdev == 1 then
+ tex = "platex-dev"
else
- tex = "eptex"
+ tex = "platex" -- latex needs etex anyway
end
end
else
- if use_uptex == 1 then
- if use_latex == 1 then
- tex = "uplatex"
+ if use_eptex == 1 then
+ if use_uptex == 1 then
+ tex = "euptex"
else
- tex = "uptex"
+ tex = "eptex"
end
else
- if use_latex == 1 then
- tex = "platex"
+ if use_uptex == 1 then
+ tex = "uptex"
else
tex = "ptex"
end