ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with MkIV and TikZ picture remembering
@ 2015-03-03  7:23 Jörg Weger
  2015-03-03  7:25 ` Jörg Weger
  2015-03-03 17:12 ` Aditya Mahajan
  0 siblings, 2 replies; 25+ messages in thread
From: Jörg Weger @ 2015-03-03  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\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};

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

\stoptext

%%%%%%%%%%%%%%%% STOP MWE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2015-03-13 13:32 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03  7:23 Problem with MkIV and TikZ picture remembering Jörg Weger
2015-03-03  7:25 ` Jörg Weger
2015-03-03  7:54   ` Wolfgang Schuster
2015-03-03 12:38     ` Ulrike Fischer
2015-03-03 13:11       ` Mojca Miklavec
2015-03-03 13:27         ` Ulrike Fischer
2015-03-03 15:29           ` Mojca Miklavec
2015-03-03 13:51         ` Ulrike Fischer
2015-03-03 17:12 ` Aditya Mahajan
2015-03-03 19:04   ` Hans Hagen
2015-03-03 19:28     ` Aditya Mahajan
2015-03-07 12:08       ` Jörg Weger
2015-03-07 14:52         ` Hans Hagen
2015-03-07 17:30           ` Jörg Weger
2015-03-07 18:22             ` Wolfgang Schuster
2015-03-08 10:11               ` Hans Hagen
2015-03-08 11:26                 ` Wolfgang Schuster
2015-03-08 11:55                   ` Hans Hagen
2015-03-08 12:04                     ` Wolfgang Schuster
2015-03-08 17:39                       ` Hans Hagen
2015-03-08 18:07                         ` Wolfgang Schuster
2015-03-08 19:04                           ` Hans Hagen
2015-03-08 22:17                           ` Hans Hagen
2015-03-13 13:17                             ` Jörg Weger
2015-03-13 13:32                               ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).