.png)
toc의 각 장 이름에 Word CHAPTER #을 추가하는 방법(.sty 파일의 경우)
.sty 파일의 이 코드
\renewcommand{\@makechapterhead}[1]{{
\setlength{\topmargin}{2in} % really 1.5in, added by bph
% to meet OAP standards
\normalfont\normalsize\bfseries %the size of the font of the headers of the chapter
\begin{center}
\etchapterheadstyle{\@chapapp{ \thechapter}} % CHAPTER 1 or APPENDIX
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{1.5in} % back to 1in
}}
\renewcommand{\@makeschapterhead}[1]{{
\setlength{\topmargin}{2in} % really 1.5in, added by bph
% to meet OAP standards
\normalfont\normalsize\bfseries
\begin{center}
\etchapterheadstyle{#1} % TITLE OF CHAPTER
\end{center}
\setlength{\topmargin}{2in} % back to 1in
}}
TOC는 다음과 같습니다.
TOC를 다음과 같이 표시하는 방법:
1 장 소개
2장 2장 이름
3장 3장 이름
Peter Wilson의 아래 코드를 추가하면 이 목차가 나타납니다.
질문은 1- 장 시작 부분에서 CHAPTER라는 단어를 어떻게 제거할 수 있습니까? 2- 제목 글꼴을 어떻게 작게 만들 수 있습니까? 3- 그림 목록 - 표 - 기호가 같은 페이지에 나타납니다. 한 페이지?
답변1
패키지 를 사용하세요 tocloft
.
...
\usepackage{tocloft}
\renewcommand{\cftchappresnum}{CHAPTER } % CHAPTER before number in ToC
\newlength{\mylen} % a scratch length
\settowidth{\mylen}{\bfseries\cftchappresnum\cftchapaftersnum} % extra space
\addtolength{\cftchapnumwidth}{\mylen} % add the extra space
...
장/섹션 번호 앞에 내용을 추가한다는 것은 추가 텍스트에 추가 공백을 허용해야 함을 의미합니다. 이것이 위 코드의 마지막 세 줄이 수행하는 작업입니다. 물론 \cftchapnumwidth
위 코드를 사용하지 않고도 지정된 값으로 설정할 수 있습니다.
> texdoc tocloft
자세한 내용은 설명서( )를 참조하세요 .