Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| generalites:erreurs:missing_begin_document [2021/01/10 16:36] – Rebalisage de la page. jejust | generalites:erreurs:missing_begin_document [2021/01/10 16:38] (Version actuelle) – Suppression après fusion avec "generalites/erreurs/m/missing_begin_document". jejust | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Missing " | ||
| - | |||
| - | |||
| - | The // | ||
| - | '' | ||
| - | your own macro definitions in there. | ||
| - | // | ||
| - | |||
| - | * typed the odd grumble, | ||
| - | * created a box with '' | ||
| - | * forgotten to put '' | ||
| - | * gave it the wrong file | ||
| - | |||
| - | the error is inevitable and the solution is simple --- judicious use | ||
| - | of comment markers ('' | ||
| - | line, moving things around, providing something that was | ||
| - | missing ... or switching to the correct file. | ||
| - | |||
| - | The error may also occur while reading the '' | ||
| - | earlier processing run on the document; if so, delete the | ||
| - | '' | ||
| - | recurs, it could well be due to a buggy class or package. | ||
| - | |||
| - | However, it may be that none of the above solves the problem. | ||
| - | |||
| - | If so, remember that things that appear before '' | ||
| - | also problematical: | ||
| - | |||
| - | Unfortunately, | ||
| - | preventing you from seeing them. This can happen when your document | ||
| - | is being " | ||
| - | standard defines "Byte Order Marks" (BOM), that reassure a | ||
| - | program (that reads the document) of the way the Unicode codes are | ||
| - | laid out. Sadly ordinary LaTeX or pdfLaTeX choke on | ||
| - | BOMs, and consider them typesetting requests. | ||
| - | message you see will look like: | ||
| - | |||
| - | < | ||
| - | ! LaTeX Error: Missing \begin{document}. | ||
| - | ... | ||
| - | l.1 <?> | ||
| - | <?><?> | ||
| - | </ | ||
| - | (Those ''<?>'' | ||
| - | unknown character; on the author' | ||
| - | ''?'' | ||
| - | |||
| - | You can spot the BOM by examining the bytes; for example, the | ||
| - | Unix '' | ||
| - | < | ||
| - | $ hexdump -C < | ||
| - | 00000000 | ||
| - | </ | ||
| - | The '' | ||
| - | (the " | ||
| - | BOM. | ||
| - | |||
| - | How to stop your editor from doing this to you depends, of course, on | ||
| - | the editor you use; if you are using GNU Emacs, you have to | ||
| - | change the encoding from '' | ||
| - | '' | ||
| - | [[http:// | ||
| - | |||
| - | (So far, all instances of this problem that the author has seen have | ||
| - | afflicted GNU Emacs users.) | ||
| - | |||
| - | Fortunately XeTeX and LuaTeX know about BOMs and what to | ||
| - | do with them, so LaTeX using them is " | ||
| - | |||
| - | |||
| - | ----- | ||
| - | //Source:// [[faquk> | ||
| - | |||
| - | {{htmlmetatags> | ||
| - | metatag-og: | ||
| - | metatag-og: | ||
| - | }} | ||

