0

My first documents were very simple - just few rows of preamble and then the document content with the default settings - but most of my current projects require much more setup and the source code becomes very messy and quite difficult to read and review. I'm wondering if exists a more or less official style guide for LaTeX sources, like PEP 8 for Python. If not, what general rules should I follow to have an ordered code?

I'm particularly interested in the following:

  1. indentation
  2. new lines in commands with several arguments or long options lists, such as packages setup in the preamble
  3. structure of the preamble
  4. use of new lines to enhance readability (not the empty ones for new paragraphs, of course)
  5. use of \input{}
Ntakwetet
  • 631

0 Answers0