pandoc-latex-template icon indicating copy to clipboard operation
pandoc-latex-template copied to clipboard

Make page after toc page 1

Open abers opened this issue 5 years ago • 5 comments

Is there a line that can be added to the YAML or the tex file so that the page number starts from the first page after the table of contents?

abers avatar Jul 13 '19 22:07 abers

I've been using

header-includes:
  - \setcounter{page}{0} # So that the titlepage is the zeroth page

for the title page. I haven't tried this with the TOC though.

ConnorBaker avatar Aug 25 '19 23:08 ConnorBaker

Thanks for the reply. Sadly using a title page and TOC it makes the title page jump around - it seems to be set to always be on page 1. Also, need to remove page number from bottom of initial pages.

Assuming need to setcounter, change page counter that title page appears, and add if statement to not show page number on pages 0 or below.

abers avatar Aug 29 '19 13:08 abers

it seems to me, that in the default pandoc latex template \frontmatter is used before \maketitle, which would resolve the numbering issue.

for the time beeing i used in https://github.com/cagix/pandoc-thesis something like this as a workaround:

\usepackage{xpatch}
\xapptocmd{\frontmatter}{\setcounter{page}{3}}{}{}

(to be used as "header-include")

cagix avatar Oct 15 '19 08:10 cagix

Bump, it'd be really neat with a flag for setting the page after title, and, if any, the TOC, to be page 1. Furthermore, the page in the footer would be excluded on the TOC page.

modestotech avatar Nov 30 '19 20:11 modestotech

Hello, I would like this for generating word files from markdown as well.

frastlin avatar Dec 09 '22 22:12 frastlin