1

I have a question very similar to How to remove the huge space in the Bibliography title? but the solution didn't work for me, probably because I'm using different setting for my documents.

Here is my header and bibliography insert :

\documentclass[12pt]{report}  
\usepackage[utf8]{inputenc}
\usepackage{times} 
\usepackage[T1]{fontenc}
\usepackage[UKenglish]{babel}
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=2cm]{geometry} 
\usepackage{color} 
\usepackage{graphicx}
\usepackage{soul}
\usepackage[normalem]{ulem}
\usepackage{titletoc}
\usepackage{tocloft} 
\usepackage{titlesec}
\usepackage{gensymb}

\begin{document}

Text here.

\clearpage 
\renewcommand{\bibname}{\begin{center} \ul{References} \end{center}} 
\addcontentsline{toc}{section}{\bfseries \normalsize{References}} 

\bibliographystyle{myunsrt} 
\bibliography{my_biblio.bib}

\end{document}

With this code, I have a big space before the Bibliography title, which makes me lose a lot of space in my report, and I would like to get rid of it.

3

Don't use the center environment, it introduce extra space. Also it is not a good idea to redefine \bibname in this way -- the command is also used for the headers.

If you really want an underlined, centered title (which looks imho rather ugly) it would be better to redefine the thebibliography environment:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage[UKenglish]{babel}
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2cm,bottom=2cm]{geometry}
\usepackage{color}
\usepackage{graphicx}
\usepackage{soul}
\usepackage[normalem]{ulem}
\usepackage{titletoc}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage{gensymb}
\usepackage{xpatch}

\xpatchcmd\thebibliography{\chapter*{\bibname}}
                          {\chapter*{\centering\ul{References}\addcontentsline{toc}{section}{\bfseries \normalsize{References}}}}{}{\fail}
\begin{document}

Text here.
\cite{doody}
\clearpage

\bibliographystyle{unsrt}
\bibliography{biblatex-examples.bib}

\end{document}

If you want to use a section command you can use this patch instead:

\xpatchcmd\thebibliography{\chapter*{\bibname}}
                          {\section*{\centering\ul{References}\addcontentsline{toc}{section}{\bfseries \normalsize{References}}}}{}{\fail}
  • Thanks sir for the advice, but when I apply your code, I still have the space... How can I remove it in accordance with your code ? – EvenStar69 May 30 '18 at 11:39
  • 1
    That is the standard layout of chapter. Do you really want something different here? – Ulrike Fischer May 30 '18 at 11:42
  • Yes sir, I don't use chapters on my reports, only section and subsection. Because I'm really limited in size, I would like to not lose that space in the bibliography page, which will appear weird for readers. – EvenStar69 May 30 '18 at 12:30
  • I'm not a sir, but a woman. And if you don't use chapters then don't use the report class but article. – Ulrike Fischer May 30 '18 at 13:01
  • I apologize for that Madam. I truly appreciate all the advices as I'm still learning LaTeX, but I'd like to have something to solve my initial problem... I unfortunately don't have the time to change all the formatting of my report right now. – EvenStar69 May 30 '18 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.