In my latex code an unwanted space is appearing after the citation.
I am using \bibitem
to put the referential information and \cite
to cite the papers:
As the latex code is large I'll put the reader link:
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIn my latex code an unwanted space is appearing after the citation.
I am using \bibitem
to put the referential information and \cite
to cite the papers:
As the latex code is large I'll put the reader link:
The class you are using is written quite badly and has dozens of such spurious spaces scattered throughout its code. The culprit of this specific issue is
% univasf.cls ll. 1445-1448
\renewcommand\@cite[2]{%
#1\ifthenelse{\boolean{@tempswa}}
{, \nolinebreak[3] #2}{}
}
which introduces the spurious space after every \cite
. You can correct this by adding in your preamble
\makeatletter
\renewcommand\@cite[2]{%
#1\ifthenelse{\boolean{@tempswa}}% <-- not necessary but doesn't hurt
{, \nolinebreak[3] #2}{}% <-- this IS necessary
}
\makeatother
However, with that class you'll have a lot of similar issues.
\cite{lima2020} . Os coronavirus....
wih a space afer\cite
?