A major bug in latex import for Lyx 2.4
Shuvomoy Das Gupta
shuvomoy.dasgupta at gmail.com
Thu Mar 13 21:23:40 UTC 2025
Hi,
I would like to report a major bug in Lyx 2.4: it seems that when importing
latex files into Lyx, the imported lyx documents has missing equations and
all that. It should be noted that I tested the same file on Lyx 2.3 and it
worked just fine.
A simple reproducible example is as follows. You can also test it via paste
special latex option for the following formula:
\begin{align*}
& \mathcal{R}\left(M,\mathcal{E},\mathcal{F},\mathcal{C}\right)\nonumber \\
= & \left(\begin{array}{l}
\textrm{maximize}\quad f_N-f_\star \\ %f(x_{N})-f(x_{\star})\\
\textrm{subject to}\\
f_{i}\geq f_{j}+\langle g_{j}\mid
x_{i}-x_{j}\rangle+\frac{1}{2L}\|g_{i}-g_{j}\|^{2},\quad i,j\in
I_{N}^{\star}:i\neq j,\\
g_{\star}=0,x_{\star}=0,f_{\star}=0,\\
x_{i}=x_{0}-(1/L)\sum_{j=0}^{i-1}h_{j}g_{j},\quad i\in[1:N],\\
\|x_{0}-x_{\star}\|^{2}\leq R^{2},
\end{array}\right)
% \label{eq:worst-case-pfm-fmuL-3-1}
\end{align*}
If you paste special as latex, you will see in Lyx 2.4. that only the first
line of the formula is there, the rest of the formula is missing. But the
paste special works just fine for Lyx 2.3.
Best Regards,
Shuvo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250313/91ebafc1/attachment.htm>
More information about the lyx-devel
mailing list