Hi,
Surely
\begin{tikzpicture}
\foreach \i in {1,...,4}
\filldraw (\i,\i/2) circle (0.5mm) node[above]{$A_\i$};
\end{tikzpicture}
is easier?
Regards
Mark
2009/6/5 Hugues Vermeiren <
hgsvermeiren@...>:
> OK, here is a very simple sample code :
> 1 \begin{document}
> 2 Here are my points :
>
> 3 \begin{tikzpicture}
> 4 \foreach \i / \mypoint in {1/A_1,2/A_3,3/A_3,4/A_4}
> 5 \filldraw (\i,\i/2) circle (0.5mm) node[above]{$\mypoint$};
> 6 \end{tikzpicture}
>
> 7 So long, kids!
> 8 \end{document}
>
> It is certainly not very convenient to write line #4 if one has to place
> dozens of points...
>
> Thanks to you all,
> Hugues.
>
>
>
> ----- Original Message -----
> From: "Hans Meine" <
meine@...>
> To: <
pgf-users@...>
> Sent: Thursday, June 04, 2009 1:34 PM
> Subject: Re: [Pgf-users] dynamic nodes
>
>
>> On Thursday 04 June 2009 13:21:39 Hugues Vermeiren wrote:
>>> I have a series of points, built with the foreach command.
>>> How do I name these points : A1, A2, A3,... ? How can the nodes have a
>>> name
>>> that is dynamically linked to a variable?
>>>
>>> I'm still a beginner and I'm sure lots of you know the answer.
>>
>> It would more easy to give an answer if you provided sample code.
>>
>> However, my guess is that the answer might be foreach's support of
>> multiple
>> variables (i.e. use a second variable for the node names).
>>
>> HTH,
>> Hans
>>
>> ------------------------------------------------------------------------------
>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
>> looking to deploy the next generation of Solaris that includes the latest
>> innovations from Sun and the OpenSource community. Download a copy and
>> enjoy capabilities such as Networking, Storage and Virtualization.
>> Go to:
http://p.sf.net/sfu/opensolaris-get>> _______________________________________________
>> pgf-users mailing list
>>
pgf-users@...
>>
https://lists.sourceforge.net/lists/listinfo/pgf-users>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to:
http://p.sf.net/sfu/opensolaris-get> _______________________________________________
> pgf-users mailing list
>
pgf-users@...
>
https://lists.sourceforge.net/lists/listinfo/pgf-users>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to:
http://p.sf.net/sfu/opensolaris-get_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users