Skip to content

subnode does not work well with xelatex #14

Description

@jiaopjie

When use the command \subnode to label some texts, some problem appears.
The following is the codes.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
\begin{tikzpicture}[remember picture,>=stealth]
\node{Assume \subnode{f}{$f'(x)$} exists};
\draw[->] (0,1) to (f);
\end{tikzpicture}
\end{document}

The target of f defined by \subnode will be wrong if compile with xelatex.
The result looks like the picture.
20220429201249

But, when compile using pdflatex or lualatex, the problem disappears.
20220429201500

I don't know whether the problem is due to tikzmark or xelatex itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions