I am getting 5 or 6 lines worth of blank space between two paragraphs in my CV. This blank space is due to the reference lines:


If I remove these two lines the space vanish, but also I cannot use the reference. What is a good way to keep my reference and also not have this line? The look of my document is as below:

enter image description here

A minimal short file that exhibits this issue is shown below. I have only compiled this on overleaf, I am unsure about other places, or if even that matters or not.

The .tex file contains the following lines:


\documentclass{resume} % Use the custom resume.cls style


    colorlinks = true,
    linkbordercolor = {white},
    urlcolor = blue,
\usepackage[left=0.4in,top=0.4in,right=0.4in,bottom=0.4in]{geometry} % Document margins

\name{First Name Last Name} % Your name
 % Your address



% \address{(618)~$\cdot$~525~$\cdot$~0387 \\ [email protected]}  
\address{( \\ \href{}{Email:email}}  


% \usepackage{cite}






{\bf University} \hfill {} \\ 

%------------------------Work and Industrial Experience


\begin{rSubsection}{BAU}{Oct 2015 - Nov 2015}{Industrial Trainee}{}
\item Learned the basic operation.


%------------------ Leadership


\begin{rSubsection}{ Volunter etc}{July 2016 - Oct 2016}{Instructor}{Location}
\item Developed and instructed a two month-long programming and signal processing course.

\begin{rSubsection}{Chief Organizer}{September 2016}{Competition}

\item Organized and directed the coding contest 2016 - a large scale EE event.
\item Set the contest problems and judged the event.
%------------------ PUBLICATIONS



\begin{rSubsection}{Peer-Reviewed Publications}{}{}{}





The .cls file is here:

% Medium Length Professional CV - RESUME CLASS FILE
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
% This class file defines the structure and design of the template. 
% Original header:
% Copyright (C) 2010 by Trey Hunner
% Copying and distribution of this file, with or without modification,
% are permitted in any medium without royalty provided the copyright
% notice and this notice are preserved. This file is offered as-is,
% without any warranty.
% Created by Trey Hunner and modified by www.LaTeXTemplates.com

\ProvidesClass{resume}[2010/07/10 v0.9 Resume class]

\LoadClass[9pt,letterpaper]{article} % Font size and paper type

\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
\usepackage{ifthen} % Required for ifthenelse statements

\pagestyle{empty} % Suppress page numbers

%   HEADINGS COMMANDS: Commands for printing name and address

\def \name#1{\def\@name{#1}} % Defines the \name command to set name
\def \@name {} % Sets \@name to empty by default

\def \addressSep {$\diamond$} % Set default address separator to a diamond

% One, two or three address lines can be specified 
\let \@addressone \relax
\let \@addresstwo \relax
\let \@addressthree \relax

% \address command can be used to set the first, second, and third address (last 2 optional)
\def \address #1{
    \def \@addresstwo {#1}
  \def \@addressthree {#1}
     \def \@addressone {#1}

% \printaddress is used to style an address line (given as input)
\def \printaddress #1{
    \def \\ {\addressSep\ }

% \printname is used to print the name as a page header
\def \printname {
    \hfil{\MakeUppercase{\namesize\bf \@name}}\hfil


  \ori@document  % Begin document
  \printname % Print the name specified with \name
  \@ifundefined{@addressone}{}{ % Print the first address if specified
  \@ifundefined{@addresstwo}{}{ % Print the second address if specified
     \@ifundefined{@addressthree}{}{ % Print the third address if specified


% Defines the rSection environment for the large sections within the CV
\newenvironment{rSection}[1]{ % 1 input argument - section name
  \MakeUppercase{\bf #1} % Section title
  \hrule % Horizontal line
  \begin{list}{}{ % List for each individual item in the section
    \setlength{\leftmargin}{1.5em} % Margin within the section


\newenvironment{rSubsection}[4]{ % 4 input arguments - company name, year(s) employed, job title and location
 {\bf #1} \hfill {#2} % Bold company name and date on the right
 \ifthenelse{\equal{#3}{}}{}{ % If the third argument is not specified, don't print the job title and location line
  {\em #3} \hfill {\em #4} % Italic job title and location
  \begin{list}{$\cdot$}{\leftmargin=0em} % \cdot used for bullets, no indentation
   \itemsep -0.5em \vspace{-0.5em} % Compress items in list together for aesthetics
  \vspace{0.5em} % Some space after the list of bullet points

% The below commands define the whitespace after certain things in the document - they can be \smallskip, \medskip or \bigskip
\def\namesize{\huge} % Size of the name at the top of the document
\def\addressskip{\smallskip} % The space between the two address (or phone/email) lines
\def\sectionlineskip{\smallskip % The space above the horizontal line for each section 
\def\nameskip{\bigskip} % The space after your name at the top
\def\sectionskip{\medskip} % The space after the heading section

And Finally, the Bibliography .bib file is here:

  title={Title of the paper in Conference},
  author={FirstName LastName and FirstName LastName and FirstName LastName },
  journal={IEEE ICEECS 2018, Conference.},

  title={Title of the paper in Conference},
  author={ FirstName LastName and FirstName LastName and FirstName LastName},
  journal={IEEE R10HTC 2017, Conference},

  title={Metal nanoparticle enhanced light absorption in GaAs thin-film solar cell.},
  author={FirstName LastName and FirstName LastName and FirstName LastName},
  publisher={Pearson Education}}
  • 1
    Welcome to TeX.SE! We need a bit more information to answer the question. The rSection environment is not standard, so you are using a custom class or package. This can influence the vertical spacing. Please post a small complete document, starting with \documentclass, then packages (if any), \begin{document}, then the first subsection, the bibliography, the second subsection, \end{document}. Make sure it can be compiled and it shows the issue that you ask about. This will make it much easier to diagnose the problem.
    – Marijn
    Commented Nov 23, 2019 at 8:27
  • Hi! I know it's late, but I have a very concise version of the problem in this overleaf project: overleaf.com/1715488292dcqssymnhfct Using more references causes more space before the reference section (it seems like!). So, if I just leave the first reference only and comment out the rest, there won't be any space. Please take a look if you can. Thanks for your time!
    – Rio1210
    Commented Dec 6, 2019 at 23:25
  • Thanks for your reply. However, we like questions on this site to be as self-contained as possible, without references to external sources. There are several reasons for that: first a external resource can go down or change, at which point the question is no longer useful for future visitors, second it is much easier to check for other visitors if your question is related to their own problem and/or interest if the code is in the question itself, and third the person asking the question should make it as easy as possible for potential answerers to understand the question,
    – Marijn
    Commented Dec 8, 2019 at 12:18
  • and going to an external site which requires an account does not help with that. So if you can post the code of your example Overleaf project here in the question (by pressing the edit button) then the question will become more useful and easier to answer.
    – Marijn
    Commented Dec 8, 2019 at 12:19
  • 1
    Thanks, this is much better. I don't have time to fully investigate the issue now, but I saw a few small things. At the end of resume.cls on line 129 there is a } missing after \smallskip. This causes an error, maybe you compile in batchmode, which ignores errors? That may cause the wrong output. Also, in the .tex file there are duplicate entries for \usepackage{hyperref} and \usepackage{geometry}, which cause option clash errors, and a separate error for the first hypersetup line complaining about linkbordercolor = {white}.
    – Marijn
    Commented Dec 9, 2019 at 8:30

1 Answer 1


Importing natbib before bibentry fixed the error for me on overleaf.

  • Thanks a lot! This solved the issue!!
    – Rio1210
    Commented Sep 15, 2020 at 13:31
  • I'm getting tired of what feels like random fixes for LaTeX problems.
    – marnix
    Commented Jun 9, 2021 at 13:37
  • This did not solve the issue for me. Instead it added several equals signs to the start of the document, which is perplexing, and altered the margins. Using with modernCV. Commented Feb 8, 2022 at 0:29

You must log in to answer this question.

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