Jean-Marc Lasgouttes a �crit :
> Vincent> 1) LyX tells me, when I want to compile some documents :
> Vincent> missing \begin{document} in messages boxes; Of course, when I
> Vincent> edit the .tex file, the command is here !
> 
> Yes, but the error means there is some text before the
> \begin{document} which should not be there. This comes in general from
> an error in the preamble. Could you show us the proamble of your
> document?

1) This is the preamble of a document which saids "missing
\begin{document}" : 
\batchmode
\makeatletter
\def\input@path{{/home/vincent/Desktop/Mes-docs/Doc Linux//}}
\makeatother
\documentclass[a4paper,francais]{article}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}

\makeatother

\begin{document}

Blahblahblah.

2) This is the preamble of a document which works well :
\batchmode
\makeatletter
\def\input@path{{/home/vincent/Desktop/Mes-docs/Roman//}}
\makeatother
\documentclass[francais]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{a4wide}
\pagestyle{headings}
\usepackage{babel}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}

\makeatletter


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
\def\footnote{\ifx\protect\@typeset@protect
    \expandafter\SF@@footnote
  \else
    \expandafter\SF@gobble@opt
  \fi
}
\expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%]
  \SF@gobble@twobracket
  \@gobble
}
\edef\SF@gobble@opt{\noexpand\protect
  \expandafter\noexpand\csname SF@gobble@opt \endcsname}
\def\SF@gobble@twobracket[#1]#2{}

\makeatother

\AtBeginDocument{
  \renewcommand{\labelitemii}{\(\ast\)}
}

\begin{document}


\title{My Title}


\author{Vincent VAQUIN}

Blahblahblah

I don't see what's wrong... Thanks for your help.

-- 
Vincent

Reply via email to