Additional options
All Jupyter-TikZ IPython Magics additional options are listed below:
| Argument | Description |
|---|---|
-as=<str>--input-type=<str> |
Type of the input. Possible values are: full-document, standalone-document and tikzpicture.Example: -as=full-document.Defaults to -as=standalone-document. |
-i--implicit-pic |
Alias for -as=tikzpicture. |
-f--full-document |
Alias for -as=full-document. |
-p=<str>--latex-preamble=<str> |
LaTeX preamble to insert before the document. Example: -p "$preamble", with the preamble being an IPython variable.Defaults to None. |
-t=<str>--tex-packages=<str> |
Comma-separated list of TeX packages. Example: -t=amsfonts,amsmath.Defaults to None. |
-nt--no-tikz |
Force to not import the TikZ package. |
-l=<str>--tikz-libraries=<str> |
Comma-separated list of TikZ libraries. Example: -l=calc,arrows.Defaults to None. |
-lp=<str>--pgfplots-libraries=<str> |
Comma-separated list of pgfplots libraries. Example: -pl=groupplots,external.Defaults to None. |
-nj--no-jinja |
Disable Jinja2 rendering. |
-pj--print-jinja |
Print the rendered Jinja2 template. |
-pt--print-tex |
Print the full LaTeX document. |
-sc=<float>--scale=<float> |
The scale factor to apply to the TikZ diagram. Example: -sc=0.5.Defaults to -sc=1.0. |
-r--rasterize |
Output a rasterized image (PNG) instead of SVG. |
-d=<int>--dpi=<int> |
DPI to use when rasterizing the image. Example: --dpi=300.Defaults to -d=96. |
-g--gray |
Set grayscale to the rasterized image. |
-e--full-err |
Print the full error message when an error occurs. |
-k--keep-temp |
Keep temporary files. |
-tp=<str>--tex-program=<str> |
TeX program to use for compilation. Example: -tp=xelatex or -tp=lualatex.Defaults to -tp=pdflatex. |
-ta=<str>--tex-args=<str> |
Arguments to pass to the TeX program. Example: -ta "$tex_args_ipython_variable".Defaults to None. |
-nc--no-compile |
Do not compile the TeX code. |
-s=<str>--save-tikz=<str> |
Save the TikZ code to file. Example: -s filename.tikz.Defaults to None. |
-st=<str>--save-tex=<str> |
Save full LaTeX code to file. Example: -st filename.tex.Defaults to None. |
-sp=<str>--save-pdf=<str> |
Save PDF file. Example: -sp filename.pdf.Defaults to None. |
-S=<str>--save-image=<str> |
Save the output image to file. Example: -S filename.png.Defaults to None. |
-sv=<str>--save-var=<str> |
Save the TikZ or LaTeX code to an IPython variable. Example: -sv my_var.Defaults to None. |