[pstricks] pst-circ: Intensity label don't accept changing font size

Julien Morand julienmorand2 at gmail.com
Fri Mar 21 20:21:27 CET 2014


Hello,

I'm currently making a electrical circuit using the pst-circ package. Since
the circuit is pretty big, i would like to change the size of the
intensitylabel in capacitor. I'm using the math mode for my label because i
need to put index. First, i have try to put \large before the $ sign of the
math mode. It worked but also added my label in the middle of the picture.
Here is the 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}(-12.5,-8.8)(32.2,9)

%%%%%%%%%%%%%%%%%%%%%%%%%%

%Definition of colors for labels,arrows and styles

%color

\psset{intensitycolor=red,intensitylabelcolor=red,tensioncolor=blue,tensionlabelcolor=blue,
intensitywidth=3pt,tensionwidth=4pt}

%components style

\psset{dipolestyle=zigzag,dipolestyle=curved}

%%%%%%%%%%%%%%%%%%%%%%%%%%

%place the input voltage generator and label

\capacitor[labeloffset=-1,intensity,intensitylabel=\Large$i_{C_i}$](-10,8)(-10,-8){\huge$C_{i}$}

\end{pspicture}

\end{document}


The result is in attached files. I find a "solution" by going into a math
mode embedded in a text mode also embedded in a math mode!! like this:

$\textrm{\Large$i_{C_i}$}$


I'm pretty sure it's not the easier and proper way to do that. And i only
have the problem with intensity label...


Do anyone know the correct syntax for that part?


Thank you


Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140321/3121c719/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capacitor_label.pdf
Type: application/pdf
Size: 6205 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20140321/3121c719/attachment-0001.pdf>


More information about the PSTricks mailing list