Diagrams, drawn inside your equations

Draw lines, arrows, circles, curves and labels with the mouse, and keep them as LaTeX’s picture environment — so a labelled triangle, a vector or a pair of axes sits in an equation like any other piece of maths, and stays editable.

Open the editor

The Picture editor: a tool strip on the left, a right triangle with labelled sides and angle drawn in the middle and selected, and the triangle's settings in the side panel on the right
  • Lines and arrows
  • Circles and curves
  • Labels
  • 100+ symbols
  • SVG
  • fxpicture.sty

Pictures to start from

Each is drawn here by the same fxTeX the editor uses. Edit this picture opens it in the editor, where the picture panel’s first button opens the Picture editor to change it.

A right triangle

Geometry
Edit this picture →

Axes and a curve

Graphs
Edit this picture →

A circle and its radius

Geometry
Edit this picture →

A labelled vector

Physics
Edit this picture →

A triangle and an arc

Geometry
Edit this picture →

A smooth curve

Curves
Edit this picture →

On a grid

Graphs
Edit this picture →

Dashed and dotted

Line styles
Edit this picture →

One drawing, wherever it is going

Into your LaTeX document

Everything the editor draws is standard LaTeX — the picture environment and pict2e — with two small additions from fxpicture.sty. Add it to your preamble and the same picture compiles in pdfLaTeX, LuaLaTeX or XeLaTeX, on Overleaf or your own machine.

About fxpicture →

Onto a web page

fxTeX Pro draws each picture as SVG, inside the equation, in the reader’s browser — so the page keeps the LaTeX, and the labels are live maths rather than part of an image.

fxTeX →

Into a worksheet

Leave a label empty and it becomes a box to fill in: the length of a side, the size of an angle. Or download the picture as an SVG or PNG for slides and handouts.

Questions

How do I draw a diagram in LaTeX online?

Open the editor and press the first button of the picture panel. Draw with the tools down the side — line, arrow, circle, oval, box, text, curves, polygon, arc and grid — and Insert puts the picture into your equation as LaTeX.

Can I change a picture later?

Yes. Click a picture’s lines in the equation, or double-click it, and it opens in the Picture editor again. The LaTeX is shown beside the drawing, and changing either changes the other.

Will it compile in my own LaTeX?

Yes, with \usepackage{fxpicture} in your preamble: it loads pict2e and graphicx, and adds dashed and dotted lines and symbols. Download fxpicture.zip.

Is it free?

Yes, for non-commercial use: study, teaching, research, or a personal site. Pictures made as part of work you sell — a book, a course, a product — need a licence. How licensing works.

Try it on the real thing

The full editor is on the home page, with suggestions as you type, history and every export format. It is free for non-commercial use — study, teaching, research or a personal site. Building it into something you sell needs a commercial licence.

Open the editor See licences

More ways to use it