math bug
Enrico Forestieri <[email protected]> Fri, 11 Nov 2005 16:31:43 +0100
| Newsgroups | gmane.comp.tex.latex.latex2rtf.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I found a bug in the math handling code in the current cvs version.
The bug is not present in 1.9.15 and I don't know about 1.9.16a.
When using the EQ field, after a \left command all variables in an
equation are not italicized.
The bug is demonstrated by the following latex document:
\documentclass{article}
\begin{document}
$$
z=3D\cos\left(x+y\right)+w
$$
\end{document}
After conversion to RTF, x, y and w are typeset in a roman font.
This is due to the fact that MonitorFontChanges() misinterprets the
bracket switch \b as a font changing command.
I fixed the bug by this patch:
--- main.c.orig 2005-11-09 15:29:20.000000000 +0100
+++ main.c 2005-11-11 16:06:24.000000000 +0100
@@ -817,7 +817,7 @@
if (*text =3D=3D '}' && last !=3D '\\')
PopFontSettings();
=20
- if (*text =3D=3D '\\')
+ if (*text =3D=3D '\\' && last !=3D '\\')
MonitorFontChanges(text);
}
last=3D *text;
Let me thank you for this nice piece of software.
--
Enrico
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php