Skip to content

Generated .tex files have syntax errors preventing compilation #3

@tdiprima

Description

@tdiprima

Hey folks 👋

I was generating a neural network architecture diagram with PlotNeuralNet and ran into a few syntax issues that prevented the .tex file from compiling. Here’s what I had to fix (in the file; not in the code) to try to get it working:

  1. Path should be \subimport{./PlotNeuralNet/Layers/}{init} (unless using the one in build)
  2. Shift syntax needs curly braces — all \pic[shift=(x,y,z)]\pic[shift={(x,y,z)}]
  3. Input image node was named (temp) but referenced as input-east throughout
  4. Input node used \node instead of a \pic Box, so it was missing required anchor points

There are still a few other issues floating around, but these were the main blockers I hit.

Steps to reproduce:

  1. Generate a .tex file using PlotNeuralNet
  2. Try to compile it with pdflatex
  3. You’ll see multiple PGF/TikZ errors

I’ll let the team handle this — I already opened a PR to fix issue #2 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions