[pstricks] error in pst-circ with pst-optexp

Christoph Bersch usenet at bersch.net
Mon Jun 23 22:49:10 CEST 2014

Zitat von Herbert Voss <Herbert.Voss at fu-berlin.de>:

> Am 23.06.2014 18:09, schrieb Christoph Bersch:
>> The problem is, that labelangle works differently in pst-circ and
>> pst-optexp, although it does more or less the same. In pst-optexp only
>> numbers are allowed, whereas in pst-circ you can use the syntax of
>> `nrot`. I could of course skip the check for labelangle being a number,
>> but that might hide problems in other cases.
> then you have to define something like
> \mirror[linestyle=dashed,optexp={labelangle=-45,labeloffset=0}](A)(B)(C){M}

That wouldn't really help. Especially if packages try to use very  
simple and comprehensive parameter names, but which may have a  
different implementation or meaning depending on the package (pst-circ  
uses 'input', 'output', 'variable' etc. pst-optexp has e.g. 'label',  
'n', 'angle' etc.). This calls for problems when using different  
packages together

But that's an issue which could involve also several other packages.  
The weak point are the `\psset` commands used inside a package's  
command (e.g. \mirror or \resistor) which cannot be controlled by the  
user. Here, we use `\psset{...}` because one could use a  
package-specific parameter or a general one (from pstricks or  
pstricks-add or another package which changes e.g. the line properties).

What could really help here would be a command like  
`\psset*[pst-circ]{labelangle}` which would first try to set the  
option in the family `pst-circ`, and only if it doesn't succeed set  
the option in all families. However, I don't know if this could be  
implemented in pst-xkey.


More information about the PSTricks mailing list