From 8853974591602003b6ea3948c580bcd7ad2b8784 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 8 Mar 2020 21:42:32 +0000 Subject: ptex2pdf git-svn-id: svn://tug.org/texlive/trunk@54179 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/ptex2pdf/README.md | 31 ++++++------ Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua | 63 ++++++++++++++----------- 2 files changed, 52 insertions(+), 42 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/ptex2pdf/README.md b/Master/texmf-dist/doc/latex/ptex2pdf/README.md index bf4890b6aa2..1fe1e275ccc 100644 --- a/Master/texmf-dist/doc/latex/ptex2pdf/README.md +++ b/Master/texmf-dist/doc/latex/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 '' extra options for TeX - -od '' extra options for dvipdfmx - -output-directory '' 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 '' extra options for TeX + -od '' extra options for dvipdfmx + -output-directory '' 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/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua b/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua index 4f601437a1f..d2668d6df84 100755 --- a/Master/texmf-dist/scripts/ptex2pdf/ptex2pdf.lua +++ b/Master/texmf-dist/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 '' extra options for TeX - -od '' extra options for dvipdfmx - -output-directory '' 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 '' extra options for TeX + -od '' extra options for dvipdfmx + -output-directory '' 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 -- cgit v1.2.3