Hi!

It seems that when using cases inset in formulas, LyX does not pass 
\usepackage{amsmath} to LaTeX. When I edit formulas with cases, everything is 
fine, but when I try to print, TeX complains on errors. It seems to be a 
small bug that did appear between 1.2.1 and 1.3.0. Solution is to redefine 
method validate of class MathCasesInset, so that it will always require 
package amstech.

Hope it will help somebody.
Andrey Volkov.


diff lyx-1.3.0unmod/src/mathed/math_casesinset.C 
lyx-1.3.0/src/mathed/math_casesinset.C
10a11
> #include "LaTeXFeatures.h"
70a72,78
> 
> void MathCasesInset::validate(LaTeXFeatures & features) const
> {
>       features.require("amsmath");
> 
>       MathNestInset::validate(features);
> }
diff lyx-1.3.0unmod/src/mathed/math_casesinset.h 
lyx-1.3.0/src/mathed/math_casesinset.h
30a31,32
>       ///
>       void validate(LaTeXFeatures & features) const;


Reply via email to