1

This question already has an answer here:

While I was writing one of my first papers in LaTeX, I used the reference/citing style that was used in the example provided by the professor. For referencing or citing, he uses ~\ref{} or ~\cite{}, but I noticed that in my document \ref{} and \cite{} gave the same result. Can anyone explain me difference and notation and when to use which if there is a difference?

marked as duplicate by gernot, Joseph Wright Jan 23 '17 at 13:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    Welcome to TeX.SX! This might help you: tex.stackexchange.com/questions/15547/… – Paulo Cereda Jan 23 '17 at 13:01
  • 3
    Using ~ will result in a non-breakable whitespace, which means that TeX cannot do a line break there. This is usually what you want with \cite or \ref, when e.g. having something like look at Figure~\cite{fig:x} in your document where you don't want to be the word “Figure” on a different line than the number of the figure. – Stephan Lukasczyk Jan 23 '17 at 13:01

Browse other questions tagged or ask your own question.