Is \ref supposed to work in math mode? If hyperref and bidi are loaded, it generates errors:
\documentclass{article}
\usepackage{hyperref}
\usepackage{bidi}
\begin{document}
Testing labels with \verb+hyperref+ and \verb+bidi+.
\section{This is a section}
\label{sec}
\begin{equation}
a = b \label{eq}
\end{equation}
In text mode everything works fine. Referencing equation~\ref{eq} in section~\ref{sec}.
But if we try to do it in math mode, we get errors: $\ref{eq}$
$\ref{sec}$
\[
\ref{eq}
\]
\[
\ref{sec}
\]
\end{document}
\ref-- which essentially returns a text-mode contents -- supposed to work in math mode? – tohecz Feb 28 at 0:21