<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Am <a href="tel:21.03.2014%2020" value="+12103201420">21.03.2014 20</a>:21, schrieb Julien Morand:<br>
<br>
> I'm currently making a electrical circuit using the pst-circ package.<br>
> Since the circuit is pretty big, i would like to change the size of the<br>
> intensitylabel in capacitor. I'm using the math mode for my label<br>
> because i need to put index. First, i have try to put \large before the<br>
> $ sign of the math mode. It worked but also added my label in the middle<br>
> of the picture. Here is the code:<br>
<br>
What you see is correct, your C is a subscript and set in the mathstyle<br>
scriptstyle. However, you can use the command \textsubscript:<br>
<br>
\documentclass[pstricks]{standalone}<br>
\usepackage{fixltx2e}<br>
\usepackage{pst-circ}<br>
\let\SB\textsubscript<br>
\begin{document}<br>
\begin{pspicture}(-12.5,-8.8)(32.2,9)<br>
\psset{intensitycolor=red,intensitylabelcolor=red,tensioncolor=blue,tensionlabelcolor=blue,<br>
intensitywidth=3pt,tensionwidth=4pt}<br>
\capacitor[labeloffset=-1,intensity,intensitylabel=\Huge<br>
i\SB{C\SB{i}}](-10,8)(-10,-8){C\SB{i}}<br>
\end{pspicture}<br>
<br>
\end{document}<br>
<br>
Herbert<br><br></blockquote><div><br></div><div>Thank you Herbert</div><div>You're right the label is correct but there is the text from the label on the right of the component that has been added (see my attached file). I don't have this problem when I don't add a font size like \huge or \large in the intensitylabel.</div>
<div>For instance if i put intensitylabel=$C_i$ it's OK i don't have the added text outside the component. But if I put intensitylabel=\huge$C_i$, the added text is here (like in the attached file).</div><div><br>
</div><div><br></div></div></div></div>