[pstricks] A subtle problem with pstverb?

Boris Alexeev boris.alexeev at gmail.com
Fri Jan 9 19:17:07 CET 2009


Thank you.  My problem has been alleviated by including \ignorespaces
in my commands as well.

Boris

> that is the default behaviour of LaTeX. {} is a line with an
> empty group. The next linebreak is replaced by a space!
> For all macros, which cannot be expanded, like \ifthenelse
> you have to put a % at the end of a line.
>
> \ifthenelse{\equal{z}{z}}{\psdots(1,1)}{} doesn't has the problem
> because \psdots has an \ignorespaces at its definition.
>
> You can use \ifx instead of \ifthenelse
>
> \documentclass{article}
> \usepackage{pstricks}
> \def\zA{z}\def\zB{z}
> \begin{document}
>
> \begin{pspicture}(-1,-1)(1,1)
> \psdots(0,0)
> \ifx\zA\zB \else \fi
> \pstverb{}
> \psdots(0,0)
> \end{pspicture}
>
> \end{document}
>
> However, it is not a PSTricks problem.
>
> Herbert
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>


More information about the PSTricks mailing list