mkrphys / ipython-tikzmagic

IPython magics for generating figures with TikZ
BSD 3-Clause "New" or "Revised" License
160 stars 44 forks source link

word splitting in arguments to %%tikz #38

Open cfraizer opened 2 years ago

cfraizer commented 2 years ago

In one cell, I create a preamble like:

preamble=r'''\tikzset{terminal/.style={rectangle, minimum size=6mm, rounded corners=3mm, very thick, draw=black!50,
    top color=white, bottom color=black!20, font=\ttfamily}}'''

But it seems to terminate the preamble at <space> characters. so

%%tikz -f svg -l calc,positioning,shapes.misc -x $preamble

generates LaTeX code like:


% ⋮
\usetikzlibrary{shapes.misc}
\tikzset{terminal/.style={rectangle,
\begin{document}
% ⋮
nog642 commented 3 months ago

Still an issue.

Ran pip install git+https://github.com/kpobrien/ipython-tikzmagic.git to get pull #43 to deal with this.