jl-tikz-cad

⚙️ Automation & Compilation Suite

This suite manages the “bridge” between the visual SVG world (JavaScript) and the technical LaTeX world. It ensures that whatever you draw in the Symbol Builder becomes a usable part in the Circuit Editor.

🐍 Requirements

📄 The Core Scripts

1. build_db.py (The Database Generator)

This script parses your custom tikz_electronic_parts.sty file and extracts all the metadata to build the palette for the Web App.

2. compile_sty.py (The SVG-to-TikZ Compiler)

Reads the SVG metadata embedded in your .sty comments and compiles them into pure, mathematical TikZ \draw commands for the final LaTeX document.

🛠️ The Standard Maintenance Workflow

Whenever you design a new component in the Symbol Builder:

  1. Paste the generated code into tikz_electronic_parts.sty.
  2. Run python build_db.py -> The component instantly appears in the web editor palette.
  3. Run python compile_sty.py -> Generates the final, compilable LaTeX definitions for your academic document.