22

I've been unable to find a concise answer anywhere else on the web. Since its only a few words, albeit crucial ones, that are in Korean I don't want to have to muck around with HLaTex or deviate from pdfLaTeX that I'm using at the moment.

migrated from superuser.com May 2 '11 at 3:09

This question came from our site for computer enthusiasts and power users.

18

Personally, I had a lot of trouble trying to get the CJK package to work. So I went on the KTUG website and found that they use the package kotex.

\documentclass{article}
\usepackage{kotex}
\begin{document}
안녕하세요!
\end{document}

Output

The good part about this was I was able to simply copy and paste hangul from websites into the LaTeX document and it worked fine. I only wanted a few words (my name) as well, so this option might be quicker and easier.

  • Oh this worked perfectly, thanks! – Shautieh Mar 20 '17 at 7:05
15

You can use the CJK package. A little example (taken from CJKutf8.tex):

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[english]{babel}

\begin{document}

\begin{CJK}{UTF8}{mj}

  이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
  모아 엮어졌습니다.

\end{CJK}

This FAQ list was made to summarize some frequently asked questions
and their answers in a convenient form.

\end{document}

  • 1
    there are so many different articles around about getting korean to work easily in latex, this worked extremely well and very easily – brokemongoose Mar 9 '12 at 0:43
  • @Gonzalo When I tried to run the code in my machine. It is giving following error ! Font C70/mj/m/n/10/c7=uwmjc7 at 10.0pt not loadable: Metric (TFM) file not fo und.'. Can you suggest me on this. Thanking on advance – Ansu Jun 24 '13 at 7:16
  • @Ansu the font is missing in your system. Install it using the package manager of your LaTeX system. – Gonzalo Medina Jun 24 '13 at 14:03
  • @GonzaloMedina One more question What is the name of the package for the korean fonts? – Ansu Jun 24 '13 at 22:53
  • @Ansu the package is CJKutf8; your system seems to be missing some metric font file uwmjc7.tfm – Gonzalo Medina Jun 24 '13 at 23:06
0

In my experience, Will answer works for me.

If you want to install kotex package, you can use this repository URL in Tex Live Manager 2013.

http://ftp.ktug.org/KTUG/texlive/2013/

If you use other version, such as 2011, you can just change the number in URL.

Manual of this answer is written in below page (But written in Korean).

http://faq.ktug.org/faq/ko.TeX/instpack

0

Found a simpler way.

I had to input only a file name in Korean script (as per computer font name its "Gulim") while rest of the document is in English. Initially I could not get it compiled due to the font not set

What I did was to include as below under the input preamble (you can add the required fonts too in the same way) and yeah my job was done.

\usepackage{xeCJK}  
\setCJKmainfont{SimSun}  
\setCJKsansfont{SimHei}  
\setCJKmonofont{FangSong}  
\setCJKmainfont{Gulim}  

Hope it helps!! Cheers!

  • 1
    Why are you defining two \setCJKmainfont commands? Also, you should mention that this solution requires xelatex or lualatex. – Alenanno Aug 25 '16 at 10:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.