@DavidCarlisle This
gist.github.com/nbro/d50b2ce40fd40a1c7a53186e4e083c87 is the code I would like to make a template of. Currently, this code is placed in its own
.tex
file, which I am
\input{template}
in my main
.tex
file. Now, I tried to do what you suggested, that is, to wrap that code in a
\def\mytemplate{ here goes my code that is in the gist }
, but when I do
\input{template}
, the code is automatically inserted in that place, without I having to write
\mytemplate
.