KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당 › Font 가 Not loadable 하다네요

김민규 | 2013.12.05 12:06:51 | 메뉴 건너뛰기 쓰기


LaTeX 을 갓 배우기 시작했습니다.

특별한 용도는 없고 일단 연습을 해보고 싶어서,

제가 가진 전공서적 하나를 그대로 LaTeX 으로 옮겨보고 있습니다.

Mac OS X 10.8.1 에서 TeXShop 환경을 이용 중이고요.

템플릿으로는 웹상에 무료로 공개된 The Wiley Book Style 을 사용하고 있는데

한글을 쓰기 위해 kotex 패키지를 포함시켜서 잘 사용하고 있었습니다


그런데 chapter 제목에서 다음과 같은 문제가 발생하더군요


스크린샷 2013-12-05 오전 11.00.09.png


특정 글자(예: '학', '인' 등)가 chapter 제목에 들어가면 이런 문제가 발생합니다.

part 나 section 에 있을 때는 문제가 없어요. 아마 cls 에 문제가 있는건가 살펴봤는데 못찾겠더라고요


그리고 저 상태에서 [s]ignore all 눌러서 그냥 진행시키면 정상적으로 렌더링을 마칠 수 있기는 한데

(폰트도 다 뜹니다)

그냥 타입셋 할때마다 오류가 걸리는게 귀찮기도 하고 원인을 알고 싶기도 해서 올려봅니다.


cls 파일의 chapter 커맨드는 다음과 같습니다

\def\@chapter[#1]#2{\startonoddpage

\global\titletrue

%% no floats on chapter title page

\global\@topnum\z@

\global\@botnum\z@

%%

\ifnum\c@chapter=0\relax \ifnum\c@part=1 \else \setcounter{page}{1}

\global\@mainmattertrue% <<===

\fi\fi

%% if using answers.sty:

\expandafter\ifx\csname Closesolutionfile\endcsname \relax

\else

\Closesolutionfile{ans}\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\lowercase{\global\savefootnotenumber=\c@footnote

\global\ftnum=0

\setbox0=\hbox{\let\thanks\catchfootnote

\let\\ \relax\let\footnote\catchfootnote#2}

{\def\thefootnote{\zfnsymbol{footnote}}

\ifnum\ftnum<1 \else

\saveftnum\ftnum

\global\advance\saveftnum by1

\ftnum=1

\loop\ifnum\saveftnum>\ftnum

\advance\c@footnote by 1

\savefootnotetext{\csname thecatchfootnote\the\ftnum\endcsname}

\global\advance\ftnum by1

\repeat

\fi}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%

\gdef\thepage{\csname @arabic\endcsname\c@page}

%

\refstepcounter{chapter}% <<==== moved this here instead of below mainmatter

%% when using answers.sty,

%% to open an ans<chapnum> file to be used for solutions section

\expandafter\ifx\csname Opensolutionfile\endcsname\relax\else

\Opensolutionfile{ans}[ans\the\c@chapter]\fi

\let\dolabelnow\relax

{\def\label##1{\gdef\dolabelnow{\savelabel{##1}}}%

     \global\setbox0=\hbox{\def\\ {\relax}#2}}%

\ifnum \c@secnumdepth >\m@ne

                       \if@mainmatter

                         \typeout{\@chapapp\space\thechapter.}%

\let\thanks\eatone

                         \addcontentsline{toc}{chapter}%

                                   {\protect\numberline{\thechapter}#1}%

                       \else

\let\thanks\eatone

                         \addcontentsline{toc}{chapter}{#1}%

                       \fi

                    \else

\let\thanks\eatone

                      \addcontentsline{toc}{chapter}{#1}%

                    \fi

                    \chaptermark{#1}%

                      \@makechapterhead{{

\def\thanks##1{$^{\zfnsymbol{footnote}}$}

\def\\ {\vskip1sp}\uppercase{#2}}}%

\dolabelnow

                      \@afterheading

                    \lowercase{\global\c@footnote\savefootnotenumber}}


\def\@makechapterhead#1{% 

\vglue10pt

\SpaceAboveChapterNumber=36pt

  {\parindent \z@ 

    \interlinepenalty\@M

\Large

\hbox to\textwidth{\hbox{\chapternumberfont CHAPTER

\the\c@chapter}\hfill\vrule depth12pt width0pt}

\hrule height3pt

\vtop to22.5pc{\vfill

\hyphenpenalty10000

\raggedright

\parfillskip=0pt

\huge\boldmath\bfseries\chaptertitlefont 

#1\vskip1pc

\hrule height 1pt

\vskip7pc}}

\dooffprintinfo}


첨부 [1]

댓글 [6]

댓글 쓰기

목록 삭제

KTUG 한국 텍 사용자 그룹