0

I want to separate my bibliography in two parts: 1) Articles, books, etc. 2) Webpages.

I am using multibib, but something is wrong. When I run my Latex, it only shows the first bibliography.

I have tried to select a single piece of my latex doc, and tried run it separate. For this part it works.

My document is as follow:

\documentclass[12pt,danish,a4paper]{article}
\usepackage[danish]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{float}
\usepackage{lastpage}
\usepackage{enumerate}
\usepackage{booktabs}
\setcounter{secnumdepth}{5}
\usepackage[font={small,it}]{caption}
\setcounter{tocdepth}{5}
\usepackage[hidelinks]{hyperref}
\usepackage{color}
\usepackage{enumitem}
\usepackage[top=3cm, bottom=3cm, left=2cm, right=2cm]{geometry}
\usepackage{setspace}
\usepackage[round]{natbib}
\usepackage{titlesec}
\usepackage[table,xcdraw]{xcolor}
\numberwithin{equation}{section}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\chead{\emph{Title of text}}
\cfoot{\thepage\ of \pageref{mylastpage}}
\linespread{1.5}
\usepackage{setspace}
\usepackage{array,booktabs,tabularx}
\newcolumntype{L}{>{\arraybackslash}X} 
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[toc,page]{appendix}
\usepackage{multibib}
\newcites{web}{Webpages)

\begin{document}

text... \cite{xxx}, \citeweb{xxxx}.

\newpage
\bibliographystyle{agsm}
\bibliography{Litterature}

\bibliographystyleweb{agsm}
\bibliographyweb{Litterature}

\end{document} 

Is there something wrong with the preamble? It seems like something is annoying my second bibliography, although im not getting any errors?

  • I am using bibtex, by the way. – Christine Sep 4 '16 at 18:37
  • There is a typo in your code \newcites should end with } not ). Leaving this aside: Are you running bibtex on web.aux? – DG' Sep 4 '16 at 19:11
  • Im not sure what you mean by running web.aux? Do I have to make two separate bibtex files, in order make two separate bibliography? I only have a bibtex file called Litterature, but have runned bibtex several times on that. – Christine Sep 5 '16 at 9:58
  • According to the documentation, you have tor run bibtex for each bibliography created by \newcites. In your case this is web. – DG' Sep 5 '16 at 15:23
0

According to the multibib-documentation you have to run bibtex for each additional bibliography created by \newcites. You are creating one additional bibliography called "web" with \newcites{web}{Webpages). So you have to run (assuming your document is called yourdoc.tex):

pdflatex yourdoc
bibtex yourdoc
bibtex web
pdflatex yourdoc
pdflatex yourdoc

If you don't want to run bibtex manually, you can use latexmk, which is able to handle multibib.

  • I have now created two separate bibtex files. One called "Literature" and one called "Web". When I run my doc and bibtex as you described, it still doesn't work. It only shows "Literature". Also, bibtex "web" doesn't show up in my structure. – Christine Sep 6 '16 at 8:19
  • 1
    You do not have to create two bibtex files. You just have to run bibtex twice, i.e. once for each .aux-file. – DG' Sep 6 '16 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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