A bug with comments within equations?
fcanatay at gmail.com
fcanatay at gmail.com
Sun May 26 14:12:24 UTC 2024
Greetings,
I am not sure whether what I am about to report is a bug or intended behavior. I searched on the web and couldn't find anything related. I hope this is not the wrong list to mention this. Here goes:
There seems to be a confusing behavior with imported LaTeX documents that contain comments in equations: LyX seems to render everything it finds, including the comments. Here is a minimum LaTeX source:
\documentclass{article}
\begin{document}
\[
x = y.
% u= v.
\]
\end{document}
When imported it into Lyx, it shows on screen as
x=y.u=v.
(see attached screenshot).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 7873 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240526/43890e8a/attachment-0001.png>
-------------- next part --------------
The commented part ?u=v.? seems to be inside some comment structure but there is no visible cue on the screen. The compiled pdf correctly shows only ?x=y?. However, the LyX rendering is terribly confusing, as my existing LaTeX documents look now completely different on LyX screen.
On the other hand, if one tries to insert a comment into an equation inside LyX itself, the menu items under "Insert->Note? appear disabled in version 2.4.0~RC4. So, it is not clear to me what LyX?s stance is with respect to comments in equations.
Reporting from Mac apple silicon with LyX versions 2.4.0~RC4 and 2.3.8 under fresh install.
Cheers,
Fatihcan Atay
More information about the lyx-devel
mailing list