[pstricks] Testing key-value pairs and \psset

Hensh, Richard hensh at math.msu.edu
Thu Dec 6 22:07:36 CET 2007



-----Original Message-----
From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On Behalf Of Herbert Voss
Sent: Thursday, December 06, 2007 3:46 PM
To: Graphics with PSTricks
Subject: Re: [pstricks] Testing key-value pairs and \psset

Hensh, Richard schrieb:
> Suppose that
>
> \define at key[psset]{pNode}{PointName}{\edef\psk at PointName{#1}}%

\define at key[psset]{family name}{keyname}{\def\macro{#1}}

\psset[family name]{keyname=...}

or

\psset{keyname=...}   then keyname in _all_ families are set.

> How do I test for each of the following?
>
>         \psset{PointName={}} or \psset{PointName=}
>
>         versus
>
>         \psset{}
>
> I've tried looking at the pstricks packages but I can't figure out what anyone is doing along these lines.


do you want to write a new macro? Then there is an easy solution, otherwise use

\def\pst at tempA{#1}
\ifx\pst at tempA\pst at empty ... \else ... \fi

Herbert
_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list