5

After 'References' title and before the items list, there is a space between them, as shown in the following figure:

enter image description here

My code is:

\documentclass[a4paper]{article}
\usepackage{enumitem}
\usepackage{natbib}
\setlength{\bibsep}{0.0pt}
\usepackage{expdlist}
\renewcommand{\refname}{\large 6. References}

\begin{document}

\bibliographystyle{unsrt}
\bibliography{refs}

\end{document}

I successfully removed the space between the items list, but can't remove the space after the 'References' title. May I know how to remove the space in the red box?

2
  • Welcome to TeX.SE. Unless you provide some LaTeX code that shows how you build the bibliography, it's virtually impossible for readers of your posting to suggest LaTeX code that modifies your LaTeX code in a way that lets you achieve your formatting goals. To maximize your chances of getting useful advice, your LaTeX code should be not merely a code snippet but a minimal working example, i.e., something that starts with \document class, ends with \end{document], and reproduces the formatting issue you're looking to solve.
    – Mico
    Commented Jul 4, 2019 at 6:33
  • @Mico Thank you very much for your reply. I have added the corresponding code.
    – Mach.
    Commented Jul 4, 2019 at 6:51

1 Answer 1

3

Since you use the natbib package, you could redefine its \bibpreamble macro to snug up the space between the bibliography header and the first bib item.

enter image description here

\RequirePackage{filecontents}
\begin{filecontents}{refs.bib}
@misc{abc:3000,
  author = "A and B and C", title = "Thoughts", year = 3000}
@misc{xyz:3001,
  author = "X and Y and Z", title = "Thoughts", year = 3001}
\end{filecontents}

\documentclass[a4paper]{article}
\usepackage{enumitem,expdlist}

\usepackage[numbers]{natbib}
\bibliographystyle{unsrtnat}
\renewcommand\bibpreamble{\vspace{-0.8\baselineskip}} % choose a suitable vert. skip
\setlength{\bibsep}{0pt} % no extra vert. space between bib items
\renewcommand{\refname}{\large 6. References}

\begin{document}
\nocite{*}
\bibliography{refs}
\end{document}
7
  • Thank you very much for your reply! It works well! Thank you so much!
    – Mach.
    Commented Jul 4, 2019 at 11:51
  • If one does not use bibtex what he do? thanks
    – Student
    Commented Jul 14, 2023 at 18:20
  • @Student - What is your question about? E.g., how to create a bibliography? How to create citation call-outs to bibliographic entries? How to reduce the amount of vertical whitespace between the sectioning header and the first bibliographic entry? Please be specific.
    – Mico
    Commented Jul 14, 2023 at 18:52
  • How to reduce the amount of vertical whitespace between the sectioning header and the first bibliographic entry?
    – Student
    Commented Jul 14, 2023 at 19:22
  • 1
    yes please see tex.stackexchange.com/questions/691131/…
    – Student
    Commented Jul 14, 2023 at 20:14

You must log in to answer this question.

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