Q&A 마당은 텍 관련 질문/답변을 위해 만들었습니다.

  • 로그인 없이 자유롭게 글을 읽고 쓸 수 있는 철학은 처음과 같이 계속됩니다.
  • 질문 전에 아래를 읽어 보세요. 좋은 질문이 좋은 답을 받을 수 있는 좋은 방법입니다.
    • 질문에 맞는 제목을 붙이세요. 질문의 내용과 관련없는 "고수님", "긴급질문", "도와주세요"와 같은 제목은 답이 잘 올라오지 않습니다. 이 게시판에 올라오는 모든 글은 질문입니다. 굳이 [질문], [Q]를 적으실 필요도 없습니다.
    • 내용을 충실히 적어 주시고, 같은 상황을 재현할 수 있는 최소한의 예제가 같이 있어야 합니다.
    • 최소 예제는 "Minimal working example"을 읽어 보세요.
  • 파일을 첨부하실 때에는 가능한 압축하여 파일 크기를 줄여서 올려주시길 바랍니다.
  • 개인적으로 사용하신 글꼴이 들어 있는 경우, preparefont.sty에 관한 답변을 참조하세요.
  • 스팸 글을 막기 위하여 짧은 시간 내에 다시 글이 등록되는 IP를 막거나, 광고 글을 막기 위하여 금지어로 .com, .net 등을 설정하고 있습니다. 다소간의 불편함이 있으시더라도 양해 바랍니다.
    • 금지어에서 stackexchange, stackoverflow, ctan, overleaf, , github, google.com, gmail.com, .org, .io, sil.org, wiki.com, tistory.com등은 해제하였습니다.
  • MathJax를 이용한 수식조판을 사용하실 수 있습니다. 여기를 참조하세요.
  • 사용하는 편집기는 CKeditor입니다.
    • 편집기에서 [enter]를 누르면 <p> 태그가 들어가고, 문단으로 생각하고 한 줄을 비웁니다.
    • 글줄만 바꾸려면 [shift-enter]를 누르면 <BR> 태그가 들어가므로 용도에 맞게 나누어 쓸 수 있습니다.
    • 수식를 문서내에 삽입하시려면 에디터를 툴바에서 [소스]를 눌러 HTML로 입력할 수 있게 바꾸신 후 <pre> </pre> tag를 사용하셔서 <pre> 여러 줄의 수식 </pre>처럼 입력하시면 좋습니다.

Font 가 Not loadable 하다네요

2013.12.05 12:06

김민규 조회 수:3135


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}


번호 제목 글쓴이 날짜 조회 수
공지 Minimal Working Example을 첨부해주세요 [4] nanim 2015.06.23 230237
852 memhangul-x에서 부록 섹션 참조하기 [1] yihoze 2013.12.18 2251
851 inverse function과 forward search 기능이 작동하지 않아요. [2] gatsby 2013.12.16 3353
850 mactex 2013+oblivoir+xelatex에서 ksnamedef 명령 질문 [4] file 에드 2013.12.15 19218
849 oblivoir와 obeylines 또는 obeyspaces [3] ischo 2013.12.15 24743
848 tikz 이용시 변경사항 질문드립니다. [4] file 최강 2013.12.14 2683
847 inverse search 설정 와 notepad++ 작동 오류 문제 도와 주세요.. [3] 최기봉 2013.12.12 6933
846 lualatex 에서 luamplib를 이용한 그림그리기 질문 [12] helper0608 2013.12.08 2956
845 verbatim text 에서 화면 그리기??? [15] file 뭬깟 2013.11.28 3245
844 LaTeX 에서 일부 한자 조판이 안 될 때 [2] 공대생 2013.12.10 4962
843 카이스트 latex파일을 맥텍에서 컴파일 하면 dhucs.sty를 찾을 수 없다고 나옵니다. ㅠㅠ [4] file 한대 2013.12.10 4733
842 행장이 넘칠 때만 특정 명령(환경)이 동작하도록 하는 방법 [2] file 에드 2013.12.08 2351
841 한글 이탤릭 사용 방법 [1] 뭬깟 2013.12.09 4498
840 mathjax에 대해 [2] kangbada 2013.12.06 4068
839 긴급질문: 각 페이지의 숫자는 남기고 윗머릿글을 없애려면 어떻게 하면 되나요? [4] file 자유인64 2013.12.07 2846
838 패키지에 담긴 내용이 어떤 건지 볼 수 있는 방법 없나요? [3] 리광광 2013.12.06 2444
837 BibTeX 컴파일 질문 [2] 하늘연 2013.12.06 3115
» Font 가 Not loadable 하다네요 [6] file 김민규 2013.12.05 3135
835 oblivoir에 chapter 옵션 사용시 nameref 문제 [2] file 에드 2013.12.05 2688
834 mathjax의 사용 [4] kangbada 2011.03.31 10977
833 texworks에서는 한글 조판이 되는데 texshop에서는 되지를 않습니다. [4] mokruode 2013.12.05 3488



XE Login