Georg Baum wrote:
> We still need to decide what
> part of math should be supported for the round trip, but for this decision
> you can assume that all amsmath commands work in LyX (if not I'll fix
> them), and only concentrate on what is problematic in docx/odt and what is
> needed.
Proof: With my latest fix and after applying the attached changes to
testmath.tex to overcome tex2lyx shortcomings (none of them math related)
you get a document that can be compiled in LyX.
Georg
--- testmath.tex 2014-02-27 21:42:07.000000000 +0100
+++ /usr/local/texlive/current/texmf-dist/source/latex/amsmath/testmath.tex 2006-08-27 20:26:03.000000000 +0200
@@ -80,8 +80,7 @@
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
-%\newtheorem*{notation}{Notation}
-\newtheorem{notation}{Notation}
+\newtheorem*{notation}{Notation}
%\numberwithin{equation}{section}
@@ -1699,19 +1698,19 @@
%% This turns on vertical rules at the right and left margins, to
%% better illustrate the spacing for certain multiple-line equation
%% structures.
-%\def\@makecol{\ifvoid\footins \setbox\@outputbox\box\@cclv
-% \else\setbox\@outputbox
-% \vbox{\boxmaxdepth \maxdepth
-% \unvbox\@cclv\vskip\skip\footins\footnoterule\unvbox\footins}\fi
-% \xdef\@freelist{\@freelist\@midlist}\gdef\@midlist{}\@combinefloats
-% \setbox\@outputbox\hbox{\vrule width\marginrulewidth
-% \vbox to\@colht{\boxmaxdepth\maxdepth
-% \@texttop\dimen128=\dp\@outputbox\unvbox\@outputbox
-% \vskip-\dimen128\@textbottom}%
-% \vrule width\marginrulewidth}%
-% \global\maxdepth\@maxdepth}
-%\newdimen\marginrulewidth
-%\setlength{\marginrulewidth}{.1pt}
+\def\@makecol{\ifvoid\footins \setbox\@outputbox\box\@cclv
+ \else\setbox\@outputbox
+ \vbox{\boxmaxdepth \maxdepth
+ \unvbox\@cclv\vskip\skip\footins\footnoterule\unvbox\footins}\fi
+ \xdef\@freelist{\@freelist\@midlist}\gdef\@midlist{}\@combinefloats
+ \setbox\@outputbox\hbox{\vrule width\marginrulewidth
+ \vbox to\@colht{\boxmaxdepth\maxdepth
+ \@texttop\dimen128=\dp\@outputbox\unvbox\@outputbox
+ \vskip-\dimen128\@textbottom}%
+ \vrule width\marginrulewidth}%
+ \global\maxdepth\@maxdepth}
+\newdimen\marginrulewidth
+\setlength{\marginrulewidth}{.1pt}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1987,8 +1986,8 @@
\end{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%\iffalse % bugfix needed, error message "Multiple \tag"
-% % [mjd,24-Jan-1995]
+\iffalse % bugfix needed, error message "Multiple \tag"
+ % [mjd,24-Jan-1995]
\newpage
And now an ``unnumbered'' version numbered with a literal tag:
\begin{multline*}\tag*{[a]}
@@ -2033,7 +2032,7 @@
\end{multline*}}
\end{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%\fi % matches \iffalse above [mjd,24-Jan-1995]
+\fi % matches \iffalse above [mjd,24-Jan-1995]
%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -2268,7 +2267,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
-%\setlength{\marginrulewidth}{0pt}
+\setlength{\marginrulewidth}{0pt}
\begin{thebibliography}{10}