upLaTeX online
Compile upLaTeX online in your browser: pLaTeX rebuilt around Unicode, so kanji outside JIS X 0208 typeset as typed.
Open in LaTeX.to Download the example (zip)
- Recommended Maintained, 2007
- Magic comment:
% !TeX program = uplatexon the first line of main.tex, which is how the example picks it under Auto. - License: Public domain, use freely.
- Files:
main.tex
% !TeX program = uplatex \documentclass[11pt]{ujarticle} \title{upLaTeX で広がる文字の世界} \author{Unicode 対応の日本語 \TeX} \date{\today} \begin{document} \maketitle \section{はじめに} upLaTeX は pLaTeX を内部で Unicode 化した組版システムです。 upLaTeX is an internally Unicode-aware version of pLaTeX. pLaTeX の美しい日本語組版をそのまま受け継ぎながら、扱える文字の範囲を 大きく広げています。 \section{JIS X 0208 の枠を超えて} 従来の pLaTeX は JIS X 0208 の文字集合が基本でした。upLaTeX では文字を Unicode で内部処理するため、その枠に収まらない漢字や記号も、そのまま入力 して組版できます。人名や地名に使われる異体字を扱うとき、この違いはとても 重要になります。 \section{多言語との共存} 日本語のとなりに、アクセント付きのラテン文字(café, naïve, Gauß)を混ぜても、 upLaTeX はそれぞれを適切に処理します。国際的な文書や、複数の言語を含む資料 を作るときに役立ちます。 \section{まとめ} pLaTeX 譲りの組版品質と、Unicode による広い文字対応を両立できることが、 upLaTeX を選ぶ大きな理由です。 \end{document}
How to compile with upLaTeX on LaTeX.to
Everything runs in your browser: nothing to install, no login, no compile timeout.
- Click Open in LaTeX.to. The example opens as a project with main.tex in the editor and its finished PDF in the preview.
- Edit, then press Ctrl+Enter (Cmd+Enter on a Mac). The first compile downloads what this engine needs; after that a compile takes seconds.
What upLaTeX is
upLaTeX is pLaTeX with the engine's insides changed from JIS X 0208 to Unicode. Everything pTeX does for Japanese, the full-width spacing, the kinsoku line breaking, the small gap between a kanji and a Latin word, is untouched. What changes is how many characters exist: pLaTeX stops at about 7,000, upLaTeX (e-upTeX) typesets any character the font has, which matters the moment a name uses 髙 instead of 高 or 﨑 instead of 崎.
Like pLaTeX it writes a DVI file and the same dvipdfmx step makes the PDF, embedding the Harano Aji fonts; on LaTeX.to that step runs by itself. The example on this page is a ujarticle document that mixes Japanese with café and Gauß in one paragraph.
When to use it
- Any new Japanese document. The classes are pLaTeX's with a
uin front (ujarticle,ujreport,ujbook, the verticalutarticlefamily), orjsarticlewith theuplatexclass option, and Auto recognises both. - A name or a place name with a character outside JIS X 0208.
- Japanese beside accented Latin text or another language in the same document.
- Not for a template that was written for pLaTeX and has not been checked on upLaTeX: the two share fonts and packages, so changing the class line is usually safe, but compile once to confirm.
upLaTeX vs pLaTeX vs LuaLaTeX
- pLaTeX: the older engine, still what most Japanese templates and offices expect.
- upLaTeX: the same engine with the whole of Unicode, faster than LuaLaTeX on long documents, years of templates behind it, and free to choose for a new document.
- LuaLaTeX with
luatexjaand itsltjsarticleclass: writes PDF directly, loads OpenType fonts by name, and is where the LaTeX team's accessibility work will land.
All three read the same UTF-8 source; the class line and a few package names are what differ. The example pins its engine with % !TeX program = uplatex on the first line.
More engines: pLaTeX and all engines.