What are some good practices when typesetting LaTeX documents?
I use LaTeX mostly to typeset papers. Here is a short list of what I consider LaTeX good practices, most of them would be common sense in any programming language:
- When writing a large document (book), keep the chapters in separate files
- Use a versioning system
- Repeated code (i.e. piece of formula occurring many times) is evil. Use macros
- Use macros to represent concepts, not to type less
- Use long, descriptive names for macros, labels, and bibliographic entries
- Use block comments
%===================================
to emphasize the beginning of sections and subsections - Comment out suppressed paragraphs, don't delete them yet
- Don't format formulas (i.e. break them into many lines) until the final font size and page format are decided
- Learn to use BibTeX
Further question: What package/macro/whatever do you use to insert source code?