---
title: "Show Only Appendix ToC"
slug: show-only-appendix-toc
canonical_url: https://mimansajaiswal.github.io/posts/show-only-appendix-toc/
collection: Blurbs
published_at: 2024-08-02T00:00:00.000Z
updated_at: 2024-08-02T00:00:00.000Z
tags: 
  - Academia
  - Research
  - Code
author: "Mimansa Jaiswal"
---

## Navigation Context

- Canonical URL: https://mimansajaiswal.github.io/posts/show-only-appendix-toc/
- You are here: Home > Posts > Blurbs > Show Only Appendix ToC

### Useful Next Links
- [Home](https://mimansajaiswal.github.io/)
- [Publications](https://mimansajaiswal.github.io/papers/)
- [Blurbs](https://mimansajaiswal.github.io/collections/blurbs/)
- [Fieldnotes](https://mimansajaiswal.github.io/collections/fieldnotes/)
- [Personal](https://mimansajaiswal.github.io/collections/personal/)
- [Research](https://mimansajaiswal.github.io/collections/research/)

If you have ever wanted to create a Table of Contents section in appendix without the contents from the main paper — here is how you can do it.

```
\appendix
\clearpage % Start on a new page

% Local command to print the header without affecting ToC or bookmarks
\newcommand{\localheader}[1]{%
  \vspace*{-\topskip}\vspace*{\dimexpr\topskip-\baselineskip\relax}
  {\large\bfseries #1\par}
  \vspace{\baselineskip}
}

% Print the local header
\localheader{Appendix Contents}

\begin{center}
\begin{minipage}{0.9\textwidth}
    \startcontents[appendix] % Start a new table of contents for the appendix
    \printcontents[appendix]{}{0}{% Print the appendix ToC
        \renewcommand{\contentsname}{}% Remove default "Contents" heading
    }
\end{minipage}
\end{center}
```

[![Only appendix as table of contents](https://mimansajaiswal.github.io/_astro/Untitled.BVEr4YGD_ZLSKVc.webp)](https://mimansajaiswal.github.io/_astro/Untitled.BVEr4YGD_ZLSKVc.webp)

Only appendix as table of contents

The good part is that it still maintains proper bookmarks in the exported pdf — and you can still use `\tabaleofcontents` while drafting to get the complete Table of Contents.

[![Complete table of contents](https://mimansajaiswal.github.io/_astro/Untitled.heanpgjy_eJTxO.webp)](https://mimansajaiswal.github.io/_astro/Untitled.heanpgjy_eJTxO.webp)

Complete table of contents

* * *

## Cite This Page

```
@article{jaiswal2024showonlyappendi,
  title   = {Show Only Appendix ToC},
  author  = {Jaiswal, Mimansa},
  journal = {mimansajaiswal.github.io},
  year    = {2024},
  month   = {Aug},
  url     = {https://mimansajaiswal.github.io/posts/show-only-appendix-toc/}
}
```