On Wed, 27 Jan 1999, Judicael Courant wrote:

JC> 
JC> Hi !
JC> 
JC> I would like to split a big document F.lyx in several parts, say
JC> A.lyx, B.lyx, C.lyx. So I am using the "Insert -> Include file"
JC> facility in my document F, and I create the files A.lyx, B.lyx,
JC> C.lyx. Now, I want to use a set of macros in all these parts.
JC> 
JC> I can define them in a file M.lyx.
JC> 
JC> Now if I include (in fact, input) M.lyx in A, B, and C, I can see the
JC> result of my macros in A, B, and C when typesetting them. The problem
JC> is that "File -> View PostScript" will cause errors when running
JC> LaTeX, since M will be inputed three times (LaTeX complains that some
JC> \newcommand cannot be done since there is already a macro with the
JC> given name).
JC> 
JC> If I input M.lyx only in M, I can make LaTeX happy, but I cannot
JC> typeset A, B, C in a WYSIWYG fashion...
JC> 
JC> Maybe translating Lyx macro definitions into LaTeX providecommands
JC> would be a reasonnable and inexpensive fix ?
JC> 
JC> Judicaël.
JC> -- 
JC> [EMAIL PROTECTED], http://www.lri.fr/~jcourant/
JC> << La verite, ce n'est pas ce qui se demontre, c'est ce qui simplifie >>
JC> (Antoine de Saint Exupery, Terre des hommes)
JC>

Hi again,

maybe now I am faster that JMarc :-)

Use the \@undefined stuff from my previous mail before you define the
macros. And always first load M.lyx, so LyX knows the macros...

Have fun,

     Fred

Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
Email: [EMAIL PROTECTED]               http://www.thp.Uni-Duisburg.DE/
"Der Koerper der algebraischen Zahlen ist kein algebraischer Zahlkoerper"
(E. Landau, Zahlentheorie (1927), Satz 718)

Reply via email to