Help Center

Clear, practical guides for writing, compiling, and sharing LaTeX and Typst projects.

Draw with TikZ

Insert TikZ statements from the TikZ tools, change a node's coordinate and style without editing the text, and preview the picture as you type.

Insert statements from the TikZ tools

When the caret is inside a tikzpicture environment in a LaTeX file, the TikZ tools appear after the end of the caret's line.

How to do it

  1. Place the caret between \begin{tikzpicture} and \end{tikzpicture}. A bar marked TikZ appears at the end of that line; it is not shown in a read-only file or while you edit with several cursors.
  2. Choose Axes, Node, Arrow or \draw to insert that statement. Pointing at a button marks the line where it will go.
  3. The statement goes on the caret's line when that line is blank, and otherwise on a new line after the statement the caret is in.
  4. Type over the highlighted value, then press Tab to move to the next one.
  5. On a long line the bar shrinks to a TikZ button at the right edge of the editor; choose it to open the bar there.

Change a node's coordinate and style

On a \node statement written in the form below, with plain numbers for the coordinate, the bar shows the node's Coordinate and Style in place of the insert buttons.

How to do it

  1. Put the caret on the node. Its style and coordinate are underlined in the source and copied into the fields.
  2. Change the x coordinate, the y coordinate or Style, then press Enter or choose Apply. Only the fields you typed in are written, and one Apply is one undo step.
  3. A coordinate takes a number, optionally with a unit such as cm or pt. A value the bar cannot write is marked in its field, and nothing changes.
  4. Press Escape to discard what you typed and return to the source. Moving focus out of the bar, or the caret moving to another statement, also discards it.
  5. While a node is shown, the insert buttons are under Insert.
  6. Any other statement, for example one with polar or computed coordinates, curves, decorations or comments, shows Can't read this statement exactly; it stays as written. The bar never rewrites it, and you can still insert new statements.
\node[draw] (n1) at (0,0) {text};

Preview the picture as you type

TikZ preview draws the picture the caret is in above its \begin line, without compiling the whole document.

How to do it

  1. Place the caret inside a tikzpicture and pause; the picture appears above \begin{tikzpicture}. It is hidden while text is selected.
  2. The picture is compiled on its own with the preamble of the root file this file belongs to, and the project's PDF does not change.
  3. Click the preview and scroll, or use the arrow keys, to look around a large picture; press Escape to return to the editor.
  4. If the picture has no \end{tikzpicture} yet, the preview asks you to finish it; if the root file has no document preamble, it asks you to choose a LaTeX root that has one.
  5. The preview needs a connection to the server. When it is offline or unavailable, compiling the project still works.
  6. Under TikZ Preview in the editor settings, choose Follow Math Preview, Inline, Floating or No preview. Follow Math Preview, the default, uses your Math Preview choice.
  7. A local project in the desktop app has no server to draw the picture, so TikZ preview is off there and the setting is not shown.
Questions, bugs, and ideasAsk the community, report a bug, or vote on feature requests on the JointTex forum.
Account, billing, or privacy?Email our support team about your account, subscription, or personal data.
[email protected]
JointTex

Browser compatibility

JointTex could not start

The application did not finish loading. Check your connection, then try again.

Supported versions

  • Chrome and Edge 88 or later
  • Firefox 84 or later
  • Safari and iOS Safari 14 or later
Reload