The possibility to add publications from several bib files

Asked by Andrey Sobolev

Dear Xavier,

Thank you for the moderncv package, it looks very good. But, while creating my CV with it I came across a problem. The problem is that I store my publications in several bib files (one for articles in peer-reviewed journals, one for conference proceedings etc.) I want these publications appear in the CV in section "Publications" under relevant subtitles. Unfortunately, there seems to be no easy way to do it. Every package that allows making several bibliographies in one document (I'm aware of bibtopic, multibib and biblatex) seems to be incompatible with moderncv.

So, is there some way to solve the problem? I'd be very grateful for any help.

Andrey Sobolev

Question information

English Edit question
moderncv Edit question
No assignee Edit question
Solved by:
Xavier Danaux
Last query:
Last reply:
Revision history for this message
Best Xavier Danaux (xdanaux) said :

Hi Andrey,

You are probably using an old version of moderncv, as the latest version (available on CTAN) is fully compatible with multibib.

Once you have the latest version, there is just one thing that may/need to be tweaked: ensuring the different "bibliographies" appear as subsections of a more general "Publications" section. Basically, you can just copy moderncv's definition of the environment, and replace the call to \section by a call to \subsection, i.e.
    \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%

Once that is done in the header of your file (i.e. before \begin{document}), let's say you want to separate books from other publications. You then just need to tell moderncv to use multibib accordingly in the header of your resumé:

and add something like the next couple of lines in the main part of your .tex file
\nocitebook{book1,book2} % cite your books
\bibliographybook{publications} % 'publications' is the name of a BibTeX file
\nocitemisc{misc1,misc2,misc3} % cite other elements
\bibliographymisc{publications} % 'publications' is the name of a BibTeX file

If you have any more question, don't hesitate to shout back.
Good luck!

Revision history for this message
Andrey Sobolev (inconnu) said :

Thank you very much for you help, now everything works as expected!

Revision history for this message
Xavier Danaux (xdanaux) said :

You're most welcome :-)

Revision history for this message
Andrew Corrigan (acorriga) said :

I tried just this, but I cannot reproduce template_multibib.pdf, instead I get a blank publications section (I uncommented the sections related to multibib from template.tex in the latest verion of moderncv). This occurred both in Ubuntu 10.04 (at home) and on a Mac (at work). I compiled with the usual sequence of pdflatex and bibtex, as well as using rubber -d. Is this feature still working? Could anyone share an example .tex that is working for them. Thanks!

Revision history for this message
Xavier Danaux (xdanaux) said :

Hi Andrew,

The template found on ctan is definitely working, and there is no need to manually add the lines of code from above since version 0.8 (usage of multibib is detected by the package and the bibliography is automatically modified).
However, the compilation sequence when using multibib is slightly different from usual as you have to call bibtex for every bibliography category you are using.

For example, in template_multibib.tex, 2 bibliographical catergories are defined: book and misc. The compilation sequence is therefore as follows:
(pdf)latex template_multibib.tex
bibtex book
bibtex misc
(pdf)latex template_multibib.tex
(pdf)latex template_multibib.tex

Kind regards,


Revision history for this message
Andrew Corrigan (acorriga) said :

Thanks Xavier. I just needed to call bibtex as you described, and now it's working.