frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
112•DominikPeters•1h ago
Hi all! TikZ is a widely-used LaTeX package for drawing figures in papers. It uses commands like \draw[->] (0,0) -- (1,2); to draw lines, shapes, text, etc. Academics usually code up their figures by hand, so there is lots of twiddling around with the coordinates and recompiling until things look nice. I guess it’s a bit like SVG, but it’s more code than markup, for example it has loops with \foreach.

I built an open-source WYSIWYG TikZ editor (available for web and desktop) that allows you to edit your TikZ source code visually by dragging and resizing elements. It simultaneously shows the source code and the rendered figure, and lets you edit either one while the two views stay in sync. I’m not aware of any other editors that are simultaneously source editors and WYSIWYG (even for editing SVG or HTML), and I’m quite pleased with how well the combination works.

The way the app is implemented is by parsing the TikZ code, and at all times keeping track of the exact source location of each object. Thereby, when a user drags an element to a new position, the app can override just the numbers in the coordinate without changing anything else in the code (such as line breaks or indentation).

This approach essentially required reimplementing a large fraction of TikZ, which is the kind of task that no human would ever want to do. I think building software that doesn’t exist yet because it would be impossibly tedious to code up is one of the great new possibilities thanks to coding agents, and it’s worth brainstorming for other examples. (This app was built almost entirely by Codex.)

Implementing the app came with lots of fun side quests, including building converters from SVG / pptx / ipe to TikZ, re-implementing the LaTeX hyphenation and line-breaking algorithm to support multi-line nodes, and making a color picker that uses the red!20!black color mixing notation used in LaTeX papers.

Comments

k33n•1h ago
Wow, this is really, really great. Congratulations on an excellent offering and piece of tech!
adityamwagh•1h ago
Hey! I've always wanted something like this! Thanks for building this!
GL26•58m ago
All STEM students and researches from the world thank you
Littice•48m ago
The killer feature for me is not drawing TikZ visually, but being able to touch old TikZ without turning the source into generated-looking soup.
DominikPeters•46m ago
Exactly, I wanted to avoid that. In contrast, if you open an SVG in (for example) Inkscape and make a minimal change and save, the resulting file has little to do with the original.
__mharrison__•47m ago
This is very cool, but I'm going to say the inevitable...

How hard would it be to support cetz? I'm not touching LaTeX if I can avoid it, but I'm using Typst all the time.

master-lincoln•44m ago
As a student I really wanted something like this. Thanks for making it open source. My theoretical computer science prof happened to be Till Tantau the inventor of TikZ. An awesome communicator too.
DominikPeters•20m ago
Schleswig-Holsteiners are everywhere :) Till Tantau also started the beamer package for making LaTeX presentations. Both beamer and tikz are very important contributions to science communication.
hosteur•42m ago
Wow. I would have loved something like this when I was studying in University.
dima-quant•40m ago
This is great, nice concept! Good use of coding agents. Now I can make diagrams much faster.
quantummagic•39m ago
Great job! Thank you for making it open source.

At some point the people who seethe with hate for AI, and claim it's all hallucinations and illegitimate hype, are going to have to admit they were wrong. Projects like this are the proof staring them right in the face, if they care to look.

Barbing•30m ago
They’ve updated their criticisms since - bottom of career ladder disruption, skill atrophy.

(Not on HN but I do still see some folks who last tested LLMs before Nov ‘25, those folks might still be mostly out of touch.)

david_2107•38m ago
That's awesome! Long overdue.
whatever1•37m ago
OMG! Psychiatrists are going to lose all of their graduate customers!

The world thanks you.

delta_p_delta_x•35m ago
This is superb. Will you consider adding support for pgfplots[1]? When I was a student I was long considering writing a native application for real-time TikZing.

[1]: https://ctan.org/pkg/pgfplots?lang=en

DominikPeters•17m ago
I think pgfplots should in principle be possible. I've postponed it thus far because pgfplots is GPL licensed, while the editor is MIT licensed, so I would need to distribute pgfplots support as a separate add-on. But in due course, putting in add-on infrastructure could make sense, because it would also allow adding support for stuff like tikzcd and CircuiTikZ (or tikzpingus!).
emil-lp•32m ago
Here's what I would need: the ability to position five nodes in a circular fashion, so that they are evenly spaced.
DominikPeters•26m ago
Intriguing thought. Of course by writing code it can be done

  \foreach \i in {1,...,5} {
    \node[circle, draw] (n\i) at ({90 - 72*(\i-1)}:1cm) {$\i$};
  }
but I'm not sure how to expose that as a UI in a nice way (maybe: if something uses polar coordinates and the user holds shift, then during drag the radius stays fixed, and I nudge towards even angular spacing + multiples of 15 degrees?)
e2e8•14m ago
That sounds like the array modifier in Blender
j2kun•27m ago
Neat! I also enjoyed https://q.uiver.app/ by https://github.com/varkor which is a bit more specialized.
DominikPeters•12m ago
Yes, there are several editors for more specialized things. Other nice examples: https://tikzit.github.io/ and https://www.circuit2tikz.tf.fau.de/designer/ and https://tikzcd.yichuanshen.de/
sorenjan•24m ago
Looks really nice. You might consider adding some presets to make it easier to get started, like some common neural net architectures and other use cases for TikZ.
DominikPeters•23m ago
Good idea. There is File > Open Example, but it could be extended for sure. On desktop you can even directly open an arXiv paper!
dvorka•13m ago
I needed exactly this for years excellent work!

You Can't Subtract the Model

https://hari.computer/you-cant-subtract-the-model
1•markovblanket•39s ago•0 comments

Less is more, more or less

https://jakub.kr/writing/less-is-more
2•hnhsh•48s ago•1 comments

Factory job cuts in June neared financial crisis and Covid levels, S&P says

https://www.cnbc.com/2026/06/23/factory-job-cuts-reported-around-financial-crisis-and-covid-level...
3•toomuchtodo•2m ago•2 comments

Ask HN: Best prompt to show that AI isn't ready to take over

2•AndrewSwift•2m ago•0 comments

Show HN: Mirrorball – easy port forwarding for remote dev hosts

https://mirrorball.sanil.co/
3•sanil•5m ago•0 comments

Netflix's video podcast engagement numbers 'are low,' per insider

https://awfulannouncing.com/netflix/video-podcast-engagement-numbers-are-low-matthew-belloni.html
3•Vaslo•5m ago•0 comments

Ask HN: When should we expect DNS-persist-01 in production?

3•cromka•5m ago•0 comments

Show HN: Get lead and research lists from one search

https://sensecollect.com
2•chrislxy•6m ago•0 comments

Beehiiv adds Cloudflare AI Crawl Control so writers can block or allow bots

https://siliconangle.com/2026/06/23/beehiiv-adds-cloudflare-ai-crawl-control-writers-can-block-al...
2•ilreb•6m ago•0 comments

Designing an App Icon That Feels Like an Album Cover

https://rajavijayaraman.com/writing/designing-an-app-icon-that-feels-like-an-album-cover/
2•rajavijayaraman•6m ago•0 comments

Show HN

https://matchups.live/
2•uxmeekkow•7m ago•0 comments

Doctors Thought It Was Asthma. A.I. Flagged a Serious Heart Problem

https://www.nytimes.com/2026/06/22/health/artificial-intelligence-heart-damage.html
2•brandonb•7m ago•0 comments

Private Orchards – Practical iPhone Privacy and Security Guides

https://privateorchards.com/
2•PrivateOrchards•9m ago•0 comments

I turned World Cup data into posters

https://zehfernandes.com/posts/how-i-turned-world-cup-data-into-posters
2•plurby•9m ago•0 comments

Onsubmit.dev

https://onsubmit.dev
2•ekwoster•9m ago•0 comments

Show HN: Wype – Strip GPS, timestamps, and device models from your files

https://wype.onrender.com
2•achlyssecurity•10m ago•0 comments

Cargo Culture

https://www.wheresyoured.at/cargo-culture/
2•crescit_eundo•10m ago•0 comments

Seedance 2.5

https://seedance2.ai/seedance-2-5
4•bytegogogo•11m ago•0 comments

Study of niacin (vitamin B3) in patients with newly diagnosed glioblastoma

https://link.springer.com/article/10.1007/s11060-025-05351-z
4•bookofjoe•11m ago•0 comments

Shopify replaced Redis with MySQL for inventory reservations–and it scaled

https://shopify.engineering/scaling-inventory-reservations
2•ohjeez•12m ago•0 comments

Show HN: Snowscroll – I removed addictive feeds from social media

https://snowscroll.com/
2•junnam586•12m ago•0 comments

You Cannot Grow a Pumpkin

https://taylor.town/pumpkin
2•surprisetalk•14m ago•0 comments

Using Elasticsearch Percolate for User Notifications

https://acv.engineering/posts/elasticsearch-percolate/
2•mooreds•15m ago•0 comments

The unlikely upside to age-gating

https://reedandpickup.com/2026/06/17/the-unlikely-upside-to-agegating.html
2•speckx•15m ago•0 comments

Toward More Controllable AI Video Editing: Research Exploration at Netflix

https://netflixtechblog.com/toward-more-controllable-ai-video-editing-an-early-research-explorati...
2•MattSayar•18m ago•0 comments

Meta launches cheaper smart glasses without Ray-Ban

https://www.theverge.com/tech/954052/meta-glasses-hands-on-kylie-jenner-smart-glasses-price-batte...
3•dkobia•18m ago•1 comments

Walmart to Acquire Vibe.co to Expand Access to Connected TV Advertising

https://corporate.walmart.com/news/2026/06/23/walmart-to-acquire-vibe-co-to-expand-access-to-conn...
3•pil0u•18m ago•0 comments

Are AI and robotics about to free the wealthy from the threat of revolt?

https://morbidcuriosity.substack.com/p/the-age-of-bunker-capitalism
2•pnwpnw•19m ago•0 comments

Why developers use LLMs to write blog posts

https://writethatblog.substack.com/p/report-llms-tech-blogs
3•cyndunlop•19m ago•2 comments

How 2 Designers ditched Figma (sort of) to rebuild a marketing site

https://buildwithfern.com/post/building-fern-site
6•theanswa•19m ago•1 comments