-
Dear maintainers,
The following example triggers a somewhat misleading error message:
\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \txt in {nice one.} {
\node[draw] at (0,0) {\txt};
}
\end{tikzpicture}
\end{document}
The error I get is:
! Package pgffor Error: ``...'' not allowed without prior value.
It is clear what is...
2009-10-21 09:47:56 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hello,
[ getting width of node ]
Never mind. The let feature inside paths in the CVS version of tikz lets me do the trick.
Regards,
Marc van Dongen.
2009-07-09 09:00:14 UTC in PGF and TikZ -- Graphic systems for TeX
-
Dear all,
For some reason, I need the width of a tikz node in
centimetres. The node has a label, and ideally I'd like to have a
macro that returns the width as a function of the label. I only
intend to use the macro in the tikzpicture that draws the node, and
after the drawing of the node. Is there an easy way to implement such
a macro?
Any help/pointers/suggestions will be greatly...
2009-07-09 06:11:04 UTC in PGF and TikZ -- Graphic systems for TeX
-
Hi,
You probably want to *evaluate* the substitution text of the macro you're defining. The command \gdef does not evaluate: use \expandafter\long\expandafter\edef.
When I try:
\def\HI{This works}
\expandafter\long\expandafter\edef\csname test\HI\endcsname{\HI}
\csname test\HI\endcsname
I do get "This works. Unfortunately, I couldn't get this to work in combination with...
2009-07-06 06:27:48 UTC in PGF and TikZ -- Graphic systems for TeX