Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How does cjkutf8 package work with inputenc package?


Asked by Briana Patton on Dec 09, 2021 FAQ



The main aim of CJKutf8 package is, to use utf8 option in inputenc package together with CJK package. That is to say, CJKutf8 patches original CJK package to make it work well with inputenc. And it loads inputenc package with utf8 option internally.
Moreover,
CJKutf8 package is a part of CJK bundle, it is designed for documents in UTF-8 encoding only, and it actually loads CJK package internally. The main aim of CJKutf8 package is, to use utf8 option in inputenc package together with CJK package. That is to say, CJKutf8 patches original CJK package to make it work well with inputenc.
Similarly, Instead of using the accent and ligature commands described above, you can use the inputenc package and enter the character directly, but you must ensure you match the encoding with that used by your text editor. For example, this book uses UTF8 encoding so I have loaded the inputenc package in the preamble with the utf8 option:
Accordingly,
Whenever your file uses any other characters, the inputencpackage comes to the rescue, specifying to the engine how to process the symbols you're typing. So it's quite necessary, whenever you use unicode (non ASCII) characters, to use the inputencpackage, in order to have a meaningful output (or sometimes to make a successful run of (La)TeX)
Thereof,
1 The inputenc Package. Instead of using the accent and ligature commands described above, you can use the inputenc package and enter the character directly, but you must ensure you match the encoding with that used by your text editor. For example, this book uses UTF8 encoding so I have loaded the inputenc package in the preamble with ...