A bug with comments within equations?

Jean-Pierre Chrétien jeanpierre.chretien at free.fr
Mon May 27 14:03:46 UTC 2024


Le 27/05/2024 à 13:18, fcanatay at gmail.com a écrit :
>>> \documentclass{article}
>>> \begin{document}
>>> \[
>>> x = y.
>>> % u= v.
>>> \]
>>> \end{document}
>>
>> It's actually worse than not showing correctly in the work area. Consider:
>>
>> \[
>> x = y.
>> % u= v.
>> u= v.
>> \]
>>
>> Daniel
> 
> 
> Indeed. It can be observed not only when importing but also when pasting LaTeX from another source into LyX.

The LyX rendering is not correct, but the file is right :

\begin_inset Formula
\[
x=y.%u=v.
u=v.
\]

\end_inset

and thus, the pdf output is correct.

-- 
Jean-Pierre





More information about the lyx-devel mailing list