Im currently working on a file where I need to display some Kanji in the middle of some English text. For this I created a new environment with the CJKuft8
package, according to this post
\usepackage{CJKutf8}
\newcommand{\japanese}[1]{\begin{CJK}{UTF8}{ipxm}#1\end{CJK}}
This works still just fine, but I have a slight problem with it: I'd like to change the font in which the Kanji are displayed (only the Japanese characters, not the rest of the text), but I don't know how to achieve that.
I found this answer, but it suggests using XeLaTeX, with which I am not familiar. Since I wanted to use Source Han Code JP, which is a OpenType Source font, I found also this question here, but there LuaLaTex was suggested.
After all of this I'm somewhat confused what the best strategy is to achieve my goal. Should I switch to XeLaTeX or LuaLaTex? Or can I even achieve my goal without changing to much (currently running pdflatex
)?
Further Information: If possible I'd like to avoid having to switch to XeLaTeX or LuaLaTeX since the file is already quite big, has a lot of imported packages and I'm not familiar what is compatible with what.
xelatex
. There is an upfront cost (although in my experience it wasn't too bad), but it can save you hours of frustration.fontspec
package.