Thursday, March 3, 2011

Author per chapter (a.k.a. Proceedings)

I never understood why there is no proper Latex class for typesetting proceedings or journals when Latex or Xetex is getting increasingly popular among scientists. The biggest trouble you will have whey you will try to typeset something like this is to get the authors' names into the Table of Contents and into the headers while having each author's contribution to the volume as a chapter which shall not appear numbered anywhere.

The best (and only) template I could find was eConf Full-Text Proceeding Instructions and Templates but even these were nowhere near to what I needed because this requires you to typeset your Table of Contents manually. Yuck!

After much googling I found that there really is no good solution for typesetting a compiled volume where every \chapter would have its own author. The most useful posts in discussions recommended using the memoir.cls and modifying it as needed.

It looks like nobody has ever published his take on modyfiying the memoir.cls for typesetting proceedings or journal volumes where each chapter would have its author and the names of these authors would appear in the ToC and the headers. Therefore I publish here something which you can use right away for typesetting proceedings with authored chapters. To achieve this, my modified memoir.cls (called proceedings.cls) does following things:

  1. Disables chapter numbering and also removes the "0." before section number
  2. Writes the author and his home institute under the chapter title
  3. Does not typeset the page number on the initial page of the chapter
  4. Shows the short version of the chapter title in even head
  5. Shows the author's name in the odd head
  6. Shows the author's name above the chapter's title in the table of contents

You can have a look at an example pdf which shows such a minimal dummy proceedings containing two papers. The pdf was generated by xelatexing this source document. To compile it yourself, you will need my modified version of the document class memoir.cls which I called proceedings.cls. Put them all in one directory and compile with xelatex (at least that's what I did).

I had to refrain from using the normal \chapter command. My proceedings.cls provides you the \Chapter command (defined in lines 2844–2857) which must be used as

\Chapter{<Author's name>}{<Author's home institute>}{<Full title of the paper>}{<Short title to appear in the header>}

You will probably need to modify it when setting the vertical space between the Author's name and the Chapter title in the Table of Contents and on the title page of the paper.

I got rid of the chapter numbering the hard way by deleting it of the documentclass's commands \thechapter and \thesection (lines 2580 and 2581 of proceedings.cls)

If you would like to change anything about the headers or footers, you change that in the pagestyle proceedings which I defined in lines 2024–2039 of the proceedings.cls

I know that my solution is far from elegant because internally it uses the \chapter* command which makes chapters which don't appear in the table of contents and right after that it "manually" adds the chapter's title with the author's name to ToC. I also know that rather than replacing the chapter number with {} it would be more elegant not to let typeset it at all. I also wish I could have a command like e.g. \chapterauthor which would be used as a place holder in the definition of the header and get updated with every \Chapter (or even \chapter) rather than redefining the whole header with every new \Chapter.

Alas, I have spent so many days with this that right now I am not going to spend any more time with this. If you are an experienced document class designer please do it better, publish it somewhere, and let me know. Thank you.

Unexperienced Xetex users may use and modify the proceedings.cls as they need. If you have questions where and how to modify certain things in it please ask me directly or in the comments.