1

How to make in Bold the (+ and -) of vsource in tikzcircuit

+/- in bold in vsource

1 Answers1

2

I suppose you are using circuitikz (because you tagged so --- would you please provide an example next time, or if my answer is not the one you are looking for?). Moreover, I suppose you are using standard fonts and pdflatex.

In that case, you can use the keys shown around page 75 in the (current) manual:

enter image description here

So, for example (I fixed the units also so that they use standard SI typesetting)

\documentclass[border=10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[siunitx, RPvoltages, american]{circuitikz}

\ctikzset{bipoles/vsourceam/inner plus={\boldmath $+$}} \ctikzset{bipoles/vsourceam/inner minus={\boldmath $-$}} \begin{document} \begin{tikzpicture}[] \draw (0,0) to[V, l=\qty{24}{\volt}] ++(0,3) to[R=\qty{5}{\ohm}] ++(3,0) to[R, l_=\qty{10}{\ohm}, v^=$V$] ++(0,-3) to[short, -*] (0,0) node[ground]{}; \end{tikzpicture} \end{document}

enter image description here

Notice that, anyway, the bold plus and minus are, at least with standard math font, not so bold... you can have a look here for some suggestions, or, if you want to go really bold:

\documentclass[border=10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[siunitx, RPvoltages, american]{circuitikz}
\usepackage{pifont}

\ctikzset{bipoles/vsourceam/inner plus=\ding{58}} \ctikzset{bipoles/vsourceam/inner minus=\rotatebox{90}{\ding{121}}} \begin{document} \begin{tikzpicture}[] \draw (0,0) to[V, l=\qty{24}{\volt}] ++(0,3) to[R=\qty{5}{\ohm}] ++(3,0) to[R, l_=\qty{10}{\ohm}, v^=$V$] ++(0,-3) to[short, -*] (0,0) node[ground]{}; \end{tikzpicture} \end{document}

enter image description here

If you also want to change the symbols in the voltage indication (but please, do not use pifont for that !), you can use the settings found on page 207:

enter image description here

Rmano
  • 40,848
  • 3
  • 64
  • 125