ceurws / ceur-make

A set of scripts to semi-automatically generate workshop proceedings for CEUR-WS.org
GNU General Public License v3.0
14 stars 4 forks source link

Custom page number offset in toc.xml #1

Open clange opened 11 years ago

clange commented 11 years ago

Depending on how one generates the proceedings volume from toc.xml (via toc.tex), the first paper doesn't start on page 1, as a title page, table of contents, etc. might occur before. As the page numbering in toc.xml (which are taken from EasyChair) propagates to ceur-ws/temp.bib as well as ceur-ws/index.html, it would make sense to specify an offset (e.g. “5 pages”), which is respected when generating toc.xml.

clange commented 11 years ago

The first workaround is to turn the pages preceding the actual papers into an explicit “front matter”:

\documentclass{book} % or some other book-like document class
...
\begin{document}
\frontmatter
\maketitle
\chapter*{Preface}
...
\tableofcontents
\mainmatter
\input{toc}
\end{document}

The front-matter pages will usually have Roman numbers.

clange commented 11 years ago

The second workaround is to add an offset to the page numbers in toc.xml by search and replace. For example, in Emacs the following regular expression does the trick (assuming an offset of 5):

Note that \, in replacement strings starts a Lisp expression.