Just like http://programming.itags.org/tex/137196/ I have noticed that everything after \end{document} is ignored. What is the point of \end{document}? It seems that the compiler could just read until the end of the file instead of until \end{document}. So is \end{document} just for completeness in that it closes the document environment or is there an actual use for placing things after \end{document}?
|
|
||||
|
I frequently have stuff beyond the Another use (should these be in different answers?) is when testing code. This is a particular use when I'm answering stuff here. If there's some code that I want to save (perhaps the questioner's original code) but don't want to process (maybe I'm working on an alternative) then it's quick and easy to shove it beyond the Before I discovered version control, I used to use the patch after |
|||
|
|
|
TeX reads file until it reads a primitive called In most cases, you do not want to call (Normally, there is filler to add to the last page as well, so even in plain TeX it's usual to include some additional instructions along with |
|||
|
|
|
The |
||||
|
|
|
Compilier ignores everything you put after As to me, I put after |
|||||||||
|
|
I regularly use the space after the |
||||
|
|
|
Some editors (emacs at least) can put meta info after I have this (generated by emacs) in my main document (
If I ask emacs to compile an |
|||||||||||||
|

TeX, it never reads it! – mafp Jan 17 at 20:19