We often produce documents that will have to be edited by others who are not as proficient at LaTeX than us, and not as keen to spend time learning. It may be that such documents will persist for a long time after we lose responsibility for them.
What are good practices to make such documents as durable as possible, such that non-experts can continue to productively edit and compile them, and further that there are minimal opportunities for a non-expert to break the document or turn it into messy code (say, by being wildly inconsistent with formatting and structure commands)?
To provide a somewhat concrete example, suppose I am the current editor of an encyclopaedia which is amended very slowly. I have the opportunity to typeset it from scratch in LaTeX, but I would like it to continue to be amended (and beautiful) when new editors, who may arrive with no LaTeX knowledge, tend to it. How should I go about achieving this?
\saveboxand check that it was empty. – Peter Grill Jun 04 '14 at 22:49\newcommand/\renewcommand,\newenvironment/\renewenvironment, etc to ensure that users don't easily define any new macros. This way you have complete control of the document. Of course, this assumes that the users are not malicious and don't remove your packages which do this checking. – Peter Grill Jun 04 '14 at 22:52