I am trying to add citations to a technical report using ~\cite, so that the result would be text[1]. But instead I get text [1] with a space between the citation and the text. I am using \usepackage{cite}. How do I remove the space?
Asked
Active
Viewed 1.3k times
3
user1049697
- 131
-
2Why would you remove the space? – egreg May 21 '12 at 14:46
-
Requirement of the report. – user1049697 May 21 '12 at 14:55
-
8I always keep forgetting that crazy requirements are so frequent. :( – egreg May 21 '12 at 14:56
-
Thank god there are still people telling us that we should not want what we want. We would be the eternal slaves of our stupid wishes. ;-) – Nobody-Knows-I-am-a-Dog Dec 12 '20 at 14:34
2 Answers
11
To remove the space, remove the tilde ~ and just use text\cite{...}. This is, however, a rather unusual use of \cite.
In short, when you type ~ (also called a "tie") it's the same as typing a space, except that TeX won't break a line at this space. For a reference on the usage of ~ with/without citation, see What is the difference in citing/referencing with or without tilde?
-
-
7@user1049697: Did you use
...text \cite{..}or...text\cite{..}? If neither of these work, then you should post a minimal example as part of your question showing exactly what you're doing. – Werner May 21 '12 at 14:57
5
You can add an option for the cite package:
\usepackage[noadjust]{cite}
to avoid the unwanted space .
Claudio Fiandrino
- 63,575
-
1Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – Claudio Fiandrino Jun 16 '13 at 16:52