tableofcontents

hide an entry from Toc in latex

心不动则不痛 提交于 2019-11-29 23:40:08
I would like to know how I can hide a section from the table of contents but without loosing the section number in the body of the document. For example, in this tex file I loose the number for hide , and all the sequences are damaged: \documentclass{article} \begin{document} \tableofcontents \section{uno} \section{dos} \section*{hide} \section{tres} \end{document} I think you are looking for \section*{hide} \addtocounter{section}{1} or make it into a command: \newcommand{\toclesssection}[1]{\section*{#1}\addtocounter{section}{1}} EDIT: Okay, I think I understand what is wanted now (and it

Pandoc - Inserting pages before generated Table of Contents

不羁岁月 提交于 2019-11-29 05:59:00
I've been playing around with Pandoc. Is there anyway to insert pages before the generated Table of Contents? For example: Title Page Insert Custom Page 001 Insert Custom Page 002 (Generated) Table of Contents Many thanks in advance! For this answer, I'm going to assume you are generating markdown, though the process is the same for other file formats as well. The key insight is that Pandoc uses templates to determine the final placement. It has default templates and if you modify them, you can change the order of sections. Find the default template > pandoc -D markdown $if(titleblock)$