2

I want to eliminate the gap between the reference text (such as 'First reference', 'Second reference' in the example below) and the reference super-scripted numbering (such as 1 and 2 in the example below). Please suggest an edit.

\documentclass{article}
\usepackage[super]{natbib}
\renewcommand{\bibsection}{}
\renewcommand{\bibnumfmt}[1]{$^{#1}$}
\begin{document}
 Citing here \cite{AB} in the text.
    \begin{thebibliography}{100}
        \bibitem{AB}
        First reference.
        \bibitem{CD}
        Second reference.
    \end{thebibliography}
\end{document}

The output of the code is:

Code output with the gap problem between reference numbering and text.

1 Answer 1

1

Type the following in the preamble:

\let\oldbibliography\thebibliography
\renewcommand{\thebibliography}[1]{%
  \oldbibliography{#1}%
  \setlength{\labelsep}{0pt}%
}

Result:

enter image description here

You must log in to answer this question.

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