0

This question already has an answer here:

I am an extensive user of latex and being EE engineer I use circuitikz a lot. But it becomes a little inflexible once I start doing a complex circuit and hence I am taking an initiative to generate code from schematic just like how one can generate code for equations or table. Since I have little knowledge on how one can achieve that, I would like to know where can I start?

marked as duplicate by Henri Menke, Community Nov 14 '17 at 8:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Can you provide us with more details? How does what you refer to as a complex curicuit look like? What is the basis you would like to generate source code from? – Matthias Nov 13 '17 at 14:18
  • 1
    Well its difficult to provide more details because as of now I am able to draw circuits as I want, its when the circuit grows in size (lets say more than 10 transistors) then I start to get confused which belongs to what. If I was not clear, I am interested to generate code just like there are latex code generators for equations (or tables) where in one can just select on some icons to get the source code. it would generate from \begin{equation}.... \end{equation} – rsg1710 Nov 13 '17 at 14:27
  • 1
    Is there some sort of unambiguous technical notation for circuits? For example, for chemical structures, there are formats like SMILES - all the atoms and bonds in the caffeine molecule are unequivocally described by the string CN1C=NC2=C1C(=O)N(C(=O)N2C)C. Or maybe there is some interactive program that can write some XML file. In either case, it should be possible to write a program to convert that to LaTeX markup; I did something similar for chemical structures (see chimpsky.uwaterloo.ca/mol2chemfig). – Michael Palmer Nov 13 '17 at 14:36
  • @MichaelPalmer its a great tool. I didnt understand your comment fully but I can express probably better. Unlike your tool, I would like to generate source code from what I draw . With respect to your tool, what I am trying to achieve is to get code from the ChemDoodle for ex. – rsg1710 Nov 13 '17 at 14:47
  • @Matthias Well its difficult to provide more details because as of now I am able to draw circuits as I want, its when the circuit grows in size (lets say more than 10 transistors) then I start to get confused which belongs to what. If I was not clear, I am interested to generate code just like there are latex code generators for equations (or tables) where in one can just select on some icons to get the source code. it would generate from \begin{equation}.... \end{equation} – rsg1710 Nov 13 '17 at 14:57