TeX - LaTeX Asked by Yiannis Lazarides on December 21, 2020
I was peeking at the LaTeX3
Github repository and specifically l3auxdata.dtx
. There was a surprise for me, as I have been practicing and studying the expl3
syntax and modules for the last couple of weeks. The surprise was code like:
defauxwrite{auxdata_write:nn}
defauxshipout{auxdata_write_shipout:nn}
I am not too sure if there was a reason for the code to use def
, but this reminded me of my own difficulties with the syntax.
There is a great temptation when starting with expl
to bypass the verbosity of the expl
language and use def
and TeX
primitives. When I started with expl3
I was literally translating LaTeX2e
code in my head and then writing it down. Pretty much like when you learn a foreign language.
I have by now mostly overcome this as I forced myself to do the following:
def
s.module_dosomething:nn
. This way I was a bit quicker with debugging and typing. Only started adding l_
or g_
much later or on refactoring the code.module dosomething en en
. The reason I kept forgetting to write the specifier.tex_<cs>:D
like a command, I went back and refactored the code later to remove it.Do you have any additional tips and tricks to share?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP