[pstricks] includegraphics page of pdf, pst-pdf, auto-pst-pdf

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Mar 22 23:35:23 CET 2008

exelnet at exelnet.de schrieb:
> There is another small question that came up:
> \def\yStart{0.3}
> % Legend
>     \newcommand{\legend}[1]{%
>     \psline[linecolor=#1,linewidth=2pt]{-}(1730,\yStart)(1735,\yStart)
>     \rput[l](1735,\yStart){\footnotesize \quad #1}
>     %increment \yStart
> }
> \legend{first}
> \legend{second}
> Im trying to add a legend to my graph. But since I ll need to adjust the legend in many other
> files i thought of a method to generate it automatically.
> But how can i increment \yStart at the end of the \legend command?  

please provide _full_ working examples and not only fragments ...




\pssetlength\yStart{0.3}% in current PSTricks unit
% Legend
     \rput[l](1.735,\yStart){\footnotesize \quad #1}%



More information about the PSTricks mailing list