When I'm writing my own private style packages, such as when developing them, I find it useful to use \typeout
to help me see what I've currently created or figure out what line of code is the source of the issues (particularly when a mysterious error message is getting thrown).
Currently, I'm refractoring some old expl3
code I created back when I understood very little expl3
. Throughout that code I've got things like \typeout
and a judicious sprinkling of \space
thrown in there to make terminal output simple and easy to read. I've come to actually like this terminal output because it helps me debug things, but I can't find anything expl3
equivalents of \typeout
. The best I can find is \msg_warning:...
which throws too much to the terminal.
Similarly, I like that I can concatenate \space
to create larger white space on the terminal screen. Concatenating ~
doesn't work.
A third macro I've come to really appreciate when debugging and outputting to terminal is \detokenize
.
It would seem that when write expl3
, I should stick with expl3
macros and such. Does anyone have any suggestions about writing expl3
equivalents for:
\typeout{....}
\detokenize{....}
\space
Aucun commentaire:
Enregistrer un commentaire