github bitbucket linkedin googlescholar email rss
YCircuit Export tutorial

Introduction

We are going to make use of the schematics located in the Resources/Examples directory for this tutorial so make sure that that’s present. You could, of course, follow along with your own schematic. At the end, you should have a PDF file like this one.

Exporting to a TEX file

  • We first load the schematic using Ctrl+L or File->Load schematic. I will be

using the inverter schematic for this tutorial. At this point, the schematic should be loaded and visible in the YCircuit window.

  • Open the export window dialog using Ctrl+E or File->Export file. At this point, you will be presented with the export options. Choose TEX as the export format. We will be exporting the complete image with a scale factor of 1. With these options chosen, your window should now look like so:
  • Create a new directory for your LaTeX files and call it ltx. Save the exported file to ltx/inverter.tex.

  • We now need to create a LaTeX file to wrap this in. Create a file called doc.tex in the ltx folder and paste the following code in the file or download doc.tex from this link.

    \documentclass{article}
    \usepackage{tikz}
    \begin{document}
    \begin{figure}[ht]
      \centering
      \input{inverter.tex}
      \caption{\label{fig:inverter} An inverter schematic without scaling}
    \end{figure}
    \begin{figure}[ht]
      \centering
      \resizebox{0.6\textwidth}{!}{\input{inverter.tex}}
      \caption{\label{fig:scaledInverter} An inverter schematic with scaling}
    \end{figure}
    \end{document}

  • You should now be able to run LaTeX on this file and generate a PDF file like this one.