0

I am submitting a manuscript where the way I wrote it I use titletoc to create a ToC just for the Appendix. See the image and MRE. But here is the problem. Now I need to submit the manuscript for the final version and I am only allowed to use packages on this list.

Can anyone help me reproduce an Appendix only ToC that is right at the start of the Appendix like what I have, but only using allowed packages (e.g: appendix)?

I am working in Overleaf for what its worth.

\documentclass{article} \usepackage{lipsum} % only for the example % I AM NOT ALLOWED TO USE THIS PACKAGE \usepackage{titletoc} \newcommand\DoToC{% \startcontents \textbf{Appendix Table of Contents}\vskip3pt\hrule\vskip5pt \printcontents{}{1}{}{} \vskip3pt\hrule\vskip5pt } \begin{document} \newpage \section{First section} \lipsum \section{Second section} \lipsum \appendix % this makes an appendix TOC \DoToC \section{Appendix A} \label{appendix_a} \lipsum \section{Appendix B} \label{appendix_b} \lipsum \end{document} 

enter image description here

3
  • 1
    Are you sure you are allowed to do this (include the mini TOC)? The list of packages they allow seems curated, maintained and the page has been recently updated, so I think that they do not allow the titletoc package on purpose. Besides, in the same page they mention conversion to HTML, in which format this TOC would probably be irrelevant. I suggest that (a) first you ask explicitly if you are allowed to include this TOC, (b) if it is for just two (sub-)sections, you could produce it by hand, using a table (or similar), \ref and \pageref. They even use the zref package. Commented May 23 at 4:26
  • Thats the whole point. I am NOT allowed to use that. Thats why I am asking for an alternative Commented May 23 at 16:42
  • 1
    My question was whether you are allowed to include the mini TOC at all, not if you are allowed to use the package (you are not, obviously). Commented May 24 at 5:18

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.