Some time ago there was a discussion on the list about refstyle in combination with amsmath, leading to error messages from refstyle. It appears refstyle is now loaded after amsmath, but this now leads to messages like "LaTeX Warning: Reference `ab' on page 1 undefined on input line 39" from the enclosed LyX file 'testref.lyx'. It seems that this is related to the LaTeX line "\AtBeginDocument{\providecommand\eqref[1]{\ref{eq:#1}}}", which is added by LyX in 'testref.tex'. This line does not have any effect, so that e.g. \eqref{ab} is interpreted as \ref{ab} instead of \ref{eq:ab}. Replacing this line with \AtBeginDocument{\DeclareRobustCommand{\eqref}[1]{\textup{\tagform@{\ref{eq: #1}}}}} (as in amsmath), the LaTeX file 'testref_robust.tex' compiles without problems.
Kees
testref.lyx
Description: application/lyx
testref.tex
Description: Binary data
testref.pdf
Description: Adobe PDF document
testref_robust.pdf
Description: Adobe PDF document
testref_robust.tex
Description: Binary data
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users