Add “Appendix” before “A” in thesis TOC

前端 未结 1 1318
無奈伤痛
無奈伤痛 2021-01-31 02:40

I am required to insert the word Appendix before the letter A in my dissertation Table of Contents as follows:

Appendix A (title for appendix A)

but the latex th

相关标签:
1条回答
  • 2021-01-31 02:56

    You can easily achieve what you want using the appendix package. Here's a sample file that shows you how. The key is the titletoc option when calling the package. It takes whatever value you've defined in \appendixname and the default value is Appendix.

    \documentclass{report}
    \usepackage[titletoc]{appendix}
    \begin{document}
    \tableofcontents
    
    \chapter{Lorem ipsum}
    \section{Dolor sit amet}
    \begin{appendices}
      \chapter{Consectetur adipiscing elit}
      \chapter{Mauris euismod}
    \end{appendices}
    \end{document}
    

    The output looks like

    enter image description here

    0 讨论(0)
提交回复
热议问题