# How do you remove a space before a citation in LaTeX?

I have something like

\documentclass{article}
\usepackage{cite}
\begin{document}

Blah Blah (\cite{All14})

\bibliography{Ref}
\bibliographystyle{alpha}
\end{document}


But LaTeX keeps placing a space before my citation, i.e. my output looks like "Blah Blah ( [All14])". So, I modified it to Blah Blah (\hspace*{-3px}\cite{All14}). However, this seems to be a less than elegant solution. Is there a better way to eliminate this space?

-

## migrated from stackoverflow.comMar 11 at 7:01

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Mar 11 at 7:10

The cite package tries to be clever and insert spaces before references when they are necessary. For example if you type

Here is some text\cite{xxx}.


then it will insert a space after "text". This behaviour can be turned off completely by

\usepackage[noadjust]{cite}


Alternatively, if you want this behaviour in general but have problems in isolated cases, you can insert a small space

(\hspace{1sp}\cite{All14} says...)


1sp is the smallest non-zero space in TeX, roughly 1/100 of the wavelength of light according to the TeX book.

\documentclass{article}

\usepackage{cite}

\begin{document}

Blah Blah (\hspace{1sp}\cite{All14})

\bibliography{Ref}
\bibliographystyle{alpha}

\end{document}

-