Tags: behaviour, end123document, enddocument, greetings, ignore, implementation, latex, programming, standard, tex, text, textafter
Text after \end{document}
On Programmer » Tex
7,181 words with 9 Comments; publish: Wed, 30 Apr 2008 19:03:00 GMT; (20062.50, « »)
Greetings.
I have noticed that the implementation of LaTeX I use seems to ignore text
after \end{document}. Is this behaviour standard? That is, can I count
on it to be present in all conforming implementations of LaTeX? Am I free
to use the part of the file after \end{document} for annotations, PGP
signatures, and whatnot?
Regards,
Tristan
_
_V.-o Tristan Miller [en,(fr,de,ia)] >< Space is limited
/ |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-= <> In a haiku, so it's hard
(7_\\ http://www.nothingisreal.com/ >< To finish what you
http://tex-program.itags.org/q_tex_137196.html
All Comments
Leave a comment...
- 9 Comments

- Tristan Miller <psychonaut.tex-program.itags.org.nothingisreal.com> writes:
> Greetings.
> I have noticed that the implementation of LaTeX I use seems to ignore text
> after \end{document}. Is this behaviour standard? That is, can I count
> on it to be present in all conforming implementations of LaTeX? Am I free
> to use the part of the file after \end{document} for annotations, PGP
> signatures, and whatnot?
Yes. In fact, the LaTeX kernel itself uses that to store information
on how to typeset itself.
HTH
Ulrich
--=20
=E2=88=80x=E2=88=88=E2=84=95 or \forall x\in \mathbb{N}?
http://talcum.sarovar.org/ (Current release: 0.5.0 20050306)
#1; Wed, 30 Apr 2008 19:05:00 GMT

> Tristan Miller wrote:
...
That seems useful, but when sending and recieving LaTeX documents
through email, it would be just as useful if LaTeX ignored everything
before the \documentclass line. How feasible would that be?
Jay
#2; Wed, 30 Apr 2008 19:06:00 GMT

- Jay Belanger wrote:
> ...
>
>
> That seems useful, but when sending and recieving LaTeX documents
> through email, it would be just as useful if LaTeX ignored everything
> before the \documentclass line. How feasible would that be?
> Jay
no because that area can be used for al sorts of things
Here is an example,
%\RequirePackage{mathpazo}
%\normalfont
\documentclass[12pt]{memoir}
\usepackage{mathpazo}
\begin{document}
\the\parindent
\end{document}
with the first two lines outcommented like this the \parindent will not
be the expected 18pt, then try with the two lines included
/daleif (remove RTFSIGNATURE for email)
#3; Wed, 30 Apr 2008 19:07:00 GMT

- Jay Belanger <belanger.tex-program.itags.org.truman.edu> writes:
>...
>That seems useful, but when sending and recieving LaTeX documents
>through email, it would be just as useful if LaTeX ignored everything
>before the \documentclass line. How feasible would that be?
filecontents environments (absent the filecontents package) *have* to
come before \documentclass
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge
#4; Wed, 30 Apr 2008 19:08:00 GMT

- Jay Belanger <belanger.tex-program.itags.org.truman.edu> writes:
> That seems useful, but when sending and recieving LaTeX documents
> through email, it would be just as useful if LaTeX ignored everything
> before the \documentclass line. How feasible would that be?
I am not sure if something like this is possible, but I think I would
not like this. Currently pdftex has no commandline switches for changing
the map files used. So I use something like
pdflatex "\pdfmapfile{pdftex_dl14}\input{foo}"
to influence this. I think this wouldn't be possible any longer then.
cheerio
ralf
#5; Wed, 30 Apr 2008 19:09:00 GMT

- Robin Fairbairns wrote:
> Jay Belanger <belanger.tex-program.itags.org.truman.edu> writes:
>
>
> filecontents environments (absent the filecontents package) *have* to
> come before \documentclass
?
\documentclass[12pt]{article}
\usepackage{pst-plot}
\begin{filecontents}{data10.dat}
0 0 3 1 5 4
\end{filecontents}
\begin{document}
\readdata{\data}{data10.dat}
\begin{pspicture}(5,5)
\listplot[plotstyle=curve]{\data}
\end{pspicture}
\end{document}
Herbert
ftp://ftp.dante.de/tex-archive/info...ss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq...ntroduction=yes
#6; Wed, 30 Apr 2008 19:10:00 GMT

- Herbert Voss wrote:
> Robin Fairbairns wrote:
> ?
> [..proof that it _can_ go after ...]
have to in the the sense of "have to be able to" as it might be the .cls
file or something needed by the cls file
frank
#7; Wed, 30 Apr 2008 19:11:00 GMT

- Jay Belanger wrote:
>
> ...
> That seems useful, but when sending and recieving LaTeX documents
> through email, it would be just as useful if LaTeX ignored everything
> before the \documentclass line. How feasible would that be?
it would be possible in theory but as pointed out by several people and a
good move as there are reasons to have something before \documentclass
sometimes so for 2e that alone would make it a no-go as it would invalid a
lot of documents.
however, if you are prepared to go "non-latex" and i look away :-) here is
what i always to in such cases when i want to make emails directly
latexable when saving to a file (at least from some mailers):
\iffalse
Hi Jay,
here is my little document to prove my point, just fix the content to make
it do what you like
cheers
frank
\fi
\documentclass{...} ...
#8; Wed, 30 Apr 2008 19:12:00 GMT

- Frank Mittelbach <frank.mittelbach.tex-program.itags.org.latex-project.org> writes:
...
> it would be possible in theory but as pointed out by several people and a
> good move as there are reasons to have something before \documentclass
> sometimes so for 2e that alone would make it a no-go as it would invalid a
> lot of documents.
Yes; I didn't think about how useful it was to have commands before
\documentclass.
> however, if you are prepared to go "non-latex"
Only temporarily, of course.
> and i look away :-)
If I use this, I won't mention it to you.
> here is what i always to in such cases when i want to make emails
> directly latexable when saving to a file (at least from some
> mailers):
Thanks; this is useful.
Jay
#9; Wed, 30 Apr 2008 19:13:00 GMT