0

This question already has an answer here:

When I type (Eq.\ref{eq.15}) The output is

enter image description here

Obviously the spacing between "Eq." and "1.15" is too closed. But when I type (adding a space) (Eq. \ref{eq.15})

The output is:

enter image description here

Obviously the spacing between "Eq." and "1.15" is too wide!

My question is how I can get appropriate spacing.

marked as duplicate by egreg spacing Jun 19 '15 at 19:36

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.

2

Load cleveref: you'll have less typing and the spacing will be fine. Demo:

\documentclass{report}

\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{chngcntr} 
\counterwithin{equation}{chapter}
\usepackage[colorlinks, linkcolor=blue]{hyperref}
\usepackage{cleveref}

\begin{document}

\setcounter{chapter}{1}
\begin{equation}
  \label{eq-1st}
  J = \frac{1}{2}(a - b)
\end{equation}

\begin{equation}
  \label{eq-2nd}
  K= \frac{1}{2}(a + b)
\end{equation}

I want to reference eq.\eqref{eq-1st}

I want to reference \cref{eq-1st}.

\Cref{eq-1st,eq-2nd} show that…

\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.