LaTeX forum ⇒ GeneralSmall question regarding referencing Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 3
Joined: Wed Dec 18, 2013 8:44 pm

Small question regarding referencing

Postby Crysis85 » Mon Dec 23, 2013 6:42 pm

It may be a stupid question but I wonder
what's the difference between
  1. See picture \ref{fig:name} on page \pageref{fig:name}

  1. See picture ~\ref{fig:name} on page ~\pageref{fig:name}

with the tilda?
Tried both "versions" and the output looks the same...


Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Postby josephwright » Mon Dec 23, 2013 10:08 pm

Presumably you actually want
See picture~\ref{fig:name} on page~\pageref{fig:name}
The tilde is used to create a non-breaking space, so with a 'normal' space as well you've got too big a gap. You want a non-breaking space here so the number can't get split to the start of a line.
Joseph Wright

Return to “General”

Who is online

Users browsing this forum: No registered users and 4 guests