Comprehensive TeX Archive Network

Direc­tory tex-archive/language/japanese/ptex2pdf

ptex2pdf[.lua]: Convert Japanese TeX documents to pdf

Author: Norbert Preining <norbert@preining.info>

Main purpose of the script is easy support of Japanese typesetting
engines in TeXworks. As TeXworks typesetting setup does not allow
for multistep processing, this script runs one of the ptex based
programs (ptex, uptex, eptex, platex, uplatex) followed 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

Copy the file ptex2pdf.lua into a directory where scripts are found,
that is for example
(where TLROOT is for example the root of your TeX Live installation)

create a link in one of the bin dirs to the above file, in the
TeX Live case:
  TLROOT/bin/ARCH/ptex2pdf -> ../../texmf-dist/scripts/ptex2pdf/ptex2pdf.lua

create a copy of runscript.exe as ptex2pdf.exe, in the TeX Live case:
  copy TLROOT/bin/win32/runscript.exe TLROOT/bin/win32/ptex2pdf.exe

TeXworks setup
Under Preferences > Typesetting add new entries, for example:

for ptex files:
  Name:         pTeX to pdf
  Program:      ptex2pdf
  Arguments:    -ot

for platex files:
  Name:         pLaTeX to pdf
  Program:      ptex2pdf
  Arguments:    -l

for uptex files:
  Name:         upTeX to pdf
  Program:      ptex2pdf
  Arguments:    -u

for uplatex files:
  Name:         upLaTeX to pdf
  Program:      ptex2pdf
  Arguments:    -l

If you need special kanji encodings for one of these programs,
add the respective -kanji option after the $synctexoption. Example:

for platex files in SJIS encoding:
  Name:         pLaTeX/SJIS to pdf
  Program:      ptex2pdf
  Arguments:    -l
                $synctexoption -kanji=sjis

Development place

Copyright and License
Originally based on musixtex.lua from Bob Tennent.

(c) Copyright 2012 Bob Tennent rdt@cs.queensu.ca
(c) Copyright 2013-2015 Norbert Preining norbert@preining.info

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
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


Name Size Date Notes
COPYING 18092 2015-03-08 18:31
README 3432 2015-03-08 18:31
ptex2pdf.lua 7761 2015-03-08 18:31

Down­load the con­tents of this pack­age in one zip archive (11.1k).

ptex2pdf – Con­vert Ja­panese TeX doc­u­ments to PDF

The Lua script pro­vides sys­tem-in­de­pen­dent sup­port of Ja­panese type­set­ting en­gines in TeXworks. As TeXworks type­set­ting setup does not al­low for mul­ti­step pro­cess­ing, this script runs one of the ptex-based pro­grams (ptex, up­tex, ep­tex, pla­tex, up­la­tex) fol­lowed by dvipdfmx.

Pack­age De­tailsptex2pdf
Ver­sion0.6 2015-03-08
Li­censeGNU Gen­eral Public Li­cense, ver­sion 2
Copy­right2013–2015 Nor­bert Prein­ing
Main­tainerNor­bert Prein­ing
Con­tained inTeX Live as ptex2pdf
Topics the doc­u­ment com­pi­la­tion pro­cess
sup­port for type­set­ting Ja­panese
Guest Book Sitemap Contact Contact Author