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}