KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당 › aysmptote에서 한글 사용하려면?

푸른언덕 | 2012.12.11 11:10:47 | 메뉴 건너뛰기 쓰기

현재 mac에서 xelatex으로 한글을 잘 사용하고 있습니다.


latex 모듈인 asymptote라는 그림그리는 package에서 한글을 사용하려고 합니다. 

Latex font setup에 대한 이해 부족으로 인해 매뉴얼을 보아도 어떻게 셋팅해야 하는지 잘 이해가 되지 않네요. 

참고로 다음은  asymptote 매뉴얼 sec8.20 unicode 사용법입니다.

 

8.20 unicode

Import this package at the beginning of the file to instruct LaTeX to accept unicode (UTF- 8) standardized international characters. To use Cyrillic fonts, you will need to change the font encoding:

import unicode;
texpreamble("\usepackage{mathtext}\usepackage[russian]{babel}");
defaultpen(font("T2A","cmr","m","n"));

Support for Chinese, Japanese, and Korean fonts is provided by the CJK package:

     http://www.ctan.org/tex-archive/languages/chinese/CJK/

The following commands enable the CJK song family (within a label, you can also tem- porarily switch to another family, say kai, by prepending "\CJKfamily{kai}" to the label string):

texpreamble("\usepackage{CJK}
\AtBeginDocument{\begin{CJK*}{GBK}{song}}
\AtEndDocument{\clearpage\end{CJK*}}");

댓글 [5]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹