Offers a style (css), java script (js), and html file setup for adding a table of contents to ar5iv-style html paper pages generated with ar5ivist.
- Generate the html with ar5ivist like it is explained in their repository.
- Add to the generated head:
<head>
...
<link rel="stylesheet" href="paper-layout.css" type="text/css">
<script src="paper-toc.js" defer></script>
...
</head>
- Add to the generated body:
<body>
<div class="paper-layout">
<aside class="paper-toc" aria-label="Table of contents">
<nav id="paper-toc">
<div class="paper-toc-title">Contents</div>
</nav>
</aside>
<main class="paper-content" id="paper-content">
# Put here the body content of your generated html
</main>
</div>
</body>
- Usage of the ar5ivist-tableofcontents, and visit of external links, on your own risk. The author doesn't take any responsibility for possible damage.
