On Sat, Jul 21, 2001 at 03:37:00PM +1000, Allan Rae wrote:
>
> > > I don't see why you need to implement a feature which will rarely be used.
> >
> > Because it's fun?
>
> Because people do actually need this and use it now because we assume
> internally that everything is available. Once proper checking is
> incorported into LyX then we will have a _lot_ of unhappy users (even
> unhappier than those annoyed with all the 666s) because they won't be able
> to collaborate or operate as they had been.
I'm not against the option of generating a latex code that doesn't use fancy
packages. However, I'm not sure that the best way is to have a dialog in which
you can disable each package individually.
One option is to have a --compatibility flag, namely
lyx --export latex --compatibility strong/medium/weak
where
strong - Use only packages in CTAN base/ and required/ directories
medium - Also use packages in the supported/ directory.
weak - Use all packages
Another option is to create a code that works whether or not the packages is
installed (this is currently done for url.sty).
For example:
\IfFileExists{longtable.sty}{\usepackage{longtable}}
{\newenvironment}{longtable}{\begin{tabular}}{\end{tabular}}