3

This may be a total newbie problem, but I cannot find a single reference of this behaviour anywhere I look and thus this question:

This is my code:

\documentclass{article}
\usepackage[american,siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}
    \draw (0,0) to[battery, l=12<\volt>] (0,2) -- (0,3.5)
                to[R] (4,3.5) -- (4,2)
          (0,0) -- (4,0) to[battery, l=24<\volt>] (4,2)
          (0,2) to[R, *-*] (2,2)
                to[R, -*] (4,2)
          (2,0) to[R, *-] (2,2);
\end{circuitikz}
\end{document}

The result I get is both labels overlapped at the lower left corner of the picture; the only way I can look at the image is with xdvi; any other document viewer like evince shows just the text, not the image. If another label is included in the code above, it goes like the others and ends overlapped at the lower left corner of the picture. It doesn't matter where or what is labelled: voltages, currents, capacitors, sources, ... it ends at the same place with the others at the lower left corner of the picture.

Yesterday I updated TeXLive from CTAN. No dice. I can send the resulting .dvi file if someone is kind enough to tell me how can I include a file to the question or if there is a place where I can upload it for you to see it like Dropbox.

4

The DVI viewers are not able to understand the graphics commands used by TikZ/PGF for placing and drawing things. So viewing with a DVI viewer is a painful experience.

Compile with pdflatex and view with a PDF viewer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.