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

Julien Morand julienmorand2 at gmail.com
Mon Mar 31 21:16:59 CEST 2014


Hello,

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}

\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}

%components style

%capacitor

\capacitor[labeloffset=-1,linecolor=black,intensity,directconvention=false](-0.5,0.5)(-0.5,4.5){\huge$C_{1}$}

\capacitor[labeloffset=-1,linecolor=black,intensity,directconvention=true](3,0.5)(3,4.5){\huge$C_{1}$}

\end{pspicture}

\end{document}


Is there an option to set the shape of the intensity arrows in every
direction?


Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140331/1837af49/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrows_style_different_convention.pdf
Type: application/pdf
Size: 8953 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20140331/1837af49/attachment.pdf>


More information about the PSTricks mailing list