summaryrefslogtreecommitdiff
path: root/language/japanese/ptex2pdf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-08 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2020-03-08 03:01:00 +0000
commita8880a5ee484845d9a526c5ca8d21d31214af22b (patch)
tree6571a4bcbb457a90ddeef77c05fd72b7ebbac86e /language/japanese/ptex2pdf
parent8012fbf3193a5d1699496b198c3bd448973557bd (diff)
CTAN sync 202003080300
Diffstat (limited to 'language/japanese/ptex2pdf')
-rw-r--r--language/japanese/ptex2pdf/README.md31
-rwxr-xr-xlanguage/japanese/ptex2pdf/ptex2pdf.lua63
2 files changed, 52 insertions, 42 deletions
diff --git a/language/japanese/ptex2pdf/README.md b/language/japanese/ptex2pdf/README.md
index bf4890b6aa..1fe1e275cc 100644
--- a/language/japanese/ptex2pdf/README.md
+++ b/language/japanese/ptex2pdf/README.md
@@ -18,17 +18,18 @@ by dvipdfmx.
`````
[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
`````
## Installation ##
@@ -167,14 +168,16 @@ http://github.com/texjporg/ptex2pdf
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
## Copyright and License ##
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
diff --git a/language/japanese/ptex2pdf/ptex2pdf.lua b/language/japanese/ptex2pdf/ptex2pdf.lua
index 4f601437a1..d2668d6df8 100755
--- a/language/japanese/ptex2pdf/ptex2pdf.lua
+++ b/language/japanese/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