I'm new to LaTeX, so I might be making a very simple mistake, but I can't seem to get my publications to show up on my CV. I'm using the moderncv
and multibib
packages and MiKTeX. Here's a simplifi:
The references are in a file called publication.bib
:
@article{article1,
title={Article 1},
author={Doe, J.},
year={2012},
journal={Journal}
}
@book{book1,
title={Book 1},
author={Doe, J.},
year={2012},
publisher={Publisher}
}
And the CV.tex
file looks like this:
\documentclass[11pt,letterpaper,sans]{moderncv}
\moderncvstyle{banking}
\usepackage{apacite}
\usepackage[scale=0.75]{geometry}
\firstname{John}
\familyname{Doe}
\address{somewhere}{}
\usepackage{multibib}
\newcites{article,book}{{Articles},{Books}}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\makecvtitle
% Publications from a BibTeX file using the multibib package
\section{Publications}
\nocitebook{book1}
\bibliographystylebook{plain}
\bibliographybook{publication.bib}
\nocitearticle{article1}
\bibliographystylearticle{apacite}
\bibliographyarticle{publication.bib}
\clearpage
\end{document}
When I typeset it, the header, etc. all come out right, but the Publications section is empty. What am I doing wrong?
Best Answer
Your MWE nearly works for me as is (see note below), but you must run the following commands
Note that the
plain
style gives the errorundefined control sequence \@listctr
which can be fixed by usingNote that you may have to remove the auxiliary files first.
Following the comments, this process can be streamlined using
TeXworks
as detailed in Multibib with TeXworks: how to parse second .aux file?Note that
MiKTeX
is yourTeX
distribution; it is responsible for the executable, package, and class files, but your IDE is responsible for running commands unless you want to use the command line/DOS prompt.