On Sun, Mar 28, 2004 at 05:01:58PM -0800, Lars Gullik Bj�nnes by way of redan <[EMAIL
PROTECTED]> wrote:
> Like previous versions, its cannot import succesfully latex file with an
> "include" (actually \input as below.
>
>
> \input {./redan_hdg.tex} % - My standard book heading -
> \pagestyle{fancy}
> %\pagestyle{fancyplain}
> \lhead{}
> etc....
>
>
> The file redan_hdg.tex contains most of the standard heading like :
>
> \documentclass{book}
> %\usepackage{amsmath,amssymbi,avant,bookman,chancery,charter,courrier }
> \usepackage{amsmath,multicol,times,fancybox, fancyhdr, graphicx}
> %%,courrier,symbols} %% REDAN
>
>
> It seems that Lyx is unable to 'include" my local headings, related to
> documents class, macros, papersize etc...
You are right, input doesnot work for the very document header. At least the
\documentcalass needs to be given in the actual file. Also, all the settings
that are done via GUI are better kept in the LyX file.
You can use \input{hdg-header.tex} in the Latex-preamble to input a
lengthy latex-preamble and you can use "GUI-Input" in the main text but
you cannot input a file with "both sides" of the \begin{document} border.
How about using a template for this task? Try to import redan_hdg.tex into
LyX and save as ~/.lyx/templates/redan_hdg.lyx (assuming this is your
LyX-templates directory).
> Supporting this like the regular Latex, would be useful (this is common
> practice), and most likely, not a major task.
As this interferes with the GUI (LyX would have to read and interpret the
included file) I think the approach with a template is more
straightforward. A GUI always adds ease of use at the cost of some
flexibility.
G�nter
--
G.Milde at web.de