#153 /foreach/remember only working with "the dots notation".

closed-fixed
nobody
None
5
2010-12-20
2010-11-23
No

\documentclass{minimal}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}[rectangle,draw]
\node (a) at (-5, 3) {abc};
\node (b) at (-2, 2) {def};
\node (c) at ( 2, 1) {ghi};
\node (d) at ( 6, 0) {jkl};
\end{scope}

\def\mylist{b,...,d} % works
% \def\mylist{b,c,d} % works not
\foreach \x [remember=\x as \lastx (initially a)] in \mylist{
\draw[->] (\lastx) -- (\x);
}

\end{tikzpicture}
\end{document}

Discussion

  • Christophe Jorssen

    This is fixed in the CVS.

     
  • Stefan Pinnow

    Stefan Pinnow - 2010-12-20
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks