{
    "mode": "man",
    "parameter": "PTEX",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/PTEX/1/json",
    "generated": "2026-06-03T03:33:10Z",
    "synopsis": "ptex [options] [&format] [file|\\commands]",
    "sections": {
        "NAME": {
            "content": "ptex, uptex, eptex, euptex - Japanese \"Publishing TeX\"\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ptex [options] [&format] [file|\\commands]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "pTeX  (ptex) is a TeX engine with extensions for Japanese typesetting, including features re‐\nlated to line breaking rules, inter-character spacing and vertical writing. It was first  de‐\nveloped  by  ASCII  Corporation, in the aim of providing a Japanese TeX which can be used for\ncommercial publishing. For pTeX, the character set available is limited to JIS X 0208, namely\nJIS level-1 and level-2.\n\nupTeX  (uptex) is a Unicode-enabled pTeX with extensions for better handling of CJK (Chinese,\nJapanese and Korean) multilingual documents.  It has been developed by  Takuji  Tanaka  since\n2007.\n\ne-pTeX (eptex) is a merge of e-TeX and pTeX.\n\ne-upTeX (euptex) is a merge of e-TeX and upTeX.\n\nIn the following sections, we refer to these engines as (e-)(u)pTeX.\n\n(e-)(u)pTeX's handling of its command-line arguments is similar to that of the other TeX pro‐\ngrams in the web2c implementation.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Here we list  only  additions/deletions  of  command  line  options  which  are  specific  to\n(e-)(u)pTeX.  For (u)pTeX, other options are similar to TeX. For e-(u)pTeX, other options are\nsimilar to e-TeX.\n\nAdditions (supported by ptexenc library):\n",
            "subsections": [
                {
                    "name": "-kanji",
                    "content": "Sets  the  input  Japanese  Kanji  code.   The  string  can  be  either  euc (EUC-JP),\njis (ISO-2022-JP),  sjis (ShiftJIS),  and utf8 (UTF-8).  For (e-)upTeX, uptex is also\nallowed.\n"
                },
                {
                    "name": "-kanji-internal",
                    "content": "Sets the internal Kanji code.  The string can be either euc, and sjis.  For (e-)upTeX,\nuptex is also allowed.\n\nDeletions:\n"
                },
                {
                    "name": "-enc",
                    "content": ""
                }
            ]
        },
        "SEE ALSO": {
            "content": "tex(1), etex(1).\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "This   version   of   (e-)(u)pTeX   is  maintained  by  Japanese  TeX  Development  Community\n<https://texjp.org>.    For   bug   reports,   open   an   issue   at    GitHub    repository\n<https://github.com/texjporg/tex-jp-build>, or send an e-mail to <issue@texjp.org>.\n\nThis manual page was written by Hironobu Yamashita.\n\n\n\nWeb2C 2022/dev                               27 May 2018                                     PTEX(1)",
            "subsections": []
        }
    },
    "summary": "ptex, uptex, eptex, euptex - Japanese \"Publishing TeX\"",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Sets the input Japanese Kanji code. The string can be either euc (EUC-JP), jis (ISO-2022-JP), sjis (ShiftJIS), and utf8 (UTF-8). For (e-)upTeX, uptex is also allowed."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Sets the internal Kanji code. The string can be either euc, and sjis. For (e-)upTeX, uptex is also allowed. Deletions:"
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "tex",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tex/1/json"
        },
        {
            "name": "etex",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/etex/1/json"
        }
    ]
}