TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Exploring Typst, a new typesetting system similar to LaTeX

593 pointsby judell7 months ago

44 comments

__mharrison__7 months ago
I&#x27;ve moved all of my LaTeX-based content creation to Typst.<p>It&#x27;s:<p>- Fast—Compiling my books would take around 1 minute (I often had to compile twice due to indexing). With Typst, it takes less than 5 seconds.<p>- Easy to write—I actually don&#x27;t write it, I wrote a bunch of Pandoc plugins to tweak the output from Pandoc (I write all my books in Jupyter these days, so lots of markdown).<p>- Easy to read—I&#x27;ve used LaTeX for years (and wrote a bunch of tooling around it) and still couldn&#x27;t tell you when to use a { or a [. Typst is very readable.<p>- Easy to script—Okay, I did write some Typst the other day. I migrated my LaTeX-based invoicing system to Typst. I created a list of objects with pricing and count and was able to throw it into a table easily. It has less code than my LaTeX version, which was using a library, and is easier to read. (I did need to write a function to properly format $ because that doesn&#x27;t exist. A few rounds with AI made that easy.)<p>- Has great error messages—If you&#x27;ve used LaTeX, you know what I mean.<p>My needs are different from others, but I&#x27;m writing PDFs that need to be printed into a real book that looks professional. This includes front matter, footnotes, callouts, page numbers, page headers and footers, and indexes. I don&#x27;t do a lot of math-heavy stuff, so I can&#x27;t comment on that. And the widow&#x2F;orphan support is a little weak.<p>Otherwise, I&#x27;m happy to never use LaTeX again!
评论 #41825205 未加载
评论 #41824107 未加载
评论 #41827589 未加载
评论 #41826810 未加载
评论 #41824856 未加载
评论 #41825573 未加载
评论 #41825989 未加载
评论 #41832181 未加载
评论 #41826743 未加载
necovek7 months ago
References in established systems like LaTeX work the way they do for a reason: you don&#x27;t want to embed words in them (like &quot;Figure&quot; or &quot;Section&quot;) automatically because it does not work across languages.<p>Eg. both the article and docs at <a href="https:&#x2F;&#x2F;typst.app&#x2F;docs&#x2F;reference&#x2F;model&#x2F;ref&#x2F;" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;docs&#x2F;reference&#x2F;model&#x2F;ref&#x2F;</a> use an inline reference that wouldn&#x27;t work in Serbian.<p>Serbian (and many other languages) have suffix declensions, so while &quot;Figure 4&quot; is &quot;Slika 4&quot;, when used like &quot;in Figure 4&quot;, you really need &quot;u Slici 4&quot; (and lowercase, really) instead of &quot;u Slika 4&quot; as produced by Typst.<p>On the plus side, it seems to use OTF locl tables for substitution glyphs for language, though it only partially works for Serbian (might be due to bad locl tables for LinLibertine which seems to be the default font).<p>I am sure it&#x27;s not too hard to only get the reference number (eg. @foo.context.something?), but defaults should be good or maybe per-language?<p>I can see how they wanted to avoid authors having to hard-code the reference type if they change eg. something from an image to a table, but it&#x27;s hard to make it smart enough for any language.
评论 #41825837 未加载
评论 #41829172 未加载
评论 #41825973 未加载
评论 #41840131 未加载
评论 #41825829 未加载
YmiYugy7 months ago
In the very limited time I used typst it has been pretty amazing, but imho there is one missing feature that a LaTeX successor, but even more so, templating engine should have. Come up or adapt a format, that can defer certain styling decisions to the consumer of the document. Stuff like, font, font size, line spacing, citation style, double or single column, numeration style, etc.<p>On a different note, we got to find a better way to exchange data than pdf reports. In my totally made up estimation about 10% of development time for enterprise software is spend on variations of these pdf templating tools and another 20% on extracting data from such generated pdfs.
评论 #41824957 未加载
评论 #41829982 未加载
评论 #41824528 未加载
评论 #41826262 未加载
评论 #41827181 未加载
评论 #41830370 未加载
vslavkin7 months ago
I&#x27;ve been looking into it. It&#x27;s `blazingly fast` (aside from the rust joke, it really is way faster than latex), the syntax is more &quot;modern&quot;, consistent, etc.<p>The main problem is the popularity. It just does not have enough packages, at least for my use case.<p>I mainly do a lot of equations (simple math), and a loooot of tikz (forest, circuitikz, pgfplots, etc.) [<a href="https:&#x2F;&#x2F;gitlab.com&#x2F;vslavkin&#x2F;escuela&#x2F;-&#x2F;tree&#x2F;main&#x2F;5to?ref_type=heads" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;vslavkin&#x2F;escuela&#x2F;-&#x2F;tree&#x2F;main&#x2F;5to?ref_type...</a>] I&#x27;m not a fan of tikz, but it&#x27;s the only way to mantain the graphics homogeneous, clean, easily editable, compiled with the document and with links&#x2F;references. Cetz (the typst alternative) is years behind. I&#x27;ve been thinking of contributing, but tikz is really complex, and I don&#x27;t have enough time ATM.<p>Besides the typst packages, it also lacks the editor packages. I am an emacs user <i>insert joke here</i>, and I use AucTeX, which is a really great, and gigant package to edit latex (+cdlatex). AFAIK there&#x27;s nothing like it for typst, which makes me way slower.<p>Another thing is that they changed the math syntax. While the latex one wasn&#x27;t perfect it was insanely popular, because of its use on markdown and a lot of pages (and this was thanks to mathjax iirc).<p>The good thing is that something like latex or typst will always be needed, so there&#x27;ll always people that want to have something like it; latex&#x2F;tex isn&#x27;t really great, and it has a really low entry bar.<p>Maybe I&#x27;ll switch when I have more time to study it and make packages. (It could be as soon as next year or a late as... never)
评论 #41824641 未加载
评论 #41825796 未加载
评论 #41824979 未加载
评论 #41823757 未加载
评论 #41825365 未加载
评论 #41826771 未加载
评论 #41829359 未加载
评论 #41824920 未加载
elashri7 months ago
Previous discussions about Typst.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41014941">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41014941</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38354422">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38354422</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38047224">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38047224</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35250210">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35250210</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34423590">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34423590</a>
评论 #41823331 未加载
alphazard7 months ago
This is neat. I&#x27;ve used Latex before, and it definitely suffers from poor ergonomics. Both the language and tooling contribute to this.<p>The selling point seems to be that this is more similar to Markdown. That makes sense, Markdown is objectively more common and has more users than Latex. I&#x27;ve used both, but Markdown way more often.<p>Here&#x27;s something I don&#x27;t understand: it would be trivial to make Typst even more similar to Markdown, and yet it exists at some strange middle point in the language design space, arbitrarily far from Markdown.
评论 #41822489 未加载
评论 #41822888 未加载
评论 #41822585 未加载
评论 #41822921 未加载
评论 #41823416 未加载
评论 #41822547 未加载
评论 #41825601 未加载
评论 #41823821 未加载
评论 #41822468 未加载
knuckleheads7 months ago
Typst is a lot of fun and lets you do some really cool stuff. However! In the process of doing that cool stuff, you may need to debug things and that’s when it’s no longer fun. There is no way to print anything out to console and debug anything about what is going on. People have asked for it for over a year now and the authors have refused&#x2F;ignored their requests. I would be using it a lot more except for this. <a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;1669">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;1669</a>
评论 #41826802 未加载
评论 #41825818 未加载
viralsink7 months ago
I like Typst, but I&#x27;ve had a couple issues so far:<p>1. The line spacing. It&#x27;s not defined as baseline to baseline, but as the space inbetween two lines of text. Very difficult for an assignment with a prescribed line height since it usually refers to a baseline-baseline measure. 2. While having multiple columns is really easy, adding floating elements for the text to wrap around seems not possible. There&#x27;s a reason all these CV templates have the info bar on the right instead of the left.
评论 #41824249 未加载
评论 #41827559 未加载
bitexploder7 months ago
Built my resume with typst and know of several other folks using it for serious document typesetting. It is a very nice and modern typesetting system and language that just feels easy to make it do what I want.<p>It incorporates elements like templates and it is very easy to create reusable content “functions”. It is everything I want out of LaTeX while being super fast and easy to use.<p>Edit: pandoc can generate typst output if you want to explore :)
mbo7 months ago
First of all, I will commend the Typst community for attempting to rectify the trainwreck that is LaTeX typesetting. It appears that they have succeeded.<p>So Typst has its own styling system, and its own scripting system, and plugin system via WASM... isn&#x27;t this just HTML with extra steps? Not to mention that Typst doesn&#x27;t support HTML export <a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;188#issuecomment-1493319013">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;188#issuecomment-14933...</a>, which is a major impediment to vision-impaired accessibility in the academic community.<p>I think this is all a bit of a shame that there&#x27;s been no major efforts to reform HTML as the go-to file format for scientific publishing instead. All the elements are there - &lt;cite&gt;, citation.js, KaTex, Web Components, good plotting libraries (Observable Plot), WASM. Was all this extra engineering effort required to get us a Markdown style syntax? I know people hate XML-based markup... but it&#x27;s not _that_ bad, right?
评论 #41826113 未加载
评论 #41824010 未加载
评论 #41825752 未加载
moelf7 months ago
the current show-stopper issue is that Typst can&#x27;t insert PDF as figure[1], this makes a lot of scientific publication workflow impossible.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;145">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;145</a>
评论 #41829766 未加载
评论 #41828824 未加载
hggigg7 months ago
While I appreciate these projects, I can&#x27;t see any headway for something like this in our academic community. We have a very established ecosystem of LaTeX packages, styles and documents, some of which are more than 25 years old. Everyone knows it. Everyone collaborates with LaTeX. Knowledge is easy to pass on because it is well understood. Everyone knows (or are) the people who write the packages or maintain things behind the scenes. This is all quietly boiling away without a single thing on GitHub.<p>To move to Typst, we&#x27;d have to start again and build all that again, because I guarantee there&#x27;s stuff you just can&#x27;t do it in it. I mean I looked at the options for tikz. One publication we have has 520 tikz figures in it for example. And that&#x27;s dead.
评论 #41826335 未加载
sega_sai7 months ago
I was hoping that the syntax for equations would be borrowed from LaTeX but it is not the case unfortunately. I would like to switch away from LaTeX, but i think the syntax for equations in LaTeX is pretty sensible actually.
评论 #41823151 未加载
评论 #41826328 未加载
tcfhgj7 months ago
It took me a few hours to be able to do things I could never do in Latex, which I have had used for a number of documents like thesis, project reports, etc.<p>In Latex I always relied on googling random packages to fix weird stuff while in Typist I feel like I can do anything I want myself. The scripting capabilities are powerful and compared to latex insanely easy to use.
评论 #41827535 未加载
aragilar7 months ago
The two baseline criteria I have for better-than-LaTeX options are:<p>1. Maths support equal to or better than amsmath 2. LaTeX-style macros<p>Both are needed to make writing large amounts of complex equations acceptable.<p>There should also be something similar to unicode-math, cleveref and biblatex, easy-to-use options to control layout&#x2F;style&#x2F;output (including metadata).
评论 #41824614 未加载
daedac7 months ago
I&#x27;ve been using Typst for a while. It&#x27;s a joy to write in but currently has very limited scope. There&#x27;s a good summary of its current limitations here <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;typst&#x2F;comments&#x2F;1ej07al&#x2F;why_i_use_latex_instead_of_typst" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;typst&#x2F;comments&#x2F;1ej07al&#x2F;why_i_use_la...</a> .<p>For me, it&#x27;s basically a non-starter for academic work because it doesn&#x27;t support PDF and EPS images (there are currently issues with SVG too). They also have no plans to support PDF graphics (<a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;145">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;145</a>).
评论 #41831194 未加载
seanhunter7 months ago
I really want to like this because it seems a lot more accessible to folks than latex but I&#x27;m getting that &quot;uncanny valley&quot; feeling like when I look at equations that have been typeset in MS Word. They look almost, but not quite, good.<p>Like if you look at the equation for Binet&#x27;s closed form solution for Fibonacci numbers in the link below from their github, it looks to me like there is a bit too much space on either side of the plus sign in the equation for phi on the right hand side. And phi^n on the left-hand side looks too close to the 1&#x2F;sqrt(5).<p><a href="https:&#x2F;&#x2F;user-images.githubusercontent.com&#x2F;17899797&#x2F;228031796-ced0e452-fcee-4ae9-92da-b9287764ff25.png" rel="nofollow">https:&#x2F;&#x2F;user-images.githubusercontent.com&#x2F;17899797&#x2F;228031796...</a>
评论 #41827557 未加载
perlgeek7 months ago
In the near future, I&#x27;ll have to program the document generation part of an invoicing system.<p>In the past, I&#x27;ve done generated PDF documents through latex, and didn&#x27;t really like the process (for one, escaping is just so weird in latex, \ to \textbackslash for example).<p>I&#x27;ve thought about generating HTML and using a headless browser that can produce PDFs for me, but I don&#x27;t know how well you can e.g. control page breaks with CSS these days.<p>Maybe typst is actually a good alternative here? Does anybody have experience with typst and multi-page tables?
评论 #41831366 未加载
评论 #41828071 未加载
评论 #41855520 未加载
评论 #41828196 未加载
gxonatano7 months ago
Typst is a huge improvement over LaTeX, but makes the rather anachronistic decision to target paper-based media instead of screens. Unless you&#x27;re planning to print out all your papers onto physical paper, and you have stacks of different sized paper lying around (A4, US Letter, US Legal, etc.), PDFs are kind of old-fashioned. Why constrain your document&#x27;s width to eight and half twelfths of the length of some medieval king&#x27;s foot, when we have cutting-edge 1980s technology like HTML which can adapt to your screen width?<p>Incidentally, there&#x27;s an open issue with Typst for making HTML output, but I don&#x27;t understand why that wasn&#x27;t the project&#x27;s first priority. Even if scientific journals require PDF uploads, you can still get those from printing HTML. The opposite isn&#x27;t true at all.
vivekd7 months ago
I&#x27;ve tried typsit and Ive really been enjoying it. It&#x27;s very easy to learn and easy to use. It&#x27;s a new project so it can&#x27;t as of yet replace the functionality of LaTeX&#x27;s many packages. However it is good for quick and easy texts, it&#x27;s replaced markdown and office for me for writing simple documents on a computer.
vzaliva7 months ago
Slightly offtopic: many commenters lament that latex is slow. I switched to <a href="https:&#x2F;&#x2F;tectonic-typesetting.github.io&#x2F;en-US&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tectonic-typesetting.github.io&#x2F;en-US&#x2F;</a> which is very fast and have better error reporting.
评论 #41830443 未加载
评论 #41829620 未加载
tiffanyh7 months ago
My concern would be that this seems like such a niche market that only charging $8&#x2F;month, raises long-term viability concerns.<p>Last thing you want to do is use a platform that goes defunct.<p><a href="https:&#x2F;&#x2F;typst.app&#x2F;pricing&#x2F;" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;pricing&#x2F;</a>
评论 #41828292 未加载
cozzyd7 months ago
Until the arxiv gets typst support, I imagine this will get relatively little traction.
ThinkBeat7 months ago
What is the story with the fonts Typst uses? Does it come with a standard library of fonts?<p>I am not a fan of LaTex myself, but I admire it to some extent.<p>Other systems come along that are less verbose and easier to write, and faster. Yay.<p>And then people use it, and then someone thinks &quot;oh we should have this function&quot;, &quot;We need to add a feature for it to work well&quot; etc etc and slowly the system either bloats, and at some point, a person will look back at LaTeX and go<p>&quot;Oh that is why this existed, and ah that is why this is slow&quot;<p>Or one can choose to keep the new system simple and simply use LateX when something more is required.
评论 #41833060 未加载
enriquto7 months ago
It&#x27;s cute that you can write greek letters by spelling them, without any escape:<p><pre><code> pi, alpha </code></pre> What I&#x27;d really want to type is however<p><pre><code> π, α </code></pre> Will this work in typst? I had some trouble installing it.
评论 #41826031 未加载
riedel7 months ago
First of all, today I almost exclusively write all my LateX in overleaf, so a lot of pain of LateX distros is taken away. But the main thing was always good templates, so I found a collection of ML conference templates [0], that shows also that typst still has some issues with acutely reproducing existing styles. Also when having to submit sources, I guess cross compile to latex would be the only possibility (typically they accept Latex or sometimes MS Word)<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;daskol&#x2F;typst-templates">https:&#x2F;&#x2F;github.com&#x2F;daskol&#x2F;typst-templates</a>
divan7 months ago
I&#x27;m using Markdown&#x2F;LaTex to PDF&#x2F;HTML converter for preparing various legal&#x2F;rules documents. While this approach works for very simple documents, whenever I needed simple change (i.e. specific list numbering or break the page for chapters) the path to find the solution was long and painful.<p>Typst was a breath of fresh air, and I&#x27;m moving all my document generators to it and don&#x27;t look back.<p>The only thing I miss at the moment is generation of HTML (in addition to PDF). It&#x27;s possible to achieve via Typst+Pandoc I guess, but would be great to have it as an output target natively.
HerrmannM7 months ago
I have a love-hate relationship with LaTeX... in 2016, I wrote my PhD with it, for wich I defined lots of helpers and commands.I used xetex for some obscure reasons I don&#x27;t remember.The final result was beautiful but I dread opening any of those files. And it doesnt compile anymore.<p>Among all the systems (tools, languages, devices...) I exploited professinaly, LaTeX is the one that remains the most obscure and frustrating to me. I&#x27;m not sure why.
puffybuf7 months ago
Latex already has massive amounts of libraries. Simple things like chemistry or physics typesetting for example. That&#x27;s hard to just switch away from. can it do freetype fonts? I use XeLatex to change the fonts since the default gets boring. I&#x27;ve been doing all my math in latex for so long I feel like I can&#x27;t just switch to something else.
darkteflon7 months ago
Love to hear some informed opinions on typst versus quarto.
评论 #41822784 未加载
评论 #41822616 未加载
quotemstr7 months ago
C-f r u s t RET<p>But of course.<p>I&#x27;d rather see effort go into improving LaTeX performance instead of creating some new incompatible thing in a trendy language. One could also imagine an Elixer-style &quot;resyntaxing&quot; of LaTeX that would preserve compatibility with decades of packages. I don&#x27;t think a long-developed ecosystem should be given up lightly.
评论 #41827658 未加载
评论 #41829696 未加载
Munksgaard7 months ago
I use typst to generate PDFs on the fly in my sass-platform. The only other reliable ways I could find to do that was by using LaTeX (slow) or various WebKit-based tools (also slow, and in carious states of unmaintained&#x2F;deprecated). It works like a charm.
mixmastamyk7 months ago
Does this allow a book to be split into parts? One problem I had with Sphinx.
Semaphor7 months ago
If the author is reading, there’s a bug with dark mode, the `aside` (for the TOC) gets a background color of #d3d3d3 which results in very bad contrast as the font and heading are adjusted for dark mode.
beezle7 months ago
Real men use TeX or troff!
评论 #41826723 未加载
poulpy1237 months ago
wow that&#x27;s a really in-depth review, that&#x27;s nice.<p>I tried typst several months (or was it already a year?) ago, and I found it really great. I was even able to easily modify a simple plugin after barely playing 1 hr with it, where in latex that I used for years, I never even tried (to be fair the amount of plugins meant I didn&#x27;t need to).<p>I just wish I had a good reason to use it... maybe when the implement the html output ?
rsrsrs867 months ago
Typst is simply amazing. I wrote a thesis using latex and boy would I love if I had found about typst sooner.
lynndotpy7 months ago
I&#x27;d like to throw my two cents into the &quot;my experience is limited but I like it better than LaTeX&quot; ring. Because, in my limited experience, Typst is easier and faster than LaTeX by a lot.<p>I&#x27;d like to emphasize how important it is that Typst is a collaborative web-app like Overleaf-- 100% of the LaTeX use I saw in academia was on Overleaf.
pseingatl7 months ago
Does Typst have epub or html export?
评论 #41823020 未加载
iamgopal7 months ago
Is there typst based static docs generator out there ?
lutusp7 months ago
The central issue for new typesetting methods, unlike most software projects, is that to represent a solution, not a new problem, they must seamlessly communicate with other similar environments. So I have to ask:<p><pre><code> * Can Typist seamlessly export Latex? * Can Typist seamlessly import Latex? </code></pre> And I must link to the definitive XKCD cartoon on this topic: &quot;Standards&quot; <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;927&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;927&#x2F;</a> .
dsrtslnd237 months ago
is this comparable to asciidoc?
zamazan4ik7 months ago
For anyone who is interested in speeding up Typst, I can recommend taking a look at this issue: <a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;1733">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;1733</a><p>TL;DR - Profile-Guided Optimization (PGO) can improve Typst&#x27;s performance for 10%+
bitwize7 months ago
Ah, Typst -- the Wayland of formatting systems.
评论 #41825873 未加载