[NTG-context] Problem with MkIV and TikZ picture remembering

Jörg Weger joerg73.muc at googlemail.com
Tue Mar 3 08:25:26 CET 2015

In the minimal working example below inside of a text two words should
be printed inside of rounded TikZ rectangles and should be connected by
an TikZ arrow pointing from the first word to the other.

TikZ offers the remember picture/overlay option for that.

The MWE works in MkII (command “texexec”) which I am not using, but not
in the latest MkIV (command “context”).

The problem might be that according to the PGF/TikZ manual “You need to
use a driver that supports picture remembering and you need to run TEX
twice” (16.13.1 Referencing a Node in a Different Picture).

So my questions are:

1.) Does LuaTeX support TikZ picture remembering?

2.) If so, how can I get ConTeXt MkIV to “run TeX twice”?

3.) If all of the above worked, would that work also if the inline TikZ
pictures to be remembered are on another file referenced via \input?

I have seen a solution similar to what I want to achieve in the METAFUN
manual but I don’t have a clue how to get that METAPOST alternative working.

Greetings Jörg

%%%%%%%%%%%%%%%% START MWE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n1) {this};
belongs to
\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n2) {that};

	[remember picture,overlay]
		\draw[->] (n1.north) to [bend left] (n2.north);


%%%%%%%%%%%%%%%% STOP MWE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

More information about the ntg-context mailing list