ltrujello / Tikz-Python

An object-oriented Python approach towards providing a giant wrapper for Tikz code, with the goal of streamlining the process of creating complex figures for TeX documents.
https://ltrujello.github.io/Tikz-Python
MIT License
22 stars 2 forks source link

Excess spaces in tex file #4

Open Saltsmart opened 1 month ago

Saltsmart commented 1 month ago

image

Please note in the Transformer Example the right space between the text and the block is bigger than the left.

https://github.com/ltrujello/Tikz-Python/blob/32e40b4a03332358c80bb6316361bca8ef65b748/src/tikzpy/drawing_objects/node.py#L33C1-L39C1

It's because in line 36 or 38, one whitespace is added on the right, and one on the left. However only the right whitespace is valid, resulting "Softmax" to be "Softmax ".

ltrujello commented 1 month ago

Thanks for finding this! Should be an easy fix.