New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xparse regex argument specifier #820
Comments
But I guess that one can't do this in an expandable way, and that writing an expandable version that does something more or less sensible e.g. for such a in the bookmarks would be difficult to impossible? (That doesn't mean that one shouldn't write such commands, only that it should be documented/discussed how argument types behave in different contexts). |
Yes, non-expandable only, but that's no different to trailing-optional or verbatim or whatever. |
It would be a very nice addition, indeed. I'd not worry about expandability. Parsing expandably has to use different tools anyway. |
I've merged the |
In which files should new argument types be documented? |
I think new stuff should go into |
Where is usrguide3? Probably in some branch somewhere, but I cannot find it.
|
In the latex2e repository (but probably only in master at the moment - not checked) with the next PL there (hopefully in a few of days when @PhelypeOleinik has recovered from thesis stress) it should appear in "develop" there. |
It's in https://github.com/latex3/latex2e/tree/hotfix/gh448, which is as-yet not merged to master or to develop. (Ideally each hotfix should get merged across to develop as well as master, but I suspect we are going to bulk-merge master back to develop.) |
given that there are always merge conflicts because of the date and version changes (and we seldom have several hotfixes at the same time) doing a bulk merge back to develop when the PL is ready seems more sensible to me. |
Thanks all, I'll wait until all is settled down a bit more before starting on
this xparse issue. There is no rush at all.
|
I've re-reported at latex3/latex2e#1065 in the 2e format and without the discussion of the underlying |
With the addition of
\peek_regex_replace_once:nnTF
to l3regex in #779, it becomes rather easy to implement an all-encompassing argument type in xparse that would cover various additions that people asked throughout the years (e.g., grabbing any number of+
or*
tokens, grabbing digits, or whatever). Something likewould print A^{+++} and F^-. Just as for other argument types there could be an argument type
X
with a default value for when the argument is not found.The text was updated successfully, but these errors were encountered: