4

It would seem that the tikzmark package is no longer working. When referring to marked points the point will be placed where it is called instead of the point that is marked. Eg. the basic example from the manual

\[
\tikzmark{a} e^{i\pi/2} = i
\]
This \tikz[remember picture, overlay, baseline=0pt] \draw[->] (0,1em) to [bend left] ([shift={(-1ex,1ex)}] pic cs: a); is an important equation.

produces current rendering of the above code

rather than the intended example image from tikzmark manual (excuse the poor resolution).

I have tested this with both beamer and article in my MikTeX system, but it reproduces also on Overleaf, the online LaTeX compilation system (www.overleaf.com).

Any help on this would be highly appreciated.

2
  • do you compile twice?
    – percusse
    Jul 15 '15 at 10:02
  • My apologizes! But thank you for the very swift reply. That did indeed fix the problem.
    – Grove
    Jul 15 '15 at 10:14
6

Everything is still working fine, but you had a space after the colon in pic cs: a. Get rid of this and the white space between This \tikz[... which introduces unneeded space here and you are ready to go.

% arara: pdflatex
% arara: pdflatex

\documentclass{article}
\usepackage{tikz} 
\usetikzlibrary{tikzmark}

\begin{document}
\[
\tikzmark{a} e^{i\pi/2} = i
\]
This\tikz[overlay, remember picture] \draw[->] (0,1em) to [bend left] ([shift={(-1ex,1ex)}] pic cs:a); is an important equation.
\end{document}

enter image description here


If you really want to show, what you are showing right now, you should of course prefer to do:

% arara: pdflatex

\documentclass{article}
\usepackage{hyperref} 

\begin{document}
\begin{equation}\label{eq:eipizwei}
e^{i\pi/2} = i
\end{equation}
Equation~\ref{eq:eipizwei} is an important one.
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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