[pstricks] Naive question
José Emilio Vila Forcén
jose.vila at cui.unige.ch
Sat Apr 30 13:46:02 CEST 2005
Hello all,
I am starting to write a latex package, and I am very interested in
the answers of this thread: Could you give me a hint to understand how
to write a package?
In fact, I have several macros with pst-plot already working, but I
would like to be able to have 'options' for them. Instead of defining
something like:
\newcommand{macroname}[2][red]{color = #1, linewidth=#2 pt}
and using it as
\macroname[red]{2}
What should I write in order to be able to use it as:
\macroname[color=red, linewidth=2pt]{ ---- }.....
^^^^^^^^^^^^^^^^^^^^^^^^
which is much more flexible.
Thank you very much for your time
Jose
More information about the PSTricks
mailing list