\section*[toc]{일반 섹션 제목}이 작동하지 않습니다

\section*[toc]{일반 섹션 제목}이 작동하지 않습니다

내 논문의 경우 섹션이 텍스트와 다르게 ToC에 나타나도록 하고 싶습니다.

조금 인터넷 검색을 한 후 \section[short]{long}제안된 답변을 찾았지만 이것이 나에게는 효과가 없는 것 같습니다.

MnotWE는 다음과 같습니다.

\documentclass[12pt,a4paper,reqno]{amsbook}
\usepackage{fontspec}
\setmainfont[SlantedFont={Latin Modern Roman Slanted},
         SmallCapsFont = {Latin Modern Roman Caps},
         ]{Latin Modern Roman}



\usepackage[activate=true,nocompatibility},final,tracking=true,factor=1100,stretch=10,shrink=10]{microtype}

\usepackage[bindingoffset=1cm]{geometry}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage{csquotes}

\title{\textsc{Some Title}}
\author{me}

\begin{document}
\maketitle
\frontmatter
\tableofcontents
\mainmatter

\part[toc part]{normal part}
\section*[toc section]{normal section}
some text

\end{document}

"toc 부분"을 정상적으로 사용하고 \part명령에 대한 ToC 제목으로 사용합니다.

섹션의 경우 별표 표시된 버전에 관심이 있습니다. 여기서 [toc section]명령의 일부는 완전히 무시된 것 같습니다.

LuaLaTeX를 사용하여 문서를 작성합니다. \section*ToC에 다른 제목으로 표시 되는 방법을 제안하는 사람이 있습니까 ?

답변1

AMS 클래스는 TOC의 제목을 변경하기 위해 다른 방법을 사용합니다. 다음은 모든 섹션 제목에 사용할 수 있는 예입니다( 를 포함 \part하지만 일반적인 방법도 작동합니다).

다음과 같이 요약할 수 있습니다.

\documentclass[12pt,a4paper,reqno]{amsbook}

\begin{document}

\frontmatter
\tableofcontents
\mainmatter

\part{%
  \for{toc}{toc part}\except{toc}{normal part}%
}

\chapter[This will go in the running head]{%
  \for{toc}{toc chapter}\except{toc}{normal chapter}%
}

\section*[sec]{\for{toc}{toc section}\except{toc}{normal section}}

some text

\clearpage
\mbox{}
\clearpage
\mbox{}

\end{document}

본문이나 TOC에서 다를 수 있는 적절한 줄 바꿈 지점을 추가하기 위한 \for와 트릭이 생각됩니다.\except

목차 페이지는 여기입니다

여기에 이미지 설명을 입력하세요

챕터 페이지는 다음과 같습니다

여기에 이미지 설명을 입력하세요

답변2

이는 에 대한 문서화된 동작입니다 . 13페이지를 amsbook참조하세요 .instr-l.pdf

LaTeX 책 클래스와 달리 AMS 문서 클래스는 AMS 스타일에서 요구하는 대로 목차에 번호가 없는 장에 대한 항목을 배치합니다.

그리고 조금 더 아래로

장 제목이 너무 길어서 런닝 헤드에 맞지 않는 경우 비슷한 방식으로 단축 형식을 제공할 수 있습니다. 전체 장 제목과 섹션 제목이 목차에 사용됩니다(기본 LaTeX와 다릅니다).

따라서 를 사용하면 \section[optional]{mandatory}TOC optional가 아닌 실행 중인 헤더에만 영향을 미칩니다.

TeX Live에서 이 매뉴얼은 다음을 통해 찾을 수 있습니다.texdoc amsbook

관련 정보