Generalpdf BOOKMARKS shift and FRONTMATTER headings

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
roescu
Posts: 6
Joined: Fri Sep 28, 2007 1:59 am

pdf BOOKMARKS shift and FRONTMATTER headings

Post by roescu »

Hi,
i have two different problems related with the frontmatter. I have searched the internet to find a solution but I couldn't find.
I want to create a document, book style, with contents page after a dedication one. After the contents I want to include a list of tables, list of figures, list of symbols and a list of abbreviations. I use the following code for this (see the end of the post).
The errors or let's call them inconsistencies are:
1. list of abbreviations and list of symbols are interpreted as being part of the list of tables, therefore I get a wrong header for abbreviation and symbol list
2 the pdf bookmarks are not correct for the \frontmatter but only for \mainmatter. This can be seen also when one tries to navigate to list of abbreviations for example from the TOC

What should I do to correct these things?
Thanks,
roescu

Code: Select all

\documentclass[12pt, a4paper, openany]{book}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[resetfonts]{cmap}

\usepackage[pdftex,plainpages=false,pdfauthor={ror},pdftitle={ test },pdfdisplaydoctitle=true,pdfcreator={pdftex},pdfsubject={something},pdfkeywords={aa,bb, cc}]{hyperref}

\begin{document}

\frontmatter
%%%
\begin{titlepage}
\noindent%
\put(4.35,-3)\Huge Title page
\end{titlepage}
%%%
    \thispagestyle{empty}
    \newenvironment{dedication}
      {%\cleardoublepage
      \thispagestyle{empty} \vspace*{\stretch{1}} \begin{center} \em}
      {\end{center} \vspace*{\stretch{3}} \clearpage}
    \begin{dedication}
    Your dedication goes here ...
    \end{dedication}
    % \cleardoublepage generates one blank page for the next 'Abstract'
    % to be on an odd page.
    \thispagestyle{empty} \cleardoublepage
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \newpage
    \renewcommand{\contentsname}{Table of Contents}  % Original name = Contents
    %\begin{spacing}{1.2}  % Environment for 1.2 line spacing for contents and lists
    \pagenumbering{roman} \setcounter{page}{1}
    \cleardoublepage
    \tableofcontents \vfill\hfill%
    \newpage
    \listoffigures%
        \addcontentsline{toc}{chapter}{List of Figures}
    \newpage
    \listoftables%
        \addcontentsline{toc}{chapter}{List of Tables}
    \newpage
    \addcontentsline{toc}{chapter}{List of Symbols}
            \vspace*{2.52cm} \hspace*{-0.88cm} \textbf{{\Huge List of Symbols}\\} \vspace*{0.5cm}
                %\begin{tabbing}
                %  ... ... ...
                %\end{tabbing}
    \newpage
    \addcontentsline{toc}{chapter}{List of Abbreviations}
            \vspace*{2.52cm} \hspace*{-0.88cm} \textbf{{\Huge List of Abbreviations}\\} \vspace*{0.5cm}
                %\begin{tabbing}
                %  ... ... ...
                %\end{tabbing}
    \newpage
    %\cleardoublepage
    %\end{spacing}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %   Arabic numbering after this                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \pagenumbering{arabic} \setcounter{page}{1}



\mainmatter
%%%
\chapter{First Chapter}
\thispagestyle{empty}
\section{First section}\Blindtext
\section{Second section} \Blindtext
\section{Third section} \Blindtext
\chapter{Second Chapter}
\thispagestyle{empty}
\section{First section}\Blindtext
\section{Second section} \Blindtext
\section{Third section} \Blindtext \blindtext
\chapter{Third Chapter}
\thispagestyle{empty}
\section{First section}\Blindtext
\section{Second section} \Blindtext
\section{Third section} \Blindtext

\backmatter

\end{document}

Recommended reading 2024:

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

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

roescu
Posts: 6
Joined: Fri Sep 28, 2007 1:59 am

Re: pdf BOOKMARKS shift and FRONTMATTER headings

Post by roescu »

Waiting for some help, I have spent time fooling around to solve the problem.
My approach was to declare "chapters" in frontmatter.
In this way, both headings and bookmarks are as they should be
:roll:
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

pdf BOOKMARKS shift and FRONTMATTER headings

Post by gmedina »

Just for the sense of completion:
roescu wrote: Waiting for some help, I have spent time fooling around to solve the problem...

Apparently, this particular problem has been solved here.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply