On Tue, 25 Oct 2011 11:25:18 -0700 (PDT), "Russ P."
<
russ.p...@gmail.com> wrote:
>I've been using LaTeX for some 25 years, and I've had my share of
>frustration, but this takes the cake. I couldn't get my LaTeX file to
>"compile," so I tried stripping out stuff until I got down to this
>minimal LaTeX file:
>
>\documentclass[]{article}
>\title{This is the Title}
>\author{Arthur A. Author}
>\begin{document}
>\maketitle
>\begin{abstract}
>This is the abstract.
>\end{abstract}
>\section{Introduction}
>This is the Introduction.
>\end{document}
>
>When I try to compile it, I get this:
>
>prompt> latex test
...
>! LaTeX Error: Missing \begin{document}.
>
>See the LaTeX manual or LaTeX Companion for explanation.
>Type H <return> for immediate help.
> ...
>
>l.1 ?
> ??
This error message indicates a non-ASCII triplet
of bytes occuring on line 1 (and nothing else on
that line). I don't know why they are there nor why you
can't detect them, but others might be able to help
if you explain how you edit and save your files.
>?
>
> The \begin{document} is there plain as day, so why is it not finding
>it.
It never got that far before encountering this error. In fact,
this error message is somewhat misleading. What has actually
happened is LaTeX has encountered the start of a paragraph
without having encountered \begin{document}.
> Then if I type "H <return>" as instructed, I get this:
>
>You're in trouble here. Try typing <return> to proceed.
>If that doesn't work, type X <return> to quit.
>?
LaTeX could use a better help message here, but there are
too many reasons for this error to give more than a
general statement.
>
>Then if I hit return, it compiles. But it puts a blank page at the
>beginning of the document.
Those non-ASCII bytes started a paragraph, but print nothing,
probably because the default fonts have no characters in those
positions. After that, \begin{document} issues a \clearpage, whence
the blank page.
Dan
To reply by email, change LookInSig to luecking