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 230306
1493 LaTeX Warning: Unused global option(s): [3] 태준 2014.01.26 2406
1492 김도현 교수님 설명 중에서 공백문자에 대한 질문 [1] 그로몹 2014.07.06 2405
1491 tex live 2014를 설치하려는데 설치가 진행이 되지 않습니다. [6] file iops 2015.01.28 2404
1490 pstricks [5] file 태준 2014.02.15 2401
1489 문장별로 줄 번호 출력하기 [2] teolsuk 2019.08.13 2396
1488 굵은 글씨체로 바꾸기 어떻게 하나요? 부탁드려요 [1] overleaf왕초보 2019.01.20 2381
1487 LaTeX Font Warning [3] 공명 2013.11.26 2381
1486 ubuntu에서 texmaker 한글 편집 [3] 무명 2019.01.07 2379
1485 컴파일후 Missing number, treated as zero. [4] file 작은섬 2018.06.23 2379
1484 solution환경에서 kswrapfig 문제 [3] file 태준 2014.03.09 2376
1483 파일이름 데이터베이스 업데이트하는 방법 알려주세요 [2] project96 2014.05.31 2373
1482 boiboites.sty에서 카운터 재설정 문의 file 2014.01.03 2370
1481 Texlive 2019 를 설치한 후에 나타나는 에러.. [8] file 처음처럼 2019.05.29 2369
1480 테이블 관련 질문 드립니다. [5] file 너구리 2015.06.02 2368
1479 박스에 넣는 방법 [5] 1234 2014.03.02 2367
1478 TeXworks editor 실행 오류 문제 [2] file kuroko 2020.07.07 2362
1477 graphicspath가 적용되지 않습니다. [2] file deepK_ 2014.04.03 2362
1476 Table of Contents 질문입니다. [2] 글쓴이 2016.09.24 2361
1475 ko.TeX 설치 문제 [3] file kmson 2019.02.07 2360
1474 kosection 옵션과 수식 번호 [2] file 아뜨거따시 2015.10.30 2360



XE Login