~tex-sx/tex-sx/development

« back to all changes in this revision

Viewing changes to tikzmark_test.tex

  • Committer: Andrew Stacey
  • Date: 2014-08-14 21:15:51 UTC
  • mfrom: (161.2.16 main)
  • Revision ID: stacey@math.ntnu.no-20140814211551-t0z8n39i557ylprr
Merged changes mainly to hobby

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
}
16
16
 
17
17
\begin{document}
18
 
 
 
18
\newbox\mybox
 
19
 
 
20
Some text before the box
 
21
\savebox\mybox{\pgfmark{as}hello world}%
 
22
some text after the box
 
23
 
 
24
\wd\mybox0pt\relax
 
25
\ht\mybox0pt\relax
 
26
\dp\mybox0pt\relax
 
27
 
 
28
greetings \unhbox\mybox earthlings
 
29
 
 
30
This is a \tikz \node[text width=1cm] {Say \subnode{a}{hello} everyone}; node
 
31
 
 
32
\vspace{2cm}
 
33
 
 
34
\tikz[remember picture,overlay] \draw[->] (0,0) -- (pic cs:hello) (0,0) -- (pic cs:a);
 
35
 
 
36
\begin{tikzpicture}[remember picture]
 
37
\node[text width=3cm] {A lot of text with some of it in a subnode.
 
38
Let's write some more before we get to the subnode.
 
39
Here's a sentence with more padding.
 
40
What happens if we write more\pgfmark{hello} \subnode[inner sep=0pt]{stuff}{after it?}};
 
41
\draw[->] (0,2) to[bend left] (stuff.north);
 
42
\node[fit=(stuff),draw,inner sep=0pt] {};
 
43
\draw[->] (1,0) -- (pic cs:hello);
 
44
\end{tikzpicture}
 
45
 
 
46
\end{document}
19
47
hello\tikzmark{a} world
20
48
 
21
49
\begin{tikzpicture}[remember picture, overlay]