TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Typst: An easy to learn alternative for LaTex

649 点作者 vogu6610 个月前

46 条评论

mr-karan10 个月前
Typst has been pretty amazing, and at my organization, we’re very happy with it. We needed to generate over 1.5 million PDFs every night and experimented with various solutions—from Puppeteer for HTML to PDF conversions, to pdflatex and lualatex. Typst has been several orders of magnitude faster and has a lighter resource footprint. Also, templating the PDFs in LaTeX wasn’t a pleasant developer experience, but with Typst templates, it has been quite intuitive.<p>We’ve written more about this large-scale PDF generation stack in our blog here: <a href="https:&#x2F;&#x2F;zerodha.tech&#x2F;blog&#x2F;1-5-million-pdfs-in-25-minutes" rel="nofollow">https:&#x2F;&#x2F;zerodha.tech&#x2F;blog&#x2F;1-5-million-pdfs-in-25-minutes</a>
评论 #41017384 未加载
评论 #41020479 未加载
评论 #41019499 未加载
评论 #41020402 未加载
评论 #41016967 未加载
评论 #41022094 未加载
评论 #41025303 未加载
sprinkly-dust10 个月前
Having composed many pieces of coursework using Typst, I must say that it certainly makes academic writing more streamlined, engaging, and dare I say fun — though that might just be me. The functional nature of Typst&#x27;s syntax ensures I don&#x27;t have the erratic behaviour emblematic of modern day Microsoft Word and sometimes even Google Docs. Using a local IDE such as VSCode brings all the features one could like.<p>In comparison to LaTeX, overall document typesetting is far more straightforward. However, for long multi-page stretches of equations solving, I feel that LaTeX is easier to type than Typst because its syntax is not that of a functional programming language but more akin to markdown. Thus, one does not need to think as far in advance when typesetting equations with lots of functions, superscript, and subscript.
评论 #41016434 未加载
评论 #41016893 未加载
评论 #41016129 未加载
mkl10 个月前
A number of past discussions and related things: <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=typst" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=typst</a><p>1 year ago, 146 comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35250210">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35250210</a><p>8 months ago, 34 comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38354422">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38354422</a><p>2 years ago, 53 comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34423590">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34423590</a><p>2 years ago 30 comments: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32209794">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32209794</a>
评论 #41018245 未加载
评论 #41018244 未加载
MaxBarraclough10 个月前
I&#x27;m surprised to see that HTML output is currently in progress, and was not a core feature from the start. [0]<p>LaTeX&#x27;s awkward relationship with the web seems like something a competing greenfield project would try to nail right out of the gate (to mix metaphors painfully).<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;721">https:&#x2F;&#x2F;github.com&#x2F;typst&#x2F;typst&#x2F;issues&#x2F;721</a>
评论 #41021784 未加载
评论 #41017548 未加载
评论 #41017892 未加载
评论 #41016823 未加载
评论 #41017829 未加载
mr_mitm10 个月前
I can&#x27;t wait for LaTeX to go away in favor of Typst. The experience is night and day. Very impressed with their work.<p>I&#x27;ve been using Jinja2 templates to generate TeX files, but Typst can take a JSON over the command line and is easy to use and powerful enough that I can completely remove the Python step.<p>Not to speak of the compile time that is measured in milliseconds.
评论 #41017781 未加载
ttul10 个月前
Working as an intern in 1999, I was tasked with writing a standards document for VoIP telephones for the TIA working group working on this space. The standards organization had a Word template that everyone used, but as an engineering student, I had been working with and loving LaTex for some time and so naturally I thought… “why not just use LaTex? The final output will be in PDF anyway and the formatting will be better.”<p>The LaTex output was indeed better. My boss loved my work and had no idea that I wasn’t using Word. Feedback from the working group members was also positive. Wow, this kid has real talent! As a startup, making a positive impression on the giant companies represented in the working group was extremely important for the future of the company, if not its survival.<p>Unfortunately for me, one day my boss said, “could you send that Word doc over to big-whig so-and-so at massive-company-we-might-be-acquired-by? They want to use it as a template for a new document they’re writing.”<p>I got that sinking feeling similar to when my mom found out my friend and I had peed in my closet as an experiment at age four.<p>I then hired a friend to work all weekend painstakingly rewriting it in Word. Boss man got the document. Company was acquired for $100M 18 months later.<p>Either way, LaTex still looks 1,000x better than Word.
karencarits10 个月前
I guess this is a competitor to services such as overleaf [1] and codimd [2]. Although this is yet another syntax, it seems to be supported by pandoc [3]. Lately, I have been using Quarto [4] more and more as I program in R, which also produces very nice outputs, especially HTML. But none of these solve the academic usage problems of (1) producing nice diffs for reviewers, and (2) can easily be shared with, and commented by, non-technical collaborators. Thus, I fear Word will be difficult to replace for many years, at least in my field, for scientific writing<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;overleaf&#x2F;overleaf">https:&#x2F;&#x2F;github.com&#x2F;overleaf&#x2F;overleaf</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;hackmdio&#x2F;codimd">https:&#x2F;&#x2F;github.com&#x2F;hackmdio&#x2F;codimd</a><p>[3] <a href="https:&#x2F;&#x2F;pandoc.org&#x2F;typst-property-output.html" rel="nofollow">https:&#x2F;&#x2F;pandoc.org&#x2F;typst-property-output.html</a><p>[4] <a href="https:&#x2F;&#x2F;quarto.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quarto.org&#x2F;</a>
评论 #41017661 未加载
anserin10 个月前
The main problem I have with Typst compared with LaTeX is that it doesn&#x27;t handle basic fine typographic features, such as the different types of spacing in mathematical mode (mathop, mathbin, mathrel, etc.) or the size of delimiters (big, bigg, etc.)
评论 #41020718 未加载
评论 #41019365 未加载
ARandomerDude10 个月前
This looks really great and I&#x27;ll give it a try. I keep thinking, however:<p>My guessed probability that LaTex is free and maintained in 15 years: 99.9999%<p>My guessed probability that $OTHER_NEW_TOOL is free and maintained in 15 years: 5%
评论 #41023750 未加载
Ilasky10 个月前
I love Typst. It’s especially good for dealing with programmatic input as the —input flag can take json. [0] Then, in the file it’s easy to get the json with the dedicated json.decode() function. Super easy to get solid results. Swapped to it from LaTeX in my own project [1]<p>[0] <a href="https:&#x2F;&#x2F;typst.app&#x2F;docs&#x2F;reference&#x2F;foundations&#x2F;sys&#x2F;" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;docs&#x2F;reference&#x2F;foundations&#x2F;sys&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;resgen.app" rel="nofollow">https:&#x2F;&#x2F;resgen.app</a>
fhd210 个月前
Seems like it&#x27;s not built on top of LaTex, so you presumably can&#x27;t drop into LaTex when Typst can&#x27;t do what you need, or did I just miss that?<p>LaTex is positively arcane, but I still use it for all my writing since it&#x27;s so incredibly versatile: Academic papers, letters, contracts, forms, invoices, tons of packages, pretty easy to apply regional standards, ...<p>How I manage to not go insane is Org Mode: I can write almost everything in something similar to Markdown but do inline LaTex as needed (since it compiles from Org to Latex to PDF). I find that incredibly powerful.
评论 #41016563 未加载
评论 #41016493 未加载
pocket_titan10 个月前
I&#x27;ve been finding Typst a great tool for ~90% of my use-cases — in the other 10%, I&#x27;ll still reach for LaTeX for the extra power (tikz, pdf images, tagged pdfs (!) (this is becoming more and more of a requirement when publishing&#x2F;submitting academic texts, and AFAIK Typst does not support it yet), but that&#x27;s okay. Excited to see where it goes, as LaTeX is very beginner unfriendly and I&#x27;d love to see the barrier to entry for typesetting lowered so my more non-technical friends can share in the power of pretty texts &amp; CVs.
评论 #41016387 未加载
trostaft10 个月前
I&#x27;m following the progress of this package, I would not mind a more modern successor to LaTeX. I&#x27;m an academic, and I actually do not mind LaTeX. I find actually writing LaTeX to be fairly natural. But every time I come to the programmatic interface I feel like there&#x27;s a lot of room for improvement and that&#x27;s the most exciting aspect of typst.<p>I cannot, reasonably, start using this for work until journals begin accepting papers in the format. But I am following until either that starts happening, or some workaround exists.
评论 #41020097 未加载
Aerbil31310 个月前
I&#x27;m a college student and I use Typst in school all the time. I know I should just use Google Docs&#x2F;Sheets, but because it&#x27;s code instead of a WYSIWYG editor it&#x27;s very easy to create reusable and consistent styles for reports and presentations, and saves time on the long run. (I use polylux module for slides.) Once you get past the learning curve (10-15 hrs if you nosedive) it&#x27;s incredibly easy to create professional stuff.
评论 #41019641 未加载
amai10 个月前
Unfortunately out of the box typst is missing an important layout features compared to Latex: the auto-generation of headers (showing the section name in the header). There are some packages that help you with that:<p>- <a href="https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;hydra" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;hydra</a>,<p>- <a href="https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;chic-hdr" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;chic-hdr</a><p>- <a href="https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;wonderous-book" rel="nofollow">https:&#x2F;&#x2F;typst.app&#x2F;universe&#x2F;package&#x2F;wonderous-book</a><p>However I believe this functionality should be available in the typst core.
评论 #41021075 未加载
评论 #41019674 未加载
__mharrison__10 个月前
I would love to replace latex but I only use it for making physical books and none of the replacements have the features needed...
评论 #41022718 未加载
renerick10 个月前
I make TTRPG character sheets with Typst. No only they look great with perfect page layout, the programming capabilities allow to compute everything from ability scores automatically, like Excel. It&#x27;s really well designed, and fast too, VS Code integration just works (for me at least)
pgen10 个月前
I personally prefer ConTeXt (<a href="https:&#x2F;&#x2F;wiki.contextgarden.net&#x2F;ConTeXt_Standalone" rel="nofollow">https:&#x2F;&#x2F;wiki.contextgarden.net&#x2F;ConTeXt_Standalone</a>).<p>It&#x27;s comparable to LaTeX, but better in my opinion.
评论 #41018970 未加载
owenpalmer10 个月前
This is a Typst + Neovim live preview project: <a href="https:&#x2F;&#x2F;github.com&#x2F;chomosuke&#x2F;typst-preview.nvim">https:&#x2F;&#x2F;github.com&#x2F;chomosuke&#x2F;typst-preview.nvim</a><p>It looks similar to Gilles Castel&#x27;s famous note-taking setup:<p><a href="https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;lecture-notes-1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;castel.dev&#x2F;post&#x2F;lecture-notes-1&#x2F;</a><p>I would love to see someone combine this with Anki for quick math flashcard creation
hgyjnbdet10 个月前
I saw this come up today in a different thread.<p>I&#x27;m a mature undergrad, I&#x27;ve never used LaTeX, actively avoided it in fact and am forced to produce word documents. My current workflow is pandoc style markdown and obviously pandoc for conversion, with zotero for citations. I make use of pandoc-crossref for figures, tables, sections, etc.<p>I&#x27;m hopefully moving to a different uni for a masters this year. Can anyone who uses typst comment on whether I should consider moving from my fairly complicated workflow to typst?
评论 #41021972 未加载
byteplane10 个月前
I’d be happy if this takes off just for the fact that their default typeface (or at least the one shown on the website) is so much better than “Computer Modern”!
zmmmmm10 个月前
We use a custom tool that bases everything on markdown for this type of thing. It also integrates Jupyter notebooks. It is mostly very effective but the limitations of Markdown certainly grate. Having said that the best thing by far is that it&#x27;s automatically viewable in Gitlab&#x2F;Github in source form. This doesn&#x27;t look like it would fare all that well.
uger10 个月前
I love Typst for text and equations, but I find that it is taking me time to adapt to their table syntax and be able to make tables similar to booktabs. I&#x27;m hoping that Estout or Modelsummary will be able to write Typst tables with complex formatting soon.
isatty10 个月前
Disclaimer: I haven’t tried the syntax but it doesn’t scream “easier” to me. Latex doesn’t either.<p>Plus this doesn’t seem to compile down to latex so I also lose the engine. From experience, latex makes beautiful documents and choices which I’ll always prefer over ease of use.
Shorel10 个月前
Two things interest me from this project:<p>More templates than LaTeX. I have made PDF presentations in LaTeX, which look good, but they all look the same. Some variety is good.<p>Unicode chars support. I prefer to type α instead of \alpha.<p>That&#x27;s it, both things together will make a LaTeX killer for me.
评论 #41025056 未加载
jbd010 个月前
Seems like a pain to install. I&#x27;m looking forward to this being packaged for Debian.
rochak10 个月前
Have been using it for a while. Can’t overstate how much better the experience has been compared to LaTeX. As someone who had to use LaTeX not out of choice, I’m so grateful this exists so that I can no longer bother to decipher the mess of LateX.
Neywiny10 个月前
This feels like a mix of markdown readability with latex control. I&#x27;m not sure yet that I need that middle ground. Currently I&#x27;m doing docs in markdown, reports in Python generated tex, coupled with hardcoded preambles. That seems fine so far.
sivsivsree10 个月前
Been using this for a while for all my organization documentation, helps me keep the consistency and identity among the peers.
xyst10 个月前
This is very easy to use compared to latex. My latex resume (or the template I was using) was thousands of lines and had several imports of custom classes.<p>Re-did my resume using one of their templates, and it’s much easier to maintain now.
amai10 个月前
Quarto already supports typst: <a href="https:&#x2F;&#x2F;quarto.org&#x2F;docs&#x2F;output-formats&#x2F;typst.html" rel="nofollow">https:&#x2F;&#x2F;quarto.org&#x2F;docs&#x2F;output-formats&#x2F;typst.html</a>
bucephalos10 个月前
Nowadays, I use Latex mainly for letters using the great KOMA package. I wouldn&#x27;t mind switching to a markdown based system for that. Would Typst work to produce DIN format letters?
评论 #41017278 未加载
8n4vidtmkvmk10 个月前
Can I use this to generate PDF invoices from PHP?<p>I&#x27;ve been searching for a good solution for the past 15 years. Never been happy with the solutions, and my PDFs are always very ugly.
评论 #41024550 未加载
kerkeslager10 个月前
This is the sort of thing that I&#x27;m excited about because it solves problems I have, but can&#x27;t really use for much because I&#x27;m not sure if it will exist in a year.
评论 #41022513 未加载
spacebuffer10 个月前
This is very interesting, seems to be like LaTex + a whole lot more.<p>I need to generate udemy-style certificates for a project I am working on. are there any guides on generating PDFs with typst?
hgyjnbdet10 个月前
Quarto appears a popular alternative, out of interest is anyone using Zettlr?<p><a href="https:&#x2F;&#x2F;www.zettlr.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.zettlr.com&#x2F;</a>
Duanemclemore10 个月前
Oh it&#x27;s pandoc compatible which means my favorite LaTeX trick is possible - writing in an IDE then using pandoc to convert to icml for linking inside InDesign.
drsopp10 个月前
From the first example, I don&#x27;t understand from the syntax why the first formula becomes inlined while the second one is centered on the page.
评论 #41023288 未加载
thefringthing10 个月前
Just don&#x27;t try to put a footnote in a heading. I&#x27;ll keep using LaTeX until Typst is less buggy.
summarity10 个月前
I can&#x27;t get past the sign-up form: &quot;503 Service Temporarily Unavailable&quot;
wiihack10 个月前
I use Typst every day for my work. It is great software.
ThinkBeat10 个月前
Where does it get its font from?
评论 #41029423 未加载
评论 #41020347 未加载
aragilar10 个月前
Does this have support for macros? It doesn&#x27;t appear to, and so feels a bit like another variant on markdown (with its own special syntax)? It&#x27;s not clear to me why I&#x27;d use this, compared with RST (where I can generate LaTeX or HTML, and script with python)?
评论 #41023227 未加载
评论 #41022421 未加载
mohamez10 个月前
The best thing about Typst is that it&#x27;s intuitive.
humanfromearth910 个月前
So, anyone using it?
评论 #41016960 未加载
kkfx10 个月前
LaTeX is not just a set of macros over TeX to produce (nowadays) some pdf, it&#x27;s a very big library of ready-to-use packages for pretty anything, that&#x27;s VERY hard to &quot;substitute&quot;.<p>You want inspiration for some strange table layouts? There are gazillion ready made; some graph? TiKz&#x2F;PGF have gazillions of ready made examples... Want a programming language in the middle? Python, Lua etc can be embedded straight away.<p>So far I&#x27;ve seen few tentative to &quot;replace or hide LaTeX&quot;, from the old DocBook to ConTeXt, no one succeed simply because of all the LaTeX already made and easy to import. Having alternatives, especially seen the actual &quot;fragmented&quot; development is nice, but honestly I doubt it can take off. Proprietary products are fast to wane in popularity if a serious competitor pops up because the users does not own them, FLOSS are much calmer since anyone can grab a piece and integrate ideas of someone else without the need to switch.
评论 #41020315 未加载
评论 #41017026 未加载