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 .tex file
  • bg5pdflatex β€” Use pdfLaTeX directly on a Big5 encoded .tex file
  • bg5+latex β€” Use LaTeX directly on a Big5+ encoded .tex file
  • bg5+pdflatex β€” Use pdfLaTeX directly on a Big5+ encoded .tex file
  • cef5latex β€” Use LaTeX directly on a Big5 encoded .tex file containing CEF macros
  • cef5pdflatex β€” Use pdfLaTeX directly on a Big5 encoded .tex file containing CEF macros
  • ceflatex β€” Use LaTeX directly on a .tex file containing CEF macros
  • cefpdflatex β€” Use pdfLaTeX directly on a .tex file containing CEF macros
  • cefslatex β€” Use LaTeX directly on an SJIS encoded .tex file containing CEF macros
  • cefspdflatex β€” Use pdfLaTeX directly on an SJIS encoded .tex file containing CEF macros
  • gbklatex β€” Use LaTeX directly on a GBK encoded .tex file
  • gbkpdflatex β€” Use pdfLaTeX directly on a GBK encoded .tex file
  • sjislatex β€” Use LaTeX directly on an SJIS encoded .tex file
  • sjispdflatex β€” Use pdfLaTeX directly on an SJIS encoded .tex file

✨ 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+latex or bg5+pdflatex πŸ’–
  • if you use CEF macro's in your Big5 or SJIS encoded file, use cef5latex or cefslatex resp. instead. and if it's in plain ASCII, use ceflatex.

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:


πŸ’œ 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 πŸ’…πŸ’–πŸŒΈ