I often use PGF to draw geometrical figures and I use to label important points using a macro to add bullets at certain points using their coordinates.
All fine, but I should very much be able to invoke my macro with a predefined list say plist by \mgredbullets[\plist], but I can't get it to work.
I have added a short to-the-point attachment with illustrative code.
\mgredbullets[A,B,C,D] works fine with defined points A, B, C and D, also
\mgredbullets[{A,B,C,D}] works fine as seen in the attachement.
Trying to define the list plist by \newcommand{\plist}{{A,B,C,D}} will make \mgredbullets[\plist] fail.
Anybody who can help?
Best regards,
Kent
Graphics, Figures & Tables ⇒ using bullets as labels defined by a macro
using bullets as labels defined by a macro
- Attachments
-
- latexforumposting.tex
- (1.92 KiB) Downloaded 135 times
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
using bullets as labels defined by a macro
Hi Kent,
a quick fix would be expanding the argument before it's applied:
Stefan
a quick fix would be expanding the argument before it's applied:
\expandafter\mgbluebullets\expandafter[\plist];
Stefan
LaTeX.org admin