I'm writing a paper in English and need to include a few characters in Korean in the body and title. I've read several other posts and managed to get the Hangul to show up inside the body, but I can't get them to show up inside the title. I am using pdflatex and have all of the necessary fonts installed.
Here's the minimum working example that shows the characters appearing in the body but not in the title on my system:
\documentclass[11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[thai,english]{babel}
\addto\extrasthaicjk{\fontencoding{C90}\selectfont}
\makeatletter
\@namedef{opt@inputenc.sty}{utf8}
\makeatother
\usepackage{CJKutf8}
\newenvironment{Korean}{%
\CJKfamily{mj}}{}
\title{
Character does not show up here:
\begin{CJK}{UTF8}{mj}\begin{Korean}시험\end{Korean}\end{CJK}
}
\begin{document}
\maketitle
It works here \begin{CJK}{UTF8}{mj}\begin{Korean}시험\end{Korean}\end{CJK}
\end{document}
I don't see any errors about the title, so I'm stuck on what to do. This is my first time including foreign script characters in a LaTeX, so any help would be much appreciated. Thanks!
utf8x? I believe it's simply better to useutf8(this avoids the disputableopt@inputenc.stytrick). – egreg Jul 29 '14 at 21:24utf8xis needed for Thai language. – Leo Liu Aug 02 '14 at 03:36