1

I have a LaTeX report structured as follows:

\documentclass[oneside,11pt]{report}

\usepackage{appendix}
\usepackage{hyperref}

\begin{document}

\begin{abstract} ... \end{abstract}

\tableofcontents

\part{Part 1}
\chapter{Chapter 1}
\chapter{Chapter 2}
\chapter{Chapter 3}

\part{Part 2}
\chapter{Chapter 3}
\chapter{Chapter 4}

\part{Part 3}
\chapter{Chapter 4}

\part{Part 4}
\chapter{Chapter 5}

\appendixpage 
\appendix    
\addappheadtotoc

\chapter{Appendix 1 }
\chapter{Appendix 2}

\end{document}

But when this LaTex is compiled to a PDF file, the Appendices are displayed as part of the Part 4, but not as a distinct element of the document itself, i.e.:

enter image description here

Can anyone suggest a solution to this?

1
  • According to your MWE the problem is that file added with \input since you add it before the Appendix 1 that use a chapter. If in the external file Appendices you use \chapter probably your problem will be solved.
    – Aradnix
    Commented Sep 15, 2014 at 1:15

1 Answer 1

1

I assume, that "Appendix 1" and "Appendix 2" should appear under "Appendices". Package bookmark helps to raise the level of "Appendices" to a \part:

\documentclass[oneside,11pt]{report}

\usepackage{appendix}
\usepackage{hyperref}
\usepackage{bookmark}

\begin{document}

\begin{abstract} ... \end{abstract}

\tableofcontents

\part{Part 1}
\chapter{Chapter 1}
\chapter{Chapter 2}
\chapter{Chapter 3}

\part{Part 2}
\chapter{Chapter 3}
\chapter{Chapter 4}

\part{Part 3}
\chapter{Chapter 4}

\part{Part 4}
\chapter{Chapter 5}

\appendix
\bookmarksetupnext{level=-1}
\addappheadtotoc

\chapter{Appendix 1 }
\chapter{Appendix 2}

\end{document}

Remarks:

  • \input{Appendices} ignored because of missing Appendices.tex.

  • abstract is an environment in class report.

1
  • Thanks. That appears to have worked. And I've corrected my original LaTeX.
    – Mr Morgan
    Commented Sep 15, 2014 at 1:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .