[texhax] TikZ and plain TeX
Suresh Govindachar
sgovindachar at yahoo.com
Sun Mar 9 05:11:39 CET 2014
% I have started reading the TikZ 3.0.0 manual and am
% unable to run one of the examples in it. I writing in
% plain TeX using MikTeX Windows 7, 64 bit; compiling
% with the command "pdftex foo.tex"
%% Plain TeX file
\input tikz.tex
\baselineskip=12pt
\hsize=6.3truein
\vsize=8.7truein
Following (stealth arrows) works:
\tikzpicture{>=Stealth}
\draw [->] (0,0) arc [start angle=180, end angle=30, radius=10pt];
\draw [<<-,very thick] (1,0) -- (1.5cm,10pt) -- (2cm,0pt) --
(2.5cm,10pt);
\endtikzpicture.
Following errors out
% with message ! Package pgfkeys Error: I do not know the key
'/tikz/name path'
\tikzpicture %{intersections}
\clip (-0.1,-0.2) rectangle (1.1,1.51);
\draw[step=.5cm,gray,very thin] (-1.4,-1.4) grid (1.4,1.4);
\draw[->] (-1.5,0) -- (1.5,0);
\draw[->] (0,-1.5) -- (0,1.5);
\draw (0,0) circle [radius=1cm];
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm)
arc [start angle=0, end angle=30, radius=3mm] -- cycle;
\draw[red,very thick] (30:1cm) -- +(0,-0.5);
\draw[blue,very thick] (30:1cm) ++(0,-0.5) -- (0,0);
\path [name path=upward line] (1,0) -- (1,1);
\path [name path=sloped line] (0,0) -- (30:1.5cm);
\draw [name intersections={of=upward line and sloped line, by=x}]
[very thick,orange] (1,0) -- (x);
\endtikzpicture.
% Also, have not had success with examples from the manual that
% involve "pic"
\bye
More information about the texhax
mailing list