etoc과 mwbk 간의 비호환성

etoc과 mwbk 간의 비호환성

클래스 etoc와 함께 패키지를 사용하면 작동하지만(오류가 있음) 작동하지 않습니다.mwbk\localtableofcontents\tableofcontents

\documentclass{mwbk}

\usepackage{graphicx,xcolor}
\usepackage{hyperref}

\usepackage{etoc}

%doesn't work%%
%\etocstandardlines% ‘line entries’ as without \usepackage{etoc}
%\etocstandarddisplaystyle  % ‘toc display’ as without \usepackage{etoc}


\begin{document}

\tableofcontents

\etocsettocstyle{\section*{In this chapter you will see:}}{} % from now on only local tocs


\chapter{Chapter One}

\localtableofcontents


\section{Section One}
\subsection{Subsection One Point One}
\section{Section Two}

\end{document}

답변1

호환성을 위해 패키지를 사용하세요 tocloft.

\documentclass{mwbk}

\usepackage{graphicx,xcolor}
\usepackage{hyperref}
\usepackage{tocloft}
\usepackage{etoc}

%doesn't work%%
%\etocstandardlines% ‘line entries’ as without \usepackage{etoc}
%\etocstandarddisplaystyle  % ‘toc display’ as without \usepackage{etoc}


\begin{document}

\tableofcontents 

\etocsettocstyle{\section*{In this chapter you will see:}}{} % from now on only local tocs


\chapter{Chapter One}

\localtableofcontents


\section{Section One}
\subsection{Subsection One Point One}
\section{Section Two}

\end{document}

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

관련 정보