[texhax] FW: [Pgf-users] Changing a native pattern

Goebel, Juergen juergen.goebel at cassidian.com
Tue Apr 10 16:26:12 CEST 2012


Hugues Vermeiren wrote:

 > How do I change the spacing between the lines of a native pattern like "north east lines" (p.386 pgfmanual.pdf) ?
> Do I have to redefine an entirely new pattern with "\pgfdeclarepatternformonly" (p.644)?

That's correct, I'm really afraid.  Some years ago I asked the same question
and gut no other answer.

My 'solution' looks like this, eg

\pgfdeclarepatternformonly{wide north east lines}{\pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{7pt}{7pt}}{\pgfqpoint{6pt}{6pt}}%
{
  \pgfsetlinewidth{0.4pt}
  \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
  \pgfpathlineto{\pgfqpoint{6.1pt}{6.1pt}}
  \pgfusepath{stroke}
}

Meaning I have to create a new macro for every new spacing.  Far from being elegant!
 I'm very interested in a more variable solution but not able to realise it.

Best regards,

Juergen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20120410/34ca690f/attachment.html>


More information about the texhax mailing list