We will be illustrating all of our examples with code listings in this tutorial, so let’s first show how to set them up.
An example setup which you can add to your header.tex
file is:
Useful to keep in mind: definitions in your header.tex
file are global to your article, while macros introduced in a paragraph are only local to that paragraph. That applies even to global commands such as \gdef
, as Authorea processes each paragraph independently of its surroundings. To create and edit your header.tex
file, follow these instructions.