Skip to main content

All Questions

Tagged with
6 votes
3 answers
575 views

Questions about `\cs_new:...` and friends and their TeX relatives regarding global, local, long, nopar, protected, expandable and naming

This question is two-fold. Unfortunately, one side is opinionated, i.e. something to close-vote, so I put that part at the end and hope no one notices... The other side (coming first) are serious ...
Robert Siemer's user avatar
2 votes
1 answer
108 views

Parse standard balanced group within verbatim context

Say I want to write a custom parser which reads characters in a verbatim context, where the parser argument should be split into several kinds of tokens: Ordinary characters, i.e. all characters ...
siracusa's user avatar
  • 13.5k
5 votes
4 answers
774 views

Equivalent for \bgroup \egroup in LaTeX3

I am trying to apply a expl3 function to the contents of an environment. In LaTeX2e this can be achieved by using \bgroup and \egroup. In expl3, something does not work. I would expect the following ...
Jaeya's user avatar
  • 423
2 votes
1 answer
318 views

Create a fake label ref using list

Hello everyone once again, after having resolved my doubt regarding the use of \label and \ref. Reading the comments, I have noticed that in many occasions do not need to use the referencing system, ...
Pablo González L's user avatar
15 votes
5 answers
715 views

\tl_replace_all:Nnn recurse subgroups

Suppose I had a token list variable containing abc{ab{abc}c}. I want to replace every occurrence of b with d. As you can see there are subgroups containing b which I also want to have replaced, so ...
Henri Menke's user avatar
5 votes
2 answers
222 views

Is there a 'good' way to make 'local' changes outside of a group in expl3?

I have the following function: \cs_new_protected:Nn \termmenu_prompt:NN { \__termmenu_write_out:N #1 \group_begin: \ior_get_str:NN \c_term_ior \choice \tl_gset_eq:NN #2 \choice \group_end: ...
Sean Allred's user avatar
  • 27.5k
27 votes
6 answers
2k views

How do I get a value out of a group?

I've just recovered from my first real foray into LaTeX3 programming. It was ... an experience. Not a completely unpleasant one and once I'd gotten used to the syntax then I found it a lot easier ...
Andrew Stacey's user avatar