codimd
codimd copied to clipboard
How to link to a title in the same document by MathJax `\href`?
I know we can create a link by \href with MathJax.
$$
\href{https://this.is.a.doc/}{\text{this is a doc}}
$$
However, it seems that \href only works when the link starts with http(s)://. I want to link to a title in the same document.
$$
\href{#the-title-in-the-same-document}{=}
$$
Is it possible?
If you are trying to cross-reference inside the same document, I've found this solution.
### Overview section
Please visit the [Overview section](#Overview-section) to find additional information.
I am finding a solution in LaTeX (MathJax), not in pure markdown.
If so you will need to label your Section/subsection/table/figure/equation \label{sec:overview} and reference them using the command \ref{sec:overview} or \eqref{eq:blackandscholes} for equations.
is this issue still up? would like to give it a try @IvanaGyro
I tried. MathJax doesn't handle the references and the labels right.
Here is an example.
$$
\begin{equation}
\int_0^\infty \frac{x^3}{e^x-1}\,dx = \frac{\pi^4}{15}
\label{example}
\end{equation}
$$
this is eq $\ref{example}$
And this is the rendering result.