Marcel Gangwisch
Marcel Gangwisch

Reputation: 9026

How to reference an equation in latex and line wrap the reference in the text?

I got an equation in my latex document in an align environment. I labeled my equation and I'm referencing this equation in my document.

However, then I'm doing this like this:

\begin{align} \label{eq:slopeSaturation}
  <some formula>
\end{align}

<some text> \ref{eq:slopeSaturation} <some more text>

I get the problem that the equation is correctly referenced in the text, but the reference is overlapping my margin of the document.

I already tried to use the following properties in my preamble:

\usepackage[breaklinks=true]{hyperref}
\usepackage{breakcites}

But this makes no difference for my referenced equations.

Do you have an idea for my problem?

Upvotes: 1

Views: 5059

Answers (1)

safex
safex

Reputation: 2514

You could try using

\eqref{eq:slopeSaturation}

or

\autoref{eq:slopeSaturation}

which will create references particularly catering towards equations (or anything really for autoref...)

Upvotes: 1

Related Questions