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>처럼 입력하시면 좋습니다.

XeLaTeX 목차 질문입니다.

2018.02.12 18:37

coelus 조회 수:1349

안녕하세요.

맥에서 XeLaTeX로 작업중인데요.

제가 장과 절 부분을 바꾸고 싶어서 .cls 파일에서 

%%Chapter
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\@makechapterhead#1{%
  \vspace*{10\p@}%
  {\parindent \z@ \reset@font
        {\Huge\bfseries \thechapter. }
        %\par\nobreak
        \vspace*{10\p@}%
        %\interlinepenalty\@M
        %\hrule
        \vspace*{10\p@}%
        \Huge \bfseries #1\par\nobreak
        \par
        \vspace*{10\p@}%
    \vskip 100\p@
  }}
\def\@makeschapterhead#1{%
  \vspace*{10\p@}%
  {\parindent \z@  \reset@font
        {\Huge\bfseries \vphantom{\thechapter.} }
        %\par\nobreak
        \vspace*{10\p@}%
        %\interlinepenalty\@M
        %\hrule
        %\vspace*{10\p@}%
        \Huge \bfseries #1\par\nobreak
        \par
        \vspace*{10\p@}%
    \vskip 100\p@
  }}

%%Section
\renewcommand\thesection{\arabic{section}}

\makeatletter
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
  \numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
  \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
  \refstepcounter{section}%
  \noindent
  \leavevmode
  \begingroup
  \Large
  \bfseries
  \thesection)\ 
  #2\quad
  \endgroup
  \addcontentsline{toc}{section}{%
    \protect\numberline{\thesection}%
    #1}%
  }
\def\unnumberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 3ex\goodbreak
%  \refstepcounter{section}%
  \noindent
  \leavevmode
  \begingroup
  \Large
  \bfseries
%  \thesection\ 
  #2\quad
  \endgroup
  \addcontentsline{toc}{section}{%
%    \protect\numberline{\thesection}%
    #1}
  }
\makeatother

이렇게 장과 절을 바꾸었습니다.

장 부분이 1. 2. 3. ...

절 부분이 1) 2) 3) ... 

이런식으로 나오게끔 만들었습니다.

그런데 목차 부분에서는 바꾼것처럼 나오지는 않고

숫자만 나오는데 어떻게 하는지 알려주실 수 있을까요?

번호 제목 글쓴이 날짜 조회 수
공지 Minimal Working Example을 첨부해주세요 [4] nanim 2015.06.23 230228
2712 R markdown - xelatex pdf compile 에러가 해결이 되지 않습니다. [6] file rlatex초보 2022.07.20 1191
2711 XeLaTeX에서 BibTex 관련하여 여쭙니다. [4] file 구름 2022.07.20 857
2710 tcolorbox 장절표제 - 한글과 같이 사용하면 botton align이 안맞습니다. [10] hwlee 2022.07.12 976
2709 \chapter가 알 수 없는 명령어로 뜹니다 [2] 김ㅇㅇ 2022.04.01 824
2708 oblivoir로 영문 사용시 질문 [7] 그로몹 2012.09.17 23516
2707 Overleaf Rtex Rmarkdown 실행 시 명령어 및 출력 Layout 제어 안됨 [1] LATEX_RTEX 2022.07.01 1133
2706 texlive 2022 업데이트 후 oblivoir에 문제가 있는 듯 합니다. [4] file 강성찬 2022.06.21 1086
2705 Argument of � has an extra }. 에러 질문입니다. [2] file thesam 2022.06.23 2017
2704 overleaf에서 kotex를 쓰고 있는 사용자입니다 [2] 장승표 2022.06.19 1212
2703 신명조를 쓰려면 어떻게 해야 하나요? [3] 신명조는 왜 2022.06.17 11302
2702 tcolorbox 속 section 선언이 rightmark로 할당되지 않는 문제 [2] file bjorkii 2022.06.18 831
2701 폰트를 신명조 쓰고 싶어요. [4] jeon_tree 2015.09.21 9249
2700 여는 따옴표 뒤에서 줄 나눔 [2] file yihoze 2022.06.16 694
2699 캡션 번호에서 점이 사라졌습니다. [2] 캡션 2022.05.24 627
2698 포토샵 이미지 파일을 텍에서 쓰려면 [11] 판돌이 2022.06.06 783
2697 Reference입력 (.bib) 사용 [2] 보문동메아리 2022.06.06 689
2696 한 줄에 두 줄로 문장을 쓸 수 있도록 하려는데... [4] file teolsuk 2022.05.30 664
2695 "List of figures", "List of tables"의 Page numbering 문의 [5] 가좌 2022.05.26 634
2694 위아래 단위가 서로 영향을 주지 않게 하려면... [8] file 판돌이 2022.05.10 727
2693 enumerate*에서 항목들의 수평 간격 일정하게 하기 (tabto) [3] file ksj 2022.05.10 653



XE Login