[pstricks] pst-circ: intensity arrow changing with the convention setting

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Apr 1 10:40:25 CEST 2014


Am 31.03.2014 21:16, schrieb Julien Morand:

> In a complex schematic, i'm trying to place the intensity arrow in a
> condensator (or switch). The current is in both direction and I try to
> use the directconvention=X option to change the arrow direction.The
> shape of the arrow changes between directconvention=true and
> directconvention=false. I attached the result of a small example code
> that shows the difference.
>
> Here is the example code:
>
> \documentclass[pstricks]{standalone}
> \usepackage[T1]{fontenc}

This one makes no sense when using xelatex

> \usepackage{xunicode}
>
> \usepackage[francais]{babel}
>
> %%%%%%%%%%%%%%%%%%%%%%%%%
>
> %ps tricks package
> \usepackage{pstricks}
> \usepackage{pstricks-add}
> %%%%%%%%%%%%%%%%%%%%%%%%%
> %to draw electric circuits
> \usepackage{pst-circ}
> %%%%%%%%%%%%%%%%%%%%%%%%%
> %Define node for usage in the drawing
> \usepackage{pst-node}
> %
> \begin{document}
> %%%%%%%%%%%%%%%%%%%%%%%%%%
> %definition of the unit scale default=1cm
> \psset{unit=1cm}
>
> %PSPicture
> \begin{pspicture}(-2,0)(5,5)
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%
> %Definition of colors for labels,arrows and styles
> %color
> \psset{intensitycolor=red,intensitylabelcolor=red, intensitywidth=3pt}

use

\psset{intensitycolor=red,intensitylabelcolor=red,intensitywidth=3pt,arrowinset=0}

It is a bug in pst-circ. I'll upload a new version

Herbert



More information about the PSTricks mailing list