Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I get the 'List of tables' title as a right page heading. How do I fix that?

    \documentclass[10pt,cleardoublepage=empty,twoside]{book}

\makeatletter
\def\ps@headings{%
    \let\@oddfoot\@empty
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\markboth
    \def\chaptermark##1{%
      \markright {{%                                    %%% original \MakeUppercase
        \ifnum \c@secnumdepth >\m@ne
            \@chapapp\ \thechapter. \ %
        \fi
        ##1}}}}
\makeatother
\pagestyle{headings}
\usepackage{setspace}
\usepackage{array}
\usepackage{amsmath}
\usepackage{fixltx2e}
\usepackage{covington}
\usepackage[danish,english]{babel}
\usepackage{tipa}
\usepackage{pslatex}
\usepackage{float}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{amssymb}
\usepackage{typearea} 

\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}%per allineamento a sx delle colonne
\renewcommand{\bibname}{References} 
\usepackage{caption}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[T1]{fontenc} 
\usepackage{morefloats}
\usepackage{booktabs}
\usepackage[bottom,norule]{footmisc}
\setlength\belowcaptionskip{1\baselineskip} 
\usepackage[hidelinks]{hyperref} 
\usepackage{bookmark}

\begin{document}
\frontmatter
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat
\cleardoublepage
\pagenumbering{roman}
\tableofcontents
 \addcontentsline{file}{sec_unit}{entry}
 \addcontentsline{toc}{chapter}{\bibname}
\listoffigures
\listoftables

\mainmatter
\pagenumbering{arabic}  

\chapter{Lorem}
\section{lorem ipsum dolor sit amet}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.


\chapter{Ipsum}
\section{dolor sit amet lorem ipsum}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
\end{document}
share|improve this question
1  
Some comments: don't use pslatex which is largely obsolete, and you load mathdesign afterwards; \pagenumbering{roman} and \pagenumbering{arabic} should be removed; the two \addcontentsline commands are wrong. –  egreg Nov 20 '12 at 22:49
    
@egreg: what is wrong with \addcontentsline? What should I have instead? –  Costanza Nov 21 '12 at 10:42
1  
The \addcontentsline for the bibliography must go near the bibliography. But it's better to use the tocbibind package rather than adding it by hand. –  egreg Nov 21 '12 at 10:49
add comment

1 Answer

up vote 2 down vote accepted

Here's a way that should do what you need. I've removed many packages; add them at will, but take into consideration some facts:

  • pslatex is obsolete and you also load mathdesign
  • amssymb is not to be loaded along mathdesign
  • the IPA fonts are either compatible with Computer Modern or Times and they don't mix at all with Charter

Here is a skeleton document.

\documentclass[10pt,cleardoublepage=empty,twoside]{book}
\usepackage{fixltx2e}
\usepackage[T1]{fontenc} 
\usepackage[danish,english]{babel}
\usepackage[bitstream-charter]{mathdesign}

%\usepackage{emptypage} % uncomment for getting really empty pages

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\fancyhead[LO]{\slshape\nouppercase{\rightmark}}
\fancyhead[RE]{\slshape\nouppercase{\leftmark}}
\fancyhead[RO,LE]{\thepage}

%%% Add your packages

\usepackage[hidelinks]{hyperref} 
\usepackage{bookmark}

\usepackage{kantlipsum} % just to produce mock text

\begin{document}
\frontmatter

\thispagestyle{empty}
A Frontispiece?


\tableofcontents
\listoffigures
\listoftables

\mainmatter

\chapter{Lorem}
\section{lorem ipsum dolor sit amet}

\kant

\chapter{Ipsum}
\section{dolor sit amet lorem ipsum}

\kant

\end{document}
share|improve this answer
    
How do I download fixltx2e? I cannot find the .zip file online. –  Costanza Nov 21 '12 at 10:53
    
Also, why would you suggest I add fancyhdr? –  Costanza Nov 21 '12 at 11:02
    
The call for fixltx2e was in your example. Since fancyhdr does the job easily, why not using it? –  egreg Nov 21 '12 at 11:27
    
Yes, now I realize that, sorry. I'll use fancyhdr as you said. –  Costanza Nov 21 '12 at 11:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.