I'm using LyX with the Book document class and the appendix package to include an appendix for each chapter. To avoid global switch issues, I'm wrapping each appendix in an appendices environment like this:
\begin{appendices} \chapter{Appendix for Chapter 1} content here \end{appendices} However, in my Table of Contents, the title "Appendices" appears repeatedly for each chapter's appendix. I tried using commands like \appendixtitleoff and even redefining \appendixname, but the unwanted "Appendices" heading still shows up in the TOC for every appendix chapter.
Has anyone encountered this issue or found a way to prevent the "Appendices" title from being inserted into the Table of Contents multiple times? Any advice or workarounds would be appreciated!
Edit: In Document setting preamble,
\usepackage[toc]{appendix} And in the document,
\documentclass{book} \begin{document} \chapter{Main Chapter 1} This is the content of the first chapter. \begin{appendices} \chapter{Appendix for Chapter 1} This is the appendix for Chapter 1. \end{appendices} \chapter{Main Chapter 2} This is the content of the second chapter. \begin{appendices} \chapter{Appendix for Chapter 2} This is the appendix for Chapter 2. \end{appendices} \end{document} 

{}button to format it as code.subappendicesand\section{Appendix for Chapter 1}. See page 4 of the appendix manual.