PTEX(1)
π PTEX(1) π
okay bestie, grab your strawberry matcha because today we're learning about ptex, uptex, eptex, and euptex β aka the Japanese "Publishing TeX" girlies. this page lives in the General Commands Manual section and it's giving "I can typeset your whole novel in Japanese, no cap". π
β¨ NAME β¨
ptex, uptex, eptex, euptex β Japanese "Publishing TeX". π
πΈ SYNOPSIS πΈ
ptex [options] [&format] [file|\commands]
π¦ DESCRIPTION π¦
so, pTeX (ptex) is a TeX engine with extensions for Japanese typesetting β think line breaking rules, inter-character spacing, and vertical writing. it was first developed by ASCII Corporation, and the whole goal was literally to give the world a Japanese TeX that could be used for commercial publishing. main character energy fr fr. πβ¨
heads up though: for pTeX, the character set available is limited to JIS X 0208, namely JIS level-1 and level-2. that's the whole vibe check, no extras.
upTeX (uptex) is a Unicode-enabled pTeX with extensions for better handling of CJK (Chinese, Japanese and Korean) multilingual documents. it's been developed by Takuji Tanaka since 2007. π
e-pTeX (eptex) is a merge of e-TeX and pTeX. π«Ά
e-upTeX (euptex) is a merge of e-TeX and upTeX. π
in the following sections, we refer to these engines as (e-)(u)pTeX. iykyk.
also, (e-)(u)pTeX's handling of its command-line arguments is similar to that of the other TeX programs in the web2c implementation. so if you already know TeX, you're lowkey already home. π
π OPTIONS π
okay so here we're listing only the additions/deletions of command line options which are specific to (e-)(u)pTeX. for (u)pTeX, other options are similar to TeX. for e-(u)pTeX, other options are similar to e-TeX. don't come for me about the missing ones, they're literally just TeX's. π
π Additions (supported by ptexenc library)
-kanjistring β sets the input Japanese Kanji code. the string can be eithereuc(EUC-JP),jis(ISO-2022-JP),sjis(Shift_JIS), andutf8(UTF-8). for (e-)upTeX,uptexis also allowed. πΈ-kanji-internalstring β sets the internal Kanji code. the string can be eithereuc, andsjis. for (e-)upTeX,uptexis also allowed. β¨
π Deletions
-encβ in this version of (e-)(u)pTeX, encTeX extensions are not available. that option said "not me, not today" and left the group chat. π
π SEE ALSO π
tex(1),etex(1).- Reference manual: <https://github.com/texjporg/ptex-manual>
π«Ά AUTHORS π«Ά
this version of (e-)(u)pTeX is maintained by Japanese TeX Development Community <https://texjp.org>. for bug reports, open an issue at GitHub repository <https://github.com/texjporg/tex-jp-build>, or send an e-mail to <issue@texjp.org>. they're responsive, they're sweet, they want your bug reports. π
this manual page was written by Hironobu Yamashita. absolute icon, we love to see it. π
okay that's the whole page bestie!! this was Web2C 2025, dated 08 August 2021 β go forth and typeset something gorgeous in Japanese, you've got this. mwah. πβ¨
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- debian trixie: texlive-lang-japanese 2024.20250309-1
- fedora 44: texlive-ptex 12:svn77830-105.fc44 Β· BSD-3-Clause
- fedora 44: texlive-ptex 12:svn77830-111.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: texlive-ptex 2025.221.svn73848-160000.3.1 Β· BSD-3-Clause
- ubuntu questing: texlive-lang-japanese 2024.20250309-1
- ubuntu resolute: texlive-lang-japanese 2025.20260124-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms