frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

I wrote my PhD Thesis in Typst

https://fransskarman.com/phd_thesis_in_typst.html
93•todsacerdoti•2h ago

Comments

rossant•1h ago
Great work. Screenshots would be nice.
Svoka•1h ago
I'm quite glad some alternatives are popping up. Using LaTeX feels like piece of 80s tech to be honest. It is obviously fine and super powerful, but, like vim-style fine. There got to be more contemporary alternatives that status quo.

Not everyone is into nostalgia. I don't try to take away LaTeX or vim from anyone, it just not for everyone.

Al-Khwarizmi•55m ago
It's not even fine. It's old and it shows also in the functionality, and I say this as a rather heavy LaTeX user. For example, Unicode support is atrocious. A few years ago I had to include some Hebrew and Russian words in a document that was otherwise in Latin alphabet, and it was hell.

I'm not a vim user but my understanding is that it has native Unicode support. Software with old-school UI but adapted to current needs (or where needs just didn't change) is fine, but it's not the case of LaTeX.

JadeNB•52m ago
XeTeX handles Unicode fine, but that's definitely one area where TeX shows its age and its extensibility didn't, I think, allow Lamport to make a real difference.
Al-Khwarizmi•43m ago
I have heard about it, but it isn't viable for me to switch to it because most academic journals and conferences have templates incompatible with XeTeX, or directly ask for the sources and compile them with pdflatex.

This is the same reason why it isn't viable for me to switch to typst either, by the way. I hope it gains popularity and ends up as a standard displacing (or along with) pdflatex.

JadeNB•53m ago
I appreciate your postscript. I don't use TeX or vim out of nostalgia; I didn't discover TeX until I was a senior in undergrad, and I think I didn't discover vim until after I finished my Ph.D. I use vim because it seems best for its tasks, given the way I think (though maybe I think that way because I'm old). I use TeX because I write math for a living and have invested a huge amount of time using it, so that it's become intuitive to me even though I know it wouldn't be for a newcomer, and I can't be bothered to break long-established habits until I know an alternative will be established everywhere TeX is.
andrepd•53m ago
Well yeah but the point is that unlike other pieces of 70s tech, LaTeX has no suitable alternative in its class (at least until now :p), meaning a FOSS software to produce high quality typesetting with an emphasis on maths.
commandersaki•4m ago
These are some notes I wrote when I started out with typst when comparing with LaTeX:

1. It doesn't generate 5 bloody files when compiling.

2. Compiling is instant.

3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style).

4. List items can be either - item1 - item2, etc. or [item1], [item2]. The latter is way better because you can use anchoring to match on the braces (like "%" in vim), which means navigating long items like our resume entries is much easier.

5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros where you need them.

6. It's easier to version control and diff, especially if you use semantic line breaks.

7. Changing page layout, margins, spacing between things, etc. just seems way easier to do.

WhyNotHugo•1h ago
Typst looks really promising, especially due to the fact that it had common templates (like the IEEE one) which produce content identical to LaTeX.

My biggest gripe with latex is the tooling. During my last paper, I ended up using a makefile which would usually work. When it didn’t work, running it twice would fix the issue. In the rarest cases, I had to run `git clean -xdf` and the next run would work.

I still have no idea what was going on, and most makefiles out there seem to be obscenely complex and simply parse the output and run the same commands again if a certain set of errors occurred.

shusaku•1h ago
The definition of insanity is doing the same thing twice and expecting different results.

By coincidence, this is the basic way to compile latex.

pcfwik•1h ago
Absolutely not a perfect solution, and maybe you're already using it within your Makefiles, but for anyone who doesn't yet know about it there's Latexmk[1] which is supposed to automate all of this hassle. I think at least on Debian it's included with texlive-full. In addition it has some nice flags like `-outdir` which lets you send all the crazy LaTeX intermediate build/aux files to a separate directory that's easy to gitignore.

https://mgeier.github.io/latexmk.html#running-latexmk

nextos•32m ago
LaTeX needs several passes to compile because it was designed with minicomputers of the 80s in mind, i.e. a tiny memory.

Latexmk is one way to address this problem. A good IDE like AUCTeX can also figure out how many times compilation should be invoked.

jeffparsons•1h ago
I think I used to understand this, but it's been a long time since I had to write any serious LaTeX, so I don't anymore. I found this snippet in my personal _quick-build-latex_ script from over a decade ago:

    if [ -z "$(find . -name "*.bib" -print0)" ]; then
        # Just two runs, to cover TOC building, etc.
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE"
    else
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        bibtex "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE"
    fi
So I guess if you're using bibtex, then you need to run it three times, but otherwise only twice?

This is to say... I'm glad those days are gone.

TimorousBestie•1h ago
I’m gradually moving my work over to Typst and it’s been a breath of fresh air. Compiles very quickly.

Perhaps the hardest part has been relearning the syntax for math notation; Typst has some interesting opinions in this space.

nomel•1h ago
mitex is an option [1]. There's no way I could learn another notation, at this point.

[1] https://typst.app/universe/package/mitex/

andrepd•56m ago
I'll only say that learning typst is easier than learning LaTeX.

It also has first class support for unicode (as does LaTeX via some packages) which if combined with a suitable keyboard layout makes both writing and reading math source code infinitely more pleasant :)

wenc•40m ago
Typst looks good, but I'm actually going back to LaTeX but paired with Claude Code in VS Code.

I took a hiatus from LaTeX (got my PhD more than a decade ago). I used to know TikZ commands by heart, and I used to write sophisticated preambles (lots of \newcommand). I still remember LaTeX math notation (it's in my muscle memory, and it's used everywhere including in Markdown), but I'd forgotten all the other stuff.

Claude Code, amazingly, knows all that other stuff. I just tell it what I want and it gets 95% of the way there in 1-2 shots.

Not only that, it can figure out the error messages. The biggest pain in the neck with LaTeX is figuring out what went wrong. With Claude, that's not such a big issue.

TimorousBestie•21m ago
Claude and the like are a huge problem for new languages that want to do new things. It was bad enough when a LaTeX replacement had to compete with forty-ish years of package development time. Now they also have to compete with the millions of lines of existing code LLMs have hoovered up.
tiagod•1h ago
I've used Typst to generate reports in multiple languages and it works pretty well for this! I just pass typst JSON with the report data and use it from there.
BiteCode_dev•1h ago
Pro tips: type long content unformatted, or barely formatted, then ask an LLM to format it using your markup of choice, then clean up the thing it got wrong.

They are very decent at inferring the context of stuff and will mark code, maths, titles so on farely decently. This lets you focus on the work of making it looks nice.

RestartKernel•59m ago
I'm always worried about LLMs unintentionally affecting the actual content, so the extra effort of carefully reviewing the diff just isn't worth it. Markdown + PanDoc is more sensible to me if your document is simple enough.
aziis98•49m ago
I successfully converted a typst report to md/mdx last week using this technique. For complex layout primitives I just told the llm to write a comment with a warning todo of the missing part it wasn't able to convert
dkga•13m ago
Well you can always diff the document. If it's not too large, then manually inspect it. If too long, then pipe the diff into the clipboard and send it to another LLM to summarise the changes.
andrepd•54m ago
Jesus
octernion•1h ago
i switched all of our pdf generation to typst - fantastic software. love how efficient it is; it makes previewing trivial and iteration very fast.
shermantanktop•54m ago
Why do CS doctoral candidates have such a fascination with typesetting? I mean, be into whatever you’re into, I guess.

But as soon as someone starts talking about LaTEX and how they spent months on their macros, I think “another hapless victim has fallen into LaTEX’s trap.” It’s like an ant lion that feeds on procrastinating students.

nailer•53m ago
I find it odd too. The fascination with typesetting limits the paper’s usability on narrower devices which seems a very strange position for engineers.
Swizec•49m ago
> Why do CS doctoral candidates have such a fascination with typesetting?

Same reason wantrepreneurs have a fascination with adding dark mode to their CSS. It feels productive while you avoid the real work.

thomasfedb•47m ago
I wrote my joint med-CS honours (1 year research thing we have in Aus) thesis in Word. My med supervisor was happy with it. CS supervised insisted I reformat it in LaTeX as he couldn't stand the typesetting.

Honestly I don't disagree with him, it looked far better in 'TeX. But that's probably a learnt preference.

In essence, it's culture.

wenc•45m ago
It's because LaTeX gives us a sense of legitimacy. (it's also why people go overboard with math notation in LaTeX documents, even when prose is more appropriate).

It produces documents that look like those produced by professors, and luminaries in the field. If you write equations in Word Equation Editor, your work just doesn't look very serious.

It's the same joy I felt when I laser-printed my first newsletter designed in Aldus PageMaker. I was only in my teens but I felt like a "professional".

pdpi•23m ago
> If you write equations in Word Equation Editor, your work just doesn't look very serious.

Haven't tried it in a while, but, last I checked, Word Equation Editor output didn't look serious because it looked janky and look like it wasn't really done in a "professional" tool. Part of that is a self-fulfilling prophecy of course, LaTeX output looks right in part because it's what people have been reading for decades, but TeX's formulas just look plain good.

TimorousBestie•16m ago
Most universities don’t formally train their STEM students in technical writing. At the graduate level, one is basically at the mercy of one’s advisor’s taste, for better or (usually) for worse.
nextos•42m ago
LaTeX typesetting is a solved problem. Memoir or Classic Thesis, paired with microtype, provide outstanding results and you need to spend zero time on tweaking stuff.

Typst is interesting, but it doesn't yet support all microtypography features provided by microtype. IMHO, those make a big difference.

wyager•38m ago
> Why do CS doctoral candidates have such a fascination with typesetting?

Why does anyone care about typesetting? Probably because they spend a lot of time working with text and have therefore developed a level of taste.

Just because the bottom 80% of consumers have zero taste and will accept any slop you give them doesn't mean there isn't value in doing something only appreciated by the top 20%. In any field, not just typesetting. Most people have ~no refined endogenous preferences for food, art, music, etc.

blindstitch•32m ago
The typesetting is finished whenever you want it to be. I spend most of my time thinking about the content.
commandersaki•54m ago
In case anyone hasn't seen some typst source and renders, here's a few documents I whipped up:

First is based on Todd C. Miller's Latex Resume Template:

- https://typst.app/project/rDUHMUg5vxl4jQ5q2grGPY

Second is a Enduring Power of Attorney:

- https://typst.app/project/rs9ZgGLhgM7iPvFs7PQv5O

Third a will:

- https://typst.app/project/r45dVk6MpLjsoXMvxkTxsE

pityJuke•48m ago
Glad to hear Typst has people doing serious work with it.

I’ve been able to avoid LaTeX. At uni, I went for org-mode -> LaTeX, which was OK except when my .emacs file was filling up with LaTeX stuff to make random stuff work. To be honest, that means I probably can’t even compile it again if I wanted to.

Typst has been awesome (always ran into LaTeX just being horribly inconsistent when layout stuff) when I’ve used it. Hope it continues.

vessenes•25m ago
I was on the typst train, particularly because its layout engine has some additional vertical control for long documents that latex lacks. However, just about when I was looking at moving over, LLM coding became good or at least good enough, and one area the current crop is bad at is doing layout in anything but latex. Not that they are good at latex, but they are terrible, terrible, terrible at typst. Really bad. Maybe in another year or six months!
dkga•14m ago
Well, they are good in markdown and rust. Perhaps feeding some Typst documentation overview into the prompt could solve it?
dkga•15m ago
Nice debrief. I think tough some of the downsides the author mentions can be addressed relatively easily with quarto, which has embraces Typst since its early days as I recall. Especially the bibliography issue.
shrinks99•15m ago
Very cool! I ran into the multiple bibliography issue when attempting to typeset my grandmother's PHD thesis which I was able to rescue from the 5.25" floppies it was originally stored on. I was planning on waiting until they solved this officially, but might give Alexandria a shot!

CF-Shield – An open source tool to protect any website with Cloudflare

https://github.com/Sakura-sx/cf-shield
1•Sakura-sx•42s ago•0 comments

Sodalite – Open Source Anonymous Media Downloader

https://sodalite.otter.llc/
2•oter•7m ago•1 comments

Scientists explore aerosols to weaken tropical storms

https://newatlas.com/environment/hurricane-killing-tech/
2•DocFeind•8m ago•0 comments

Google Cloud's outage wasn't a testing failure but a design flaw

https://ebellani.github.io/blog/2025/google-cloud-s-outage-should-not-have-happened-and-they-seem-to-be-missing-the-point-on-how-to-avoid-it-in-the-future/
1•b-man•9m ago•0 comments

A Dictionary of the Language of Myst's D'ni

http://www.eldalamberon.com/dni_dict.htm
1•lelandfe•14m ago•0 comments

You are what you launch: how software became a lifestyle brand

https://omeru.bearblog.dev/lifestyle/
1•sebst•17m ago•0 comments

Habit tracking for neurodivergent minds – Habitualy

https://www.habitualy.app/
1•abdullahss•20m ago•0 comments

The Implementation of This Site

https://vale.rocks/posts/the-implementation-of-this-site
2•OuterVale•21m ago•0 comments

AI can't cross this line and we don't know why

https://www.youtube.com/watch?v=5eqRuVp65eY
2•domofutu•21m ago•0 comments

But AI has no "I": A phenomenology of intelligence without self

https://d1wqtxts1xzle7.cloudfront.net/123187462/But_AI_has_no_I_A_phenomenology_of_intelligence_without_self_5.27-libre.pdf?1749430868=&response-content-disposition=inline%3B+filename%3DBut_AI_has_no_I_A_phenomenology_of_intel.pdf&Expires=1750639709&Signature=U5twm0dQbd0JKps5RezarQ339EkfaoOZIF2GYIDONMo6w8EdkvVEZd~UHdl426OVJK9TUChsdVCUY9f1cNzKyxR3O9nZqSL3OeO7tlF9zTEqg24K4Gdzv5aBGYJw9e2kVMeZijgo9CU4IFOGEJeCBy7-dQP6zy7yHMbnYWsKXu0WoJFI64ompe7TwObxFpZWFsGnNsZj6aiqb4SAL3brMCD46KZlIwCLMr-4Vc9izpGyuo1AXY3v3PCJPRctOnRp14iFBRWub7jXKIUrWxXmByn0650VbVF-HvVwuuC4frVk2cHJQ51NGDfffyR6awd-9wAwSTd8~slN0Fec5hnzfQ__&Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA
1•domofutu•22m ago•0 comments

The Future of Personalized Medicine Is Here: KJ's Story

https://www.chop.edu/centers-programs/genetherapy4inheritedmetabolicdisorders/future-personalized-medicine-here-kjs
2•monista•26m ago•0 comments

Claude-Code-SDK-Ts

https://github.com/instantlyeasy/claude-code-sdk-ts
2•handfuloflight•29m ago•0 comments

WWDC25: What's New in Passkeys [video]

https://www.youtube.com/watch?v=mV68bUYVSL0
2•DuckConference•30m ago•0 comments

Dev jobs are about to get a hard reset and nobody's ready

https://old.reddit.com/r/ClaudeAI/comments/1lhgdbd/dev_jobs_are_about_to_get_a_hard_reset_and/
10•ubj•32m ago•1 comments

Former Tesla owner: Here's what went wrong with my Tesla

https://old.reddit.com/r/AskReddit/comments/1cx5l0k/comment/l5127f6/
2•behnamoh•35m ago•0 comments

Gemini 2.5 threatening to kill itself after failing to debug your code

https://i.imgur.com/uwA7wxv.png
2•jay_kyburz•35m ago•0 comments

Apple defeats AliveCor bid to block US smartwatch imports in US appeal

https://www.reuters.com/legal/litigation/apple-defeats-alivecor-bid-block-us-smartwatch-imports-us-appeal-2025-03-07/
1•teleforce•47m ago•0 comments

Carts of Darkness (2008) [video]

https://www.youtube.com/watch?v=zi-f_J6hV-g
1•toomuchtodo•49m ago•1 comments

The Downside of Diversity

https://www.nytimes.com/2007/08/05/world/americas/05iht-diversity.1.6986248.html
1•mhb•49m ago•0 comments

All the Little Data

https://www.newcartographies.com/p/all-the-little-data
3•wigwamnh•53m ago•0 comments

Finding a billion factorials in 60 ms with SIMD

https://codeforces.com/blog/entry/143279
7•todsacerdoti•58m ago•0 comments

The Disney Bomb

https://en.wikipedia.org/wiki/Disney_bomb
1•beatthatflight•1h ago•1 comments

Jony Ive Deal Removed from OpenAI Site over Trademark Suit

https://www.bloomberg.com/news/articles/2025-06-22/jony-ive-deal-removed-from-openai-site-over-trademark-suit
3•thenicepostr•1h ago•1 comments

AI Tools for Hedge Funds

https://alexizydorczyk.com/ai-for-hedge-funds.html
1•izyda•1h ago•0 comments

Show HN: Lego Island Playable in the Browser

https://isle.pizza
3•foxtacles•1h ago•0 comments

Why Doctors Hate Their Computers (2018)

https://web.archive.org/web/20250104014248/https://www.newyorker.com/magazine/2018/11/12/why-doctors-hate-their-computers
1•PaulHoule•1h ago•0 comments

Steven Pinker's five-point plan to save Harvard from itself (2023)

https://www.bostonglobe.com/2023/12/11/opinion/steven-pinker-how-to-save-universities-harvard-claudine-gay/
1•mpweiher•1h ago•0 comments

Yah This Is C#

https://twitter.com/davidfowl/status/1936914514307657830
4•gokhan•1h ago•0 comments

Scientists find three years left of remaining carbon budget for 1.5°C

https://www.leeds.ac.uk/research-32/news/article/5801/scientists-find-three-years-left-of-remaining-carbon-budget-for-1-5-c
2•geox•1h ago•0 comments

Hawaii Highways

http://www.hawaiihighways.com/
2•yakattak•1h ago•0 comments