Saturday, 1 June 2013

pst-circ monospaced labels

pst-circ monospaced labels

How can I make all labels in my circuit monospaced? I found this: Can I change all math output to use monospaced text? but this also affects my equations outside figures.

    \documentclass{minimal}
    \usepackage{pst-circ}
    \usepackage{amsmath}
    \everymath{\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}
    \usepackage[utf8]{inputenc}
    \begin{document}
    \setbox0\hbox{$ $}
        \begin{pspicture}(5,2)
        \psset{linewidth=1pt}
        \pnode(0,1){A}
        \pnode(3,1){B}
        \pnode(5,1){C}
        \newdiode(A)(B){$D_1$}
        \resistor(B)(C){$R_1$}
        \end{pspicture}
    $ \frac{1}{2\sqrt{x}} $
    \end{document}
Can I redefine pst-circ label command to use monospaced font?

No comments:

Post a Comment