2015-06-17 10:37 GMT+02:00 Guenter Milde:

> On 2015-06-16, Steve Hnizdur wrote:
>
> > The point is that the \usepackage(undertilde} added by Lyx to the
> > preamble doesn't load the undertilde.tex file. The compilation error is
> > that undertilde.sty is not found. Hence \input{undertilde} is needed in
> > the preamble and has to supplied by the user.
>
> So, a change like::
>
> diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
> index d5b8b2f..1f551b4 100644
> --- a/src/LaTeXFeatures.cpp
> +++ b/src/LaTeXFeatures.cpp
> @@ -926,9 +930,10 @@ string const LaTeXFeatures::getPackages() const
>             params_.use_package("stackrel") != BufferParams::package_off)
>                 packages << "\\usepackage{stackrel}\n";
>
> +        // undertilde is not a package (*.sty) but a *.tex file
>         if (mustProvide("undertilde") &&
>                 params_.use_package("undertilde") !=
> BufferParams::package_off)
> -               packages << "\\usepackage{undertilde}\n";
> +               packages << "\\input{undertilde}\n";
>
>         // [x]color and pdfcolmk are handled in getColorOptions() above
>
>
> would be required?
>
> Before applying this, we would need to check why it seemed to work in some
> cases.


There is a package undertilde.sty, but it is not included in TeXLive,
probably since it has no proper license:
http://www.ctan.org/tex-archive/macros/latex/contrib/undertilde

It is included in MikTeX, though.

The plain tex package undertilde-gen, on the other hand, which provides
undertilde.tex, is included both in MikTeX and TeXLive:
http://www.ctan.org/pkg/undertilde-gen

I have no idea if the could replace each other easily.

Jürgen

Reply via email to