s1st / tikzedt

Automatically exported from code.google.com/p/tikzedt
0 stars 0 forks source link

Parser exception with \draw and \node together with \def #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Parser throws exception when using \draw with \def (instead of coordinates). 
Same goes for \node.

What steps will reproduce the problem?

\begin{tikzpicture}
\def\boundb{(-2,2) rectangle (4,-2)}
\draw (-11,-4) rectangle (-9,-9);
\draw \boundb;
\end{tikzpicture}

\begin{tikzpicture}
\def\nodepos{(-2,2)}
\node at \nodepos {?};
\end{tikzpicture}

Original issue reported on code.google.com by notdiffi...@gmx.net on 3 Mar 2011 at 7:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Similar problem with \fill:

\usetikzlibrary{patterns}
\begin{tikzpicture}
 \def\mypath{(0,0) -- +(0,1) arc (180:0:1.5cm) -- +(0,-1)}
 \fill [red] \mypath;
 \pattern[pattern color=green,pattern=bricks] \mypath;
\end{tikzpicture}

Note: \pattern is not understood by parser and thus does not cause exception.

Original comment by notdiffi...@gmx.net on 3 Mar 2011 at 8:15

GoogleCodeExporter commented 8 years ago
Fixed in version 0.1.3

Original comment by notdiffi...@gmx.net on 18 Jun 2011 at 11:03