Incompatibilidade entre etoc e mwbk

Incompatibilidade entre etoc e mwbk

Quando utilizo o etocpacote com a mwbkclasse, \localtableofcontentsfunciona (com erros), mas \tableofcontentsnão:

\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}

Responder1

Use toclofto pacote para compatibilidade.

\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}

insira a descrição da imagem aqui

informação relacionada