Graphics, Figures & TablesLine Corners in Circuit

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Line Corners in Circuit

Post by shadgrind »

I followed the circuitikz example here, and it compiled fine. But upon inspecting the corners of the circuit I found that the lines were not joined properly: Here's a magnified image of what I'm talking about
circuitikz.png
circuitikz.png (1.95 KiB) Viewed 3255 times
That's the upper right corner, and as you can see the corner is jagged. The lower right corner has the same problem. I tried using the "line join=miter" option but that didn't help. Has anyone here been able to get mitered line joins at corners, using the circuitikz package? I'd really like to find a fix since I prefer the coiled inductor symbol in circuitikz over the one in TikZ' built-in circuit library (circuits.ee.IEC, which seems to have the same problem but only at the final corner in a completed circuit). I'm probably missing something easy.

The pst-circ package has the same issue, by the way. The only circuit package I've seen so far that doesn't have this problem is the makecirc package, which unfortunately doesn't have the fancy inductor symbol I like.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Line Corners in Circuit

Post by localghost »

shadgrind wrote:[…] The pst-circ package has the same issue, by the way. The only circuit package I've seen so far that doesn't have this problem is the makecirc package, which unfortunately doesn't have the fancy inductor symbol I like.
Definitely not a viewer problem. Seemingly MetaPost does a better job here than PGF/TikZ and PSTricks. Did you think about writing a note to the maintainers of the concerned packages? I'm afraid that nothing else remains to be done for you or for anybody else.


Thorsten
Post Reply