In a previous question, I learned that \ExplSyntaxOn and \ExplSyntaxOff should be put around a command because of the order in which expansion works in TeX.
Suppose now that I want to put things at the begining where I want to use expl3 and to input a huge text as in :
\ExplSyntaxOn
\AtBeginDocument
{
\bool_if:nT{\g_florian_whatever_bool} %\g_florian_whatever_bool being set with a key
{
blahblah %blahblah being a huge token list with many spaces
}
}
\ExplSyntaxOff
How can I still use normal spaces ' ' while writing blahblah ? I want to ensure legibility and ~ is not the best way.
\NewDocumentCommand, and also not clear why is “readability” that important. Usually you can write a text and then substitute in your editor the spaces for~, in case the input is a problem for you. – Manuel Jul 10 '16 at 12:47\NewDocumentCommand \fooinc { m } { #1 \ing_gincr:N \g_florian_whatever_int }and then after exiting expl3-mode\AtBeginDocument{\fooinc{the text that you want to add}}? – Manuel Jul 10 '16 at 12:55