CJKLATEX(1)
π CJK LaTeX batch commands π
okay bestie, welcome to the manual page for all the *latex batch commands β it's section 1, General Commands Manual energy, and yes it's literally a whole squad of little shell scripts that hold your hand through CJK LaTeX. let's go π¦
πΈ NAME πΈ
fourteen icons, one job: each of these runs LaTeX (or pdfLaTeX) directly on a .tex file in some non-ASCII encoding, no manual conversion crying required π
bg5latexβ Use LaTeX directly on a Big5 encoded.texfilebg5pdflatexβ Use pdfLaTeX directly on a Big5 encoded.texfilebg5+latexβ Use LaTeX directly on a Big5+ encoded.texfilebg5+pdflatexβ Use pdfLaTeX directly on a Big5+ encoded.texfilecef5latexβ Use LaTeX directly on a Big5 encoded.texfile containing CEF macroscef5pdflatexβ Use pdfLaTeX directly on a Big5 encoded.texfile containing CEF macrosceflatexβ Use LaTeX directly on a.texfile containing CEF macroscefpdflatexβ Use pdfLaTeX directly on a.texfile containing CEF macroscefslatexβ Use LaTeX directly on an SJIS encoded.texfile containing CEF macroscefspdflatexβ Use pdfLaTeX directly on an SJIS encoded.texfile containing CEF macrosgbklatexβ Use LaTeX directly on a GBK encoded.texfilegbkpdflatexβ Use pdfLaTeX directly on a GBK encoded.texfilesjislatexβ Use LaTeX directly on an SJIS encoded.texfilesjispdflatexβ Use pdfLaTeX directly on an SJIS encoded.texfile
β¨ SYNOPSIS β¨
the vibe is genuinely just "name the file and go" π
bg5latex file.tex
bg5pdflatex file.tex
etc.
yes, <rainbow>etc.</rainbow> is literally what the page says. iconic of them honestly.
π DESCRIPTION π
so this manual page briefly documents the different *latex batch files that come with the CJK LaTeX macro. short and sweet, we love a low-effort legend π«Ά
the *latex commands are shell scripts. here's the whole plot: they take a .tex file (that's Big5, Big5+, GBK or SJIS encoded) and convert it into a .cjk file using the respective *conv command, which results in a .cjk file β and then they run (pdf)latex on that .cjk file. conversion first, typesetting second, no cap β¨
now for the "which one do I even pick" section, because the answer is genuinely different depending on your encoding:
- if you use Big5+ encoding, then use
bg5+latexorbg5+pdflatexπ - if you use CEF macro's in your Big5 or SJIS encoded file, use
cef5latexorcefslatexresp. instead. and if it's in plain ASCII, useceflatex.
and here's the part that lowkey changes your whole life: if you use GNU/Emacs (>=20), you don't have to use any of these commands at all π§ just put the Lisp file cjk-enc.el in Emacs' load-path, load the library cjk-enc and run M-x cjk-write-file to create a .cjk file. then process the .cjk file with latex or pdflatex. that's it. main character energy, honestly π
π SEE ALSO π
go read these too, bestie, they're the whole supporting cast:
bg5conv(1)bg5+conv(1)cef5conv(1)cefconv(1)cefsconv(1)extconv(1)sjisconv(1)- the CJK documentation files in
/usr/share/doc/latex-cjk-common/
π AVAILABILITY π
the *latex scripts are part of the CJK macro package for LaTeX 2e, available at the CTAN hosts and its mirrors πͺ and available for Debian under latex-cjk-chinese and latex-cjk-japanese. so yes, packaged and ready for you π
π AUTHOR π
the programs mentioned under NAME were written by Werner Lemberg <wl@gnu.org> π
this manual page was written by Danai SAE-HAN <danai.sae-han@edpnet.be> for the Debian project. it is licensed under the GNU General Public License version 2 or higher, of which you can find a copy online at http://www.gnu.org/licenses/gpl.txt or on Debian systems under /usr/share/common-licenses/GPL-2 (part of the base-files package). legal bestie behaviour, we respect it π«‘
okay that's the whole page!! and for the cute sign-off: this was CJK Version 4.6.0, dated 29-Jun-2006 β yes, a certified classic, still slaying π ππΈ
π¦ where this page comes from
- debian bookworm: latex-cjk-common 4.8.5-1 Β· GPL-2.0-or-later
- debian trixie: latex-cjk-common 4.8.5-1 Β· GPL-2.0-or-later
- ubuntu jammy: latex-cjk-common 4.8.4+git20170127-4 Β· GPL-2.0-or-later
- ubuntu noble: latex-cjk-common 4.8.5-1 Β· GPL-2.0-or-later
- ubuntu questing: latex-cjk-common 4.8.5-2
- ubuntu resolute: latex-cjk-common 4.8.5-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: latex-cjk-common 4.8.5-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms