#expl3 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #expl3, aggregated by home.social.
-
Am Freitag sind die ganzen Umbauarbeiten am #KOMAScript Paket tocbasic etwas ins Stocken geraten, als sich mir aufgedrängt hat, in dessen Zuge eine echte #expl3 Ebene einzuziehen und dabei natürlich intern auf #l3keys umzustellen. Problem waren die key:=value-Optionen (z.B. "indent:=section"), weil l3keys ja neuerdings key:expansion=value beherrscht. Heute kam ich auf die Idee im expl3-Interface key!=value zu verwenden und das LaTeX2e-Interface per tl_replace kompatibel zu halten.
-
Last talk of the session is Joseph Wright speaking about the concept of templates in the #TeXLaTeX kernel.
The concept of providing common interfaces for Layout adjustments exists for a long time within the #TeX world but is now a thing which is pushed by the current development status, as it simplifies preserving the tagging while allowing more flexibility for the layout.
This is using the joy of #expl3 to some higher level commands towards the users.
-
Registering a new #expl3 prefix still feels like a big thing …
In case you are curious:
Currently preparing the #TeXLaTeX #ZUGFeRD/#FakturX module and the Dependency Printer for #CTAN uploads. Maybe will not finish everything before TUG next week… but who knows.
Both are still under development but I think spreading them for testing would help that process. [1/3]
-
It's a bit weird but I feel extremly honored: @gutenberg_TeX has published a translation of my #expl3/#latex3 tutorial to french. https://doi.org/10.60028/lettre.vi52.153
Thanks a lot to Patrick Bideault for translating. I was asked to check it, which is quite hard as I don't speak a full sentence of french I guess … but I was told he did great work there!
-
@dmm Now just for more #TeXLaTeX fun.
You don't need lua for that =P
\(\pi = \fpeval{pi}\)
or
The square root of \num{} is \fpeval{sqrt(\num)}.
(Didn't want to repeat the \def but guess it's clear one has to define it)
#expl3 has some user acessible macros for this.
https://texdoc.org/serve/usrguide/0 -
@malin That's #TeXLaTeX and not #TeX. In TeX itself it's all local except you actively change to a global assignment or definition.
I don't get the thing about multiplying, because you can multiply a counter and the assignment will be global as well. Would be interesting to find out.
But there now are integers in #expl3. It's making all that a lot easier especially the expansion control and is at least introducing a naming scheme to workaround the fact, that it's all just macros.
-
@dmm It's different, since it's only macro expansion, but yes, you can do programming tasks and #TeX itself is turing complete.
LaTeX is an extension to that, and so is the #LaTeX3 programming layer (#expl3), which is my favorite interface
To show an example, I did a demo showing sorting algorithms, since the professor gave us free choice of language: https://github.com/TeXhackse/expl3_sort