Micha Feigin wrote:

> Is it possible to suppress the use of the amsmath package with lyx 1.3.6
> even when relevant commands such as split are used?

It is possible, but it's a total hack ;-)

What I would do is define a new LaTeX->DVI converter, my_latex.sh,
containing something like:

#! /bin/sh

test $# -gt 1 || {
    echo "No .tex file specified!" >&2
    exit 1
}

# Strip out the "\usepackage{amsmath}" line:
TMP=tmp.$$
sed '/^ *\\usepackage{amsmath}/d' "$1" > "${TMP}"
diff -u  "$1" "${TMP}"
mv "${TMP}" "$1"

# Now invoke the latex compiler.
latex "$@"


Note that this script is totally untested. But I hope that it's enough to
get you started. Who knows, it might even work perfectly ;-)

-- 
Angus

Reply via email to