한글 글꼴을 일시적으로 변경하는 방법이 궁금하여 질문드립니다.
(OS는 한글 Window 8.1 64비트, 설치된 텍버전은 TeXLive2016이며 XeLaTeX으로 컴파일 중입니다.)
oblivoir template 파일에 \fontspec 명령어를 사용하여 다음과 같이 작성하였습니다.
%!TEX encoding = UTF-8 Unicode
\documentclass[ % options,
a4paper, % papersize
% cjk, % for cjk-ko
% usedotemph,% for cjk-ko's \dotemph
amsmath, % load amsmath.sty to typeset math materials
itemph, % to disable gremph default (xe/lua)
% footnote, % korean style footnote
% chapter, % to use \chapter
]{oblivoir} % xoblivoir and oblivoir are identical.
\ifPDFTeX % latex, pdflatex
% \usepackage{newtxtext} % Latin fonts
\else\ifLuaOrXeTeX % xelatex or lualatex
% \setmainfont[Ligatures=TeX]{TeX Gyre Termes} %% Latin fonts
\defaultfontfeatures{Ligatures=TeX}
\setkormainfont(* ExtraBold)(*){NanumMyeongjo}(* Bold)(*){HCR Batang LVT}
\setkorsansfont{NanumGothic}
\setkormonofont[Scale=.95]{NanumGothic}
\fi\fi
\usepackage{kotex-logo}
\begin{document}
%\title{\koTeX-oblivoir 템플릿}
%\author{저자}
%\date{\today}
%\maketitle
%\section{절(節) 제목}
% 본문을 여기서 시작합니다.
{\fontspec{맑은 고딕} \textbf{abcde 가나다라마 맑은 고딕 굵게}}
{\fontspec{나눔바른고딕} \underline{abcde 가나다라마} 나눔바른고딕}
\textsf{\emph{abcdefghijklmn 가나다}라마바사}
{\fontspec{궁서} abcde 가나다라마 궁서}
{\fontspec{은 타자} abcde 가나다라마 은 타자}
{\fontspec{나눔손글씨 붓} abcde 가나다라마 나눔손글씨 붓}
{\fontspec{Arial} abcde 나눔손글씨 펜}
\end{document}
컴파일된 결과는 아래 그림과 같습니다.
결과를 보면 영문의 경우 원하는 글꼴들이 잘 적용되는 것 같은데, 한글은 글꼴 변경이 전혀 적용되지 않는 것 같습니다.
어느 부분이 잘못되었는지 궁금합니다. 글꼴 변경을 위해서 \fontspec 명령어를 사용하는 것 말고 다른 방법이 있는지요?
답변 부탁드립니다.
감사합니다.
KTUG 한국 텍 사용자 그룹