Skip to content
/ itikz Public
forked from jbn/itikz

Cell and line magic for PGF/TikZ-to-SVG rendering in Jupyter notebooks

License

Notifications You must be signed in to change notification settings

ea42gh/itikz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itikz

https://travis-ci.org/jbn/itikz.svg?branch=master

Latex with Tikz to SVG conversion. Includes Cell magic for rendering in Jupyter

  • Free software: MIT license

Basic Usage

The installation information below will install the version provided by the original author. To use the upgraded version here, download it, and copy the itikz subdirectory into a directory in your PYTHONPATH.

Step by step instructions for Windows are shown in the InstallationInstructions.png file.

Prerequisites:

Install itikz with python -m pip install

To see the directories in your pythonpath, execute the following in python:

import sys
for p in sys.path:
    print( p )

To install the original version instead, run:

pip install itikz

Load it:

%load_ext itikz

Use it:

%%itikz --file-prefix implicit-demo- --template pic
\draw[help lines] grid (5, 5);
\draw[fill=magenta!10] (1, 1) rectangle (2, 2);
\draw[fill=magenta!10] (2, 1) rectangle (3, 2);
\draw[fill=magenta!10] (3, 1) rectangle (4, 2);
\draw[fill=magenta!10] (3, 2) rectangle (4, 3);
\draw[fill=magenta!10] (2, 3) rectangle (3, 4);

Getting Started Guide

Getting Started Notebook

Youtube Video Introducing the nicematrix package

https://www.youtube.com/watch?v=CrWpv7XlAdk

API

Python:

..code:: build_commands, svg_from_tex, fetch_or_compile_svg

Can be invoked from Julia using PyCall, tested in jupyter-lab and Pluto.jl

About

Cell and line magic for PGF/TikZ-to-SVG rendering in Jupyter notebooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 85.5%
  • Perl 10.2%
  • Python 4.3%