Skip to content

ABC Tool

  • Home
  • About / Contect
    • PRIVACY POLICY
Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

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

Posted on June 23, 2026 By safdargal12 No Comments on Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX
Blog


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 URL: https://news.ycombinator.com/item?id=48645437

Points: 36

# Comments: 6



Source link

Post Views: 2

Post navigation

❮ Previous Post: ROG Xbox Ally X Review – CNET
Next Post: Everyone pays the price as patent holders on seeds stifle innovation ❯

You may also like

Many readers recommend NextDNS, but few bother using it
Blog
Many readers recommend NextDNS, but few bother using it
May 16, 2026
Get ready with the latest beta releases – Latest News
Blog
Get ready with the latest beta releases – Latest News
April 27, 2026
Strava gets improved map styles, route saving, and off-route alerts
Blog
Strava gets improved map styles, route saving, and off-route alerts
June 15, 2026
Vodafone now fully owns the UK's VodafoneThree
Blog
Vodafone now fully owns the UK's VodafoneThree
May 6, 2026

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • OnePlus’s next compact flagship leaks, and it looks like a true iPhone rival
  • so much has changed in 6 months’ time
  • Google quietly adds LHDC v5 support to Pixel phones with Android 17 update
  • These Prime Day foldable phone deals are too good to ignore
  • Meta’s Got New Smart Glasses at a Lower Price, Plus a Kylie Jenner Look

Recent Comments

  1. uttzfyffuq on Best Meat Delivery Services for 2026
  2. dppfphxnid on Introducing Remote Terminal for Windows
  3. gdyznqvfoe on Introducing Remote Terminal for Windows
  4. dlufgsxzfv on Samsung Messages Is Going Away in July: Save Your Texts Before It Disappears
  5. blood strike top up on NYC Mayor Zohran Mamdani takes to Twitch to chat with New Yorkers

Archives

  • June 2026
  • May 2026
  • April 2026

Categories

  • Blog

Copyright © 2026 ABC Tool.

Theme: Oceanly News by ScriptsTown