~tex-sx/tex-sx/development

« back to all changes in this revision

Viewing changes to tikzmark_test.tex

  • Committer: Andrew Stacey
  • Date: 2012-12-06 09:45:18 UTC
  • mto: This revision was merged to the branch mainline in revision 158.
  • Revision ID: stacey@math.ntnu.no-20121206094518-prtec3dl77cidebu
Bug fixes for pgf-blur: inverse blur needs eo rule, fadings need unique names; tikzmark highlighting code refactored; svgtopgf added rules for quadratic paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
\documentclass{article}
3
3
\usepackage{tikz}
4
4
\usetikzlibrary{tikzmark}
 
5
\usetikzmarkextra{highlight}
5
6
 
6
7
\tikzset{
7
8
  next page=below,
 
9
  highlighter/right margin extent=2mm,
 
10
  highlighter/left margin extent=-2mm,
 
11
  fader/colour=gray,
 
12
  fader/opacity=.8,
 
13
%  every highlighter/.style={rounded corners},
8
14
}
9
15
 
10
16
\usepackage{lipsum}
11
17
 
12
18
\begin{document}
13
 
\tikz[overlay,remember picture,ultra thick,red] \draw (pic cs:a) -- (pic cs:b);
 
19
 
 
20
\lipsum[6]
 
21
 
 
22
\vlstart\lipsum*[5]\vlend
 
23
 
 
24
\lipsum[7]
 
25
 
 
26
\newpage
 
27
 
 
28
\hlboxstart\lipsum*[4]\hlboxend
 
29
 
 
30
\hlstart\lipsum*[1]\hlend
 
31
 
 
32
\hlstart\lipsum*[2]\hlend
 
33
 
 
34
\fdstart\lipsum*[3]\fdend
 
35
 
 
36
\hlstart A not so long sentence\hlend
 
37
 
 
38
A rather longer \hlstart sentence that goes over one line and onto the next but not all that much further\hlend\ than that.
 
39
 
 
40
A rather longer sentence that goes over one line and onto the next but not all that much further than that.
 
41
 
 
42
\tikz[overlay,remember picture,ultra thick,red] \draw (pic cs:a) -- (pic cs:b);%
14
43
A\tikzmark{a} tikzmark
15
44
 
16
45
\lipsum[1-4]
48
77
\lipsum[1]
49
78
\tikz[overlay,remember picture,ultra thick,red] \draw (0,0) -- (pic cs:d);
50
79
 
51
 
\end{document}
 
 
b'\\ No newline at end of file'
 
80
\end{document}
 
81
 
 
82
% Local Variables:
 
83
% tex-output-type: "pdf18"
 
84
% End:%   
 
 
b'\\ No newline at end of file'