Modern NewsTopAskShowBestNew

Top

    F3

    by tosh · about 2 hours ago

    298|github.com|73 comments

    San Diego photologs from the 1970s

    by jonathanmkeegan · about 2 hours ago

    62|www.beautifulpublicdata.com|9 comments

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

    by DominikPeters · about 4 hours 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.

    233|tikz.dev|46 comments

    Swift Package Index Joins Apple

    by JDevlieghere · 28 minutes ago

    18|swiftpackageindex.com|0 comments

    The truth about being a manager

    by adunk · 43 minutes ago

    31|sofiakodar.github.io|17 comments

    Unlimited OCR: One-Shot Long-Horizon Parsing

    by ingve · about 7 hours ago

    349|github.com|86 comments

    Lift4D: Harmonizing Single-View 3D Estimation for 4D Reconstruction In-the-Wild

    by ilreb · about 4 hours ago

    74|lift4d.github.io|5 comments

    Five monitors on a Commodore 128 [video]

    by EvanAnderson · about 24 hours ago

    48|www.youtube.com|10 comments

    The Coming Loop

    by ingve · about 7 hours ago

    183|lucumr.pocoo.org|150 comments

    Samsung Demonstrates 3D Stacked FETs with Triple Nanosheet Channels at 42nm

    by its_ajseven · 4 days ago

    39|semiconductor.samsung.com|13 comments