TikZ editor with preview and templates

A tikzpicture gets its own preview at the cursor, compiled from that picture alone. A TikZ editor adds 25 templates, building blocks and a surface to draw on with the mouse. This guide shows both.

See one picture while you write it

  1. Put the cursor between \begin{tikzpicture} and \end{tikzpicture}.

  2. A window titled “TikZ Preview” appears and shows the compiled picture. After a change it compiles again once you have stopped typing for a second and a half.

    The editor with the cursor in a tikzpicture; the window "TikZ Preview" next to the code shows the picture: three boxes IMU, Filter and Position joined by arrows, and a fourth box "Field map" below.

Write a new picture in the TikZ editor

  1. Put the cursor where the picture belongs and click the TikZ button in the toolbar above the text.

    The toolbar above the text with the TikZ button outlined, at the start of the second row.
  2. Write the picture under “TikZ Code”. “Live Preview” on the right compiles it shortly after each change; “Compile” does it at once.

    The TikZ editor on the tab "Code Editor": the code of a picture with two axes on the left, the compiled picture on the right, and below the code the list of TikZ libraries with five of them switched on.
  3. Switch on the libraries the picture needs under “TikZ Libraries”, for example positioning for right=of or arrows.meta for arrow tips. The preview compiles with the libraries that are switched on.

  4. Click “Insert”. The tikzpicture is written at the cursor.

Start from a template

  1. In the TikZ editor, open the tab “Templates”. The 25 templates are sorted into ten groups, among them flowcharts, graphs and networks, plots and functions, circuits, mind maps, Venn diagrams and automata.

    The tab "Templates" of the TikZ editor: a row of groups and 25 cards, for example coordinate system, directed graph, tree, simple flowchart, bar chart, simple circuit, mind map and timeline.
  2. Click a card. Its code is loaded into the code editor, and the libraries and packages it needs are switched on.

  3. Replace the labels and coordinates with your own and insert the picture.

Draw with the mouse

  1. Open the tab “Visual Editor”. The tools are on the left: select, node, line, arrow, circle, rectangle, text and path.

  2. Choose a tool and drag on the drawing surface. Shapes snap to the grid.

    The visual editor with a rectangle, an arrow and a circle on the drawing surface; the rectangle is selected, its position, size, colour and line width are on the right, and the generated TikZ code is below.
  3. Click a shape with the select tool to change its position, size, colour, fill and line style on the right. The Delete key removes it.

  4. The code under the drawing surface follows every change. “Insert” writes it into the document.

Where it works

Related pages