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.

LaTeX3 Automatic Labels for Fun and No Profit

84 pointsby miguelmurcaabout 1 year ago

12 comments

cboltonabout 1 year ago
&gt; Yes, we are aware of typst. I think it’s cool, but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX. Likewise, many are aware of LuaTeX, but, again, the entrenching of a 40-odd year system is not to be underestimated. I am rooting for typst, anyway, and hope it finds its place.<p>Well here&#x27;s the process I went through in the last few years:<p>I found out about LuaTeX, saw it was supposed to replace pdfTeX and thought the future of TeX was bright.<p>Then I saw the continued efforts in LaTeX3 and thought that was weird and wasteful: code now looks even worse with all \ExplSyntaxOn ... \ExplSyntaxOff sections and the new command syntax like \exp_args:Ne. If you&#x27;re going to have a mix of two languages anyway, it makes much more sense for the second language to be a a minimal but real programming language like Lua.<p>Then the LuaTeX devs moved their efforts to LuaMetaTeX and I found myself scratching my head.<p>Then I spent some time with typst. Now I don&#x27;t care what happens in TeX land... The experience with typst is incomparably better, and the pace of development is high in both the core language and the ecosystem. Features that took a decade to be fleshed out in LaTeX are sprouting like mushrooms in typst. It&#x27;s not a fair fight.<p>The author is a PhD student that has been using LaTeX heavily for 10 years. But what should a new student use, and why? When the only reason to choose LaTeX is old colleagues and gatekeeping publishers, I know it&#x27;s a matter of time.
评论 #39755971 未加载
评论 #39756226 未加载
评论 #39756458 未加载
评论 #39757203 未加载
评论 #39756048 未加载
评论 #39756998 未加载
评论 #39755953 未加载
评论 #39760142 未加载
michaelmiorabout 1 year ago
&gt; Yes, it’s $YEAR and we’re still producing PDFs. Again, historical reasons plus the fact that most people doing maths are not necessarily very interested in computers.<p>I generally find PDFs to be a very agreeable way to read the sort of content LaTeX is typically used to write. And in writing it myself I don&#x27;t need to think about what weird layout issues someone else might encounter when viewing my content. There are certainly accessibility issues with PDFs, but also ways to mitigate that[0].<p>[0] <a href="https:&#x2F;&#x2F;libguides.lib.msu.edu&#x2F;c.php?g=995742&amp;p=8207771" rel="nofollow">https:&#x2F;&#x2F;libguides.lib.msu.edu&#x2F;c.php?g=995742&amp;p=8207771</a>
wdrozabout 1 year ago
&gt; Yes, we are aware of typst. I think it’s cool, but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX. Likewise, many are aware of LuaTeX, but, again, the entrenching of a 40-odd year system is not to be underestimated. I am rooting for typst, anyway, and hope it finds its place. A good place to start would be to provide a compilation toolchain from typst to TeX, if they really want to replace TeX.<p>Pandoc[0] can convert Typst to LaTeX.<p>IMO If you are able to write in Typst, write in Typst, it&#x27;s so much better and readable. Your final LaTeX3 macro are hard to read and difficult to parse with the eyes... Also Typst is easier to learn.<p>[0] -- <a href="https:&#x2F;&#x2F;pandoc.org&#x2F;try&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pandoc.org&#x2F;try&#x2F;</a>
评论 #39756151 未加载
评论 #39756056 未加载
larsrcabout 1 year ago
A nice intro to making macros, which is one of the most powerful parts of LaTeX indeed.<p>Autoref itself seems a fine way of messing up your references and making your source code less readable. The beauty of naming is that you have the context at hand. Moving around blocks of text, or adding and removing text, happens throughout the process. With autoref, you now have to remember to _sometimes_ update the refs or get subtly different references. I wouldn&#x27;t trust myself to get that right.
thangalinabout 1 year ago
Markdown does not specify how to add labels and cross-references for figures, equations, tables, etc. Many moons ago, I asked about them on the CommonMark forum[1] and described a syntax that was general and internationalizable. Given that CommonMark has frozen the Markdown specification, I implemented a consistent label and cross-reference syntax for my editor[2], KeenWrite[3]. These labels and cross-references are translated to XHTML, then transformed from XHTML into ConTeXt macros that are subsequently typeset.<p>[1]: <a href="https:&#x2F;&#x2F;talk.commonmark.org&#x2F;t&#x2F;cross-references-and-citations&#x2F;4013" rel="nofollow">https:&#x2F;&#x2F;talk.commonmark.org&#x2F;t&#x2F;cross-references-and-citations...</a><p>[2]: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;DaveJarvis&#x2F;KeenWrite&#x2F;-&#x2F;blob&#x2F;main&#x2F;docs&#x2F;references.md" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;DaveJarvis&#x2F;KeenWrite&#x2F;-&#x2F;blob&#x2F;main&#x2F;docs&#x2F;ref...</a><p>[3]: <a href="https:&#x2F;&#x2F;keenwrite.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;keenwrite.com&#x2F;</a>
rrgokabout 1 year ago
I still wonder why anyone would create such awful grammar for a programming language. Considering LaTeX&#x27;s initial release was 40 years ago, there were certainly other programming languages from which to draw inspiration.<p>And I certainly don&#x27;t believe that LaTeX DSL was the most suitable solution for solving typesetting problems.
评论 #39756508 未加载
评论 #39759418 未加载
评论 #39757168 未加载
评论 #39760275 未加载
评论 #39759401 未加载
nabla9about 1 year ago
The reason for LaTeX is the output quality, not the input.<p>Real LaTeX users don&#x27;t use LaTeX to write documents.<p><pre><code> whatever -&gt; pandoc -&gt; LaTeX -&gt; perfect document ^ | LaTeX template ----+</code></pre>
评论 #39757239 未加载
评论 #39759343 未加载
评论 #39757134 未加载
评论 #39757036 未加载
评论 #39757351 未加载
bltabout 1 year ago
Am i missing something, or is this useless when you want to refer to an equation from &quot;the past&quot;? I find myself doing that often. For example a methods section might pose an optimization problem, then the experiments section a page or two later says &quot;we solve the optimization `\eqref{main-problem}` using Solver X&quot;.
YWall39about 1 year ago
Nice piece, and his comment on typst is spot on. I would love for typst to displace LaTex, I hate LaTex and use it every day, and deep inside know it will never go away, unless a much better programmer than I writes a LaTex -&gt; typst converter that covers all the corner cases. One can always hope.
kunleyabout 1 year ago
The Post-Scriptum is hilarious:)
评论 #39756505 未加载
mmplxxabout 1 year ago
&gt; but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX.<p>Weird conclusion, because LaTeX has mostly replaced TeX.<p>There is a nice symmetry here:<p>C -&gt; C++ -&gt; Rust ~ Typst &lt;- LaTeX &lt;- TeX
bmachoabout 1 year ago
&gt; It’s weird I even have to say this, but don’t stalk me and email me at my personal address.<p>I am not sure of what happened, and it must have been unpleasant, but someone going up on your website hierarchy, they reach <a href="https:&#x2F;&#x2F;commutative.xyz&#x2F;~miguelmurca&#x2F;" rel="nofollow">https:&#x2F;&#x2F;commutative.xyz&#x2F;~miguelmurca&#x2F;</a>, they click the only link, and you personally list your profiles there, including email, github and insta. It is OK if someone contacts you for whatever reason on addresses and profiles that you explicitly shared.<p>&gt; If you email me anywhere else, I will not respond. I also cannot force you to follow basic etiquette if you do write, but it would be appreciated.<p>This is rude, it looks bad in the article, and you are the one who doesn&#x27;t follow basic netiquette.
评论 #39755823 未加载
评论 #39755842 未加载