Skip to main content

Questions tagged [argument-processors]

Argument processors allow manipulation of a grabbed argument before it is passed to the underlying code.

7 votes
1 answer
128 views

MWE: \documentclass{book} \usepackage{xcolor} \NewDocumentEnvironment{foo}{ D(){} O{} m }{start \fbox{#1, #2, #3}}{ end} \begin{document} \chapter{Example} \begin{foo}(optional parenthesised argument) ...
Grass's user avatar
  • 1,038
3 votes
1 answer
75 views

Consider the following code: \documentclass[10pt]{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\split}{m m}{ \seq_set_split:Nnn \l_tmpa_seq{#2}{#1} \seq_map_indexed_function:...
Vincent's user avatar
  • 6,225
1 vote
0 answers
57 views

I want to learn some advanced token manipulation techniques and set myself the following "academic" challenge: Write an environment that takes its body, places certain elements of said body ...
sqrt6's user avatar
  • 73
3 votes
3 answers
352 views

I am currently using the following in my preamble: \newcommand{\stacksref}[1]{% \cite[\texttt{\href{https://stacks.math.columbia.edu/tag/#1}{#1}}]{SP} } so that for instance \stacksref{AB78} gives ...
Elías Guisado Villalgordo's user avatar