Page LayoutChapter number issue

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bond
Posts: 3
Joined: Wed Apr 08, 2009 8:23 pm

Chapter number issue

Post by bond »

Hi!

I am facing a weird issue with chapter marking in the final generated PDF. My requirement is to have preface, acknowledgements, etc. before the ToC and then a 'List of Abbreviations' chapter before the main matter starts. The matter before the main chapters should be numbered in roman numerals. The configuration that I use to achieve this is attached, along with the class file that I am using. I use pdflatex to process my document (original has figures, pictures etc.). When you do that, notice the chapter structure shown in the PDF reader: everything is fine till 'contents' however, after that, the main matter is somehow seen as a sub-section of the 'list of abbreviations' chapter. Any tips?

Thanks a ton!

-Bond
Attachments
tmyclass.cls
Class file
(4.06 KiB) Downloaded 284 times
test.tex
Main TeX file
(2.52 KiB) Downloaded 296 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: Chapter number issue

Post by Stefan Kottwitz »

Hi Bond,

welcome to the board!

Try \phantomsection directly before the first \chapter call to fix the pdf bookmark problem.

Stefan
LaTeX.org admin
bond
Posts: 3
Joined: Wed Apr 08, 2009 8:23 pm

Re: Chapter number issue

Post by bond »

Thanks Stefan. I had to insert \phantomsection before each subsequent chapter call otherwise the problem was just passed from one section to another. Anyway, thank you very much for the helpful tip - it worked :)

- Bond
Post Reply