>> Date: Tue, 31 Aug 1999 15:56:34 +0000
>> From: "Pedro Sanchez" <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: LyX fails to import this simple LaTeX file
>> 
>> LyX 1.0.3 totally fails to import this simple file. I don't even get the
>> title and author! The file compiles fine with LaTeX.
>> 
>> If the \usepackage{graphicx} is enabled things are even worse (lost of
>> errors during "view dvi"). It also fails to recognize the [A short
>> caption] option.
>> 
>> Any ideas why?
>> 


This file is a bit too simple... I can't imagine a real document where
a floating figure follows immediately the title, and I suppose the
reLyX writers didn't either.

Have a look at the LaTeX reexported file: the float is
inserted in the \author{} command, which creates the errors.

So, adding a paragraph

My first paragraph 

 between \maketitle and \begin{figure} in the LaTeX source
(or the same in the LyX window)
solves the problem.

>From the LyX window point of view, your example shows also
that putting the \title and \author commands before the \begin{document}
does not allow LyX to show correctly these informations, as the
preamble is not shown in the window. The compilation works OK however
if teh newline is added.

Considering the last question, it is well known that the short version
od headers, captions, etc. is not implemented in LyX, 
you will find how to do it in TeX mode in the list archive.

Regards

-- 
Jean-Pierre




>> -- 
>> Pedro I. Sanchez
>> 
>> 
>> \documentclass{article}
>> %\usepackage{graphicx}
>> \title{Test File}
>> \author{The Author}
>> \begin{document}
>> \maketitle
>> \begin{figure}
>>   \centering
>>   This should be \verb+\includegraphics{mygraphic}+
>>   \caption[A short caption.]{A loooong caption.}
>> \end{figure}
>> \end{document}

Reply via email to