I am trying to put a publication list using BibTex into resume. But I do not know why it does not compile?. Here is my effort.

Following is the code that I want to use BibTex for its publication list

   % LaTeX file for resume 
% This file uses the resume document class (res.cls)

%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent}   % uses new century schoolbook postscript font 
\newsectionwidth{0pt}  % So the text is not indented under section headings
\usepackage{fancyhdr}  % use this package to get a 2 line header
\renewcommand{\headrulewidth}{0pt} % suppress line drawn by default by fancyhdr
\setlength{\headheight}{24pt} % allow room for 2-line header
\setlength{\headsep}{24pt}  % space between header and text
\setlength{\headheight}{24pt} % allow room for 2-line header
\pagestyle{fancy}     % set pagestyle for document
\rhead{ {\it J. Razi}\\{\it p. \thepage} } % put text in header (right side)
\cfooJ. Razit{}                                     % the foot is empty
\topmargin=-0.5in % start text higher on the page

\thispagestyle{empty} % this page has no header  
\name{Jack Razi\\[12pt]}% the \\[12pt] adds a blank line after name

{\bf School Address} \\ {NDT Group }\\Department of Civil Engineering and Engineering mechanics\\
  University of Arizona \\   Tucson, AZ 85719 \\ (520) 258-1762}    


\vspace{8pt} % provide vertical space between section title and contents
Applying for Whitenack, Dr. Russell D. Scholarship

{\sl Doctor of Philosophy}, Engineering mechanics\\
University of Arizona, Tucson, Arizona \hspace{0.2in}  GPA 3.5 \hfill May 2017 \\
Dissertation - Peridynamic model for fatigue crack growth\\
Advisor : Prof. Tribikram Kundu (University of California, Los Angles, 1983)

{\sl Master of Science}, Mechanical and Materials Engineering \\
National University of Malaysia, Bangi, Selangore \hspace{0.2in}  GPA 4.00 \hfill November 2011 \\
THESIS - Fatigue crack failure of metallic components under variable amplitude loadings\\
 Advisor : Prof Nik Abdullah (Tech. University Berlin, Germany, 1991)\\

{\sl Bachelor of Science}, Mechanical Engineering - Solid mechanics \\ % \sl will be bold italic in
                     % New Century Schoolbook (or
                     % any postscript font) and
                     % just slanted in Computer
                     % Modern (default) font
                     Top 3.5\%,  out of 450,000 applicants in University Entrance National Exam (2002) \\
Tehran, Iran (Islamic Republic of)      \hfill    February 2007

\section{\centerline{PROFESSIONAL EXPERIENCE}} 
{\sl Bahman (Mazda motor) Co} \hfill        2007-2009 \\
Product Engineering Devision, Tehran, Iran       \hfill   (Product Engineer)

   \begin{itemize} \itemsep -2pt % reduce space between items
   \item  Working with a core team and internal and external customers to improve design, simulation, processing, and experimental techniques. 
   \item Developed and carried out simulation and experiments to investigate failure modes in components. 
  \item  Developed a full finite element analysis of the radiator shroud with ANSYS in order to find the weakest areas. Fatigue analysis was conducted and a new design was proposed.

{\sl Iran Air} \hfill  May-Aug 2006 \\
Mechanical workshops, Engineering \& Maintenance Department, Tehran, Iran \hfill (Engineering Intern)
  \item  Technical courses including knowledge and practical training facilitated by Mechanical Workshops. 

{\sl Bahman Co } \hfill  May-Aug 2005 \\
R\&D Devison, Tehran, Iran \hfill (Engineering Intern)
  \item  Accurate use of a coordinate measuring machine (CMM with ROMER) 


\section{\centerline{ COMPUTING SKILLS }}
Experienced in ANSYS,  Abaqus,  Matlab,  Fortran, LaTeX


J. Razi, T. Kundu, Crack propagation modeling using Peridynamic theory, Health Monitoring of Structural and Biological Systems X, SPIE 2016; Las Vegas; United States\

J. Razi, T. Kundu, Peridynamic modeling for mortar and shape memory alloy mix, Health Monitoring of Structural and Biological Systems X,SPIE 2016; Las Vegas; United States\

\vspace{-5pt} % reduce space between section title and contents
      American Society of Mechanical Engineering (ASME) \\
       International Society of Optical Engineering (SPIE) \\ 


  Research Assistant, University of Arizona (Aug 2013 - May2016)  \\
                  Teaching Assistant, University of Arizona (Aug 2013 - May 2015) \\
              Science Foundation of Ireland Fellowship (Aug 2012 - July 2013) \\
              (SFI Fellowship Award to be a highly significant accomplishment) \\
              Research honorarium, University of Malaya (March 2012 - July 2012)\\
              Graduate Research Assistant, National University of Malaysia (Aug 2009 - March 2012)


Swimming, Traveling 


    \item \bibentry{knuth1986}
    \item \bibentry{lamport1986}

  • Kurt's answers seem to give what the desired result. I've added another option using bibentry in my answer below.
    – jak123
    Mar 5, 2016 at 4:15
  • This isn't what you are asking but, and hear me out, maybe you should just link to your ORCID publications list. If you are applying for a very academic job or a grant they usually ask you to attach a list of your five most relevant publications anyway. In a separate document. I have mine in the homepage part of the modernCV package / template.
    – grofte
    Oct 31, 2017 at 7:06

2 Answers 2


You can use the bibentry package with \nobibliography. Here is a MWE with references stored in ref.bib file:


    \item \bibentry{knuth1986}
    \item \bibentry{lamport1986}

enter image description here

  • @Mohammad I'm not an expert on the inner workings of TeX, but I think aux files are part of the compilation process and not class specific.
    – jak123
    Mar 5, 2016 at 8:42
  • @Mohammad I have added the res.cls class and it seems to work fine for bilbliography. Check the link again.
    – jak123
    Mar 5, 2016 at 11:20
  • 11
    Could you include your .bib file ? I get a LaTeX Error: Lonely \item--perhaps a missing list environment. Feb 21, 2018 at 10:56
  • 2
    adding \usepackage{natbib} fixed the "Lonely \item" error.
    – Boson Bear
    Jul 17, 2021 at 19:56
  • 1
    also, when used with other .bst files, such as utphys, natbib needs to be loaded with the following params: \usepackage[square,sort,comma,numbers]{natbib}. See tex.stackexchange.com/a/75015/171313
    – Boson Bear
    Jul 17, 2021 at 20:21

I put together a minimal working example (MWE) for generating a list of publications (e.g. for an academic cv) from Bibtex entries that additionally enables splitting publications into different sections (peer-reviewed, conference abstracts, ...) as well as adding links to the pdf and using your favourite citation style.

The github repo can be found here: https://github.com/rgeirhos/academic-cv-publications, it contains some additional information and a minimal cv.

The LaTeX code is here:


% You'll need to generate a .bbl file from
% the .bib file first, otherwise the publications
% will not show up in the cv.

% in TeXstudio, this means
% 1. F1 or F6 for usual compiling (generate .aux)
% 1. F8 for bibliography compiling (generate .bbl)
% 2. F1 or F6 for usual compiling once more(generate .pdf)

% use your favourite citation style here


% as bibentry and hyperref clash in some cases, this is a workaround
% as suggested by the following two links:
% and

% hanging publications: 1st line starts at beginning of line, 
% further lines are placed a bit to the right


    % bibliography


    % optional: split into different subsections for
    % peer-reviewed articles, conference abstracts, ...

    % example with links
        (\href{https://arxiv.org/abs/1706.06969}{link}, \href{https://arxiv.org/pdf/1706.06969.pdf}{pdf}, \href{https://github.com/rgeirhos/object-recognition}{data and materials})

    % example without links

    % the cumbersome way
%   \hangpara{1.5em}{1}Knuth, D. E. (1998). 
%   \textit{The art of computer programming: sorting and searching} (Vol. 3). Pearson Education.


With the following .bib file entries (should be named publications.bib):

  title={Comparing deep neural networks against humans: object recognition when the signal gets weaker},
  author={Geirhos, Robert and Janssen, David HJ and Sch{\"u}tt, Heiko H and Rauber, Jonas and Bethge, Matthias and Wichmann, Felix A},
  journal={arXiv preprint arXiv:1706.06969},

  title={The art of computer programming: sorting and searching},
  author={Knuth, Donald Ervin},
  publisher={Pearson Education}}
  • 2
    Welcome to TeX.SX! This does not really answer the question in its current state. Answers in this network should be self-contained (not link-only) and in this case clearly contain the code (with some explanations).
    – TeXnician
    Aug 14, 2017 at 19:32
  • Thanks @TeXnician for pointing this out, I updated my answer and included the code (with comments).
    – Ergee
    Aug 14, 2017 at 20:11
  • I tried this but I am getting bibtex returned exit code 1 any suggestion?
    – zhk
    Nov 20, 2017 at 14:00
  • 1
    @zhk have you successfully generated a .bbl file from the .bib file?
    – Ergee
    Nov 21, 2017 at 18:00
  • @Ergee Problem solved. Thx
    – zhk
    Nov 22, 2017 at 3:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .