Curricula Vitae / RésumésProblems with Bibliography

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
annageyer
Posts: 1
Joined: Wed Feb 03, 2016 6:16 pm

Problems with Bibliography

Post by annageyer »

Hey all, I am using the CV template moderncv.cls and I am having troubles with the bibliography.

In the list of papers the numbers before the authors don't appear!

any ideas on how to fix this?

thanks!!

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% "ModernCV" CV and Cover Letter
% LaTeX Template
% Version 1.11 (19/6/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Xavier Danaux (xdanaux@gmail.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template requires the moderncv.cls and .sty files to be in the same 
% directory as this .tex file. These files provide the resume style and themes 
% used for structuring the document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{classic} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage{lipsum}
\usepackage[german, english]{babel}
\usepackage[utf8x]{inputenc}

\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name

%----------------------------------------------------------------------------------------
%	NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{This is} % Your first name
\familyname{Me} % Your last name


\title{Curriculum Vitae}

\address{Faculty of Mathematics, University of Vienna}{Oskar-Morgenstern-Platz 1}{1090 Vienna, Austria}
%\phone{+43 650 6265 911}
\email{anna.geyer@univie.ac.at}
\homepage{annageyer.wordpress.com}{annageyer.wordpress.com} % 

%----------------------------------------------------------------------------------------

\begin{document}


\section{Text}

some text with references.... \cite{Geyer2016} more text \cite{Geyer2015b}




\bibliographystyle{abbrv}

\bibliography{/Users/anna/Documents/UNI/library}   

\end{document}
This is the result I get.
This is the result I get.
Screen Shot 2016-02-03 at 17.20.54.png (128.66 KiB) Viewed 7382 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problems with Bibliography

Post by Johannes_B »

Welcome, yeah, it's true. Something gobbles the numbers, i didn't investigate why.

Alternative would be an alphabetic style, it does not happen there.
Another alternative would be adding a package that deals with bibliographies and citations (extending the code functionality), like natbib or biblatex (modern).

Code: Select all

\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}% here you have to add the name of your bib including the file ending
\defbibenvironment{bibliography}
  {\list
     {\printtext[labelnumberwidth]{%
	\printfield{prefixnumber}%
	\printfield{labelnumber}}}
     {\setlength{\labelwidth}{\hintscolumnwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}
Commands like \bibliography and bibliographystyle don't work with biblatex. Instead you use \printbiliography when you want to have your bibliography output.
Citing on a CV seems a bit odd, though.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply