![잘못된 장의 미니톡](https://rvso.com/image/327778/%EC%9E%98%EB%AA%BB%EB%90%9C%20%EC%9E%A5%EC%9D%98%20%EB%AF%B8%EB%8B%88%ED%86%A1.png)
나는 논문을 쓰고 있는데 문서 시작 부분에 일반 목차가 있고 모든 장 시작 부분에 모든 장에 대한 목차가 필요합니다. 이를 위해 minitoc
패키지를 사용합니다.
\tableofcontents
문서 끝에 명령을 넣으면 모든 것이 올바르게 진행됩니다. 대신 문서 시작 부분에 넣으면 첫 번째 장의 미니톡이 인쇄되지 않고 다음 장의 미니톡이 이동됩니다. 두 번째 장은 첫 번째 장의 미니톡, 두 번째 장의 세 번째 등으로 이어집니다.
\documentclass[a4paper,11pt,twoside]{memoir}
\usepackage{minitoc}
\dominitoc
\begin{document}
\tableofcontents
\listoffigures
\chapter{first}
\minitoc
\section{first first}
\section{first second}
\chapter{second}
\minitoc
\section{second first}
\section{second second}
\chapter{third}
\minitoc
\section{third first}
\section{third second}
\end{document}
답변1
memoir
ToC 기능을 일부 재정의했는데 minitoc
이로 인해 분명히 혼란스러워졌습니다.
그러나 이에 대한 해결책이 있습니다. 명령 minitoc
을 제공하고 \adjustmtc[...]
선택적 인수는 minitoc의 수를 조정하기 위한 것이며 기본값은 1입니다.
\adjustmtc
처음으로 나타나기 전에 말하면 \minitoc
문제가 해결됩니다.
minitoc
이 질문에 대한 해결책을 찾으려고 할 때 문서 에 다음과 같은 멋진 명령이 숨겨져 있음을 발견했습니다 .장 앞에, 마주보는 페이지에 미니톡을 어떻게 넣을 수 있나요?.
이 minitoc
패키지는 작성자인 JP Drucbert가 2009년에 사망한 이후 기본적으로 유지 관리되지 않는 패키지입니다.
\documentclass[a4paper,11pt,twoside]{memoir}
\usepackage{minitoc}
\dominitoc
\begin{document}
\tableofcontents
\adjustmtc
\listoffigures
\adjustmtc
\chapter{first}
\minitoc
\section{first first}
\section{first second}
\chapter{second}
\minitoc
\section{second first}
\section{second second}
\chapter{third}
\minitoc
\section{third first}
\section{third second}
\end{document}