Page LayoutMultibib: Wrong page numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
rage4
Posts: 2
Joined: Tue Aug 10, 2010 10:14 am

Multibib: Wrong page numbering

Post by rage4 »

Hi,

I have two separated bibliographies (for print and online references) organized by multibib. Additionally I want to have both of them mentioned in my table of contents, but somehow the page numbering there is wrong. Hope someone can give me a little advice how to solve that.

Best regards,
Martin

Code: Select all

% -*- mode: latex; coding: utf-8 -*-

\begin{filecontents}{int.bib} 
@misc{Mayer.2008,
 author = {Mayer, Marissa},
 year = {2008},
 title = {Keynote...},
}
\end{filecontents}

\begin{filecontents}{lit.bib} 
@incollection{Connet.2004,
 author = {Connet, Brian},
 title = {The Integrated Marketing Communication Mix},
 year = {2004},
}
\end{filecontents}

\documentclass[a4paper,12pt,twoside,openright,numbers=noenddot]{scrreprt}

\usepackage{natbib} 
\usepackage{multibib} 
\newcites{lit}{Printmedien}
\newcites{int}{Online-Quellen}

\begin{document}
\tableofcontents 

\chapter{Einleitung}

balbalbalbalba \citelit{Connet.2004} 
asdfasdfasdfasdsf \citeint{Mayer.2008}

\chapter{Literaturverzeichnis}
\addcontentsline{toc}{section}{Printmedien} 

\bibliographystylelit{dcu_url} 
\bibliographylit{lit} 
  
\addcontentsline{toc}{section}{Online-Quellen} 

\bibliographystyleint{dcu_url} 
\bibliographyint{int}

\end{document}
Last edited by rage4 on Wed Aug 11, 2010 11:49 am, edited 1 time in total.

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Multibib: Wrong page numbering

Post by localghost »

At first many thanks for the very good example. It made working out a solution very easy.

A \cleardoublepage command at the appropriate places should do the trick.

Code: Select all

\begin{filecontents*}{int.bib}
@misc{Mayer.2008,
author = {Mayer, Marissa},
year = {2008},
title = {Keynote...},
}
\end{filecontents*}

\begin{filecontents*}{lit.bib}
@incollection{Connet.2004,
author = {Connet, Brian},
title = {The Integrated Marketing Communication Mix},
year = {2004},
}
\end{filecontents*}

\documentclass[%
  fontsize=12pt,
  paper=a4,
  numbers=noenddot,
  open=right,
  twoside=on
]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{%
  adieresis={ä},
  germandbls={ß},
  Euro={€}
}
\usepackage[ngerman]{babel}
\usepackage{natbib}
\usepackage{multibib}
\newcites{lit}{Printmedien}
\newcites{int}{Online-Quellen}

\begin{document}
  \tableofcontents

  \chapter{Einleitung}
    Zitat aus »Printmedien« \citelit{Connet.2004}.
    Zitat aus »Online"=Quellen« \citeint{Mayer.2008}.

  \chapter{Literaturverzeichnis}
    \cleardoublepage
    \addcontentsline{toc}{section}{Printmedien}
    \bibliographystylelit{dcu}
    \bibliographylit{lit}

    \cleardoublepage
    \addcontentsline{toc}{section}{Online"=Quellen}
    \bibliographystyleint{dcu}
    \bibliographyint{int}
\end{document}

Best regards and welcome to the board
Thorsten
rage4
Posts: 2
Joined: Tue Aug 10, 2010 10:14 am

Re: Multibib: Wrong page numbering

Post by rage4 »

Hi Thorsten,

thank you very much. Finally I could really use multbib for my thesis. :)

Martin
Post Reply