Paul A. Rubin <rubin <at> msu.edu> writes:
>
> Julien Rioux <jrioux <at> physics.utoronto.ca> writes:
>
> >
> > In a module, with the usual definition and format lines at the top, put:
> >
> > provides xypic
> >
> > AddToPreamble
> > \usepackage{etex}
> > \usepackage{xypic}
> > EndPreamble
> >
>
Alas, it did not work. LyX refused to parse the file if it contained both the
"Provides xy" and "\usepackage{xy}" lines. The workaround I devised was a dummy
module that contains just the top stuff and "Provides xy" (but nothing for the
preamble - so it lies about providing xy.sty). Then I load etex.sty and xy.sty
manually in the preamble, in the proper order. It works but it's ugly.