summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/m-tikz.mkiv
blob: 73c0ec01e1b8fde7d187ad3142cde6fbae303b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%D A fixed variant if the t-tikz module distributed with tikz.

\unprotect

    \ifcase\contextlmtxmode \else
        \unexpanded\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
        \unexpanded\def\pdflastypos{\numexpr\clf_lastypos\relax}
    \fi

\protect

\pushcatcodetable

    \setcatcodetable\texcatcodes

    \catcode`\@=11
    \catcode`\|=12
    \catcode`\!=12

    \input t-pgf.tex
    \input t-pgffor.tex
    \input tikz.code.tex

\popcatcodetable

\let\starttikzpicture\tikzpicture
\let\stoptikzpicture \endtikzpicture

\stopmodule