14

I'm interested in learning to program with expl3. While the documentation is well written - kudos to those who wrote it, must have been a major effort - it does not contain many code examples. Like probably most of us, I find that looking at examples greatly helps when getting into a new language or paradigm.

Are there some already released, useful packages out there that illustrate how to use expl3 style key processing, flow control, data structures etc. to solve some real world document formatting tasks?

10

There are nowadays many packages on CTAN using expl3, although the degree to which they stick 'properly' to the approach the team is trying to encourage varies. At least in part that's because the approach itself has developed over time!

If you would like to see more-or-less 'correct' code, I'd point to my own notes2bib, which is short but is in part a testbed for me for getting things right. (You remind me that a few updates are needed: will go to CTAN this week!) On a larger scale, my siunitx package uses a lot of expl3, though the current (v2) release was largely written whilst we were getting the programming guidelines correct. The development (v3) version is much better in this regard: I hope it will be a 'model' package on a large scale once complete: the code is available on GitHub.

Looking beyond my own code, Clemens Niederberger's code (see https://bitbucket.org/cgnieder) is a large set of material largely using expl3. Or you can search your TeX installation for ackage{expl3} (covers both \usepackage and \RequirePackage)!

  • 2
    in many cases that is probably not \usepackage but \RequirePackage, so better search for "ackage{expl3}" – Frank Mittelbach Nov 29 '16 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.