In [1]:
import tikzmagic
In [2]:
%%tikz
\tikzset{every node/.style={font=\sffamily,white}}
\node[fill=red] at (0,0) (a) {This};
\node[fill=blue] at (2,0) (b) {That};
\draw[->] (a) -- (b);
Out[2]:
In [3]:
%%tikz --scale=0.5 --border=10
\tikzset{every node/.style={font=\sffamily,white}}
\node[fill=red] at (0,0) (a) {This};
\node[fill=blue] at (2,0) (b) {That};
\draw[->] (a) -- (b);
Out[3]:
In [4]:
%%tikz -l 'bending,arrows' -p 'fontspec' -x '\setmainfont{Arial}'
\draw[-triangle 45] (1,0) arc(0:355:1);
\node {Cycle};
Out[4]:
In [5]:
%tikz -i example.tikz --no-wrap --debug
Out[5]:
The content of a cell magic is included above the input file, to allow for extra formatting.
In [7]:
%%tikz -i example.tikz --no-wrap -e example.pdf
\tikzset{every node/.style={font=\sffamily,white}}
Out[7]: