Re: Proposal for improving \left and \right handling

Scott Prahl <[email protected]> Mon, 21 Nov 2005 20:57:03 -0800
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
On Nov 14, 2005, at 4:43 PM, Enrico Forestieri wrote:

> I noticed that latex2rtf does not correctly translate math constructs
> such as \left\Vert ... \right\Vert  or  \left\langle ... \right 
> \rangle.
>
> Example:
>
> \documentclass{article}
> \begin{document}
> $$
> y=\left\Vert x \right\Vert^2
> $$
> \end{document}
>
>
> I include here a patch for evaluation and possible inclusion in the  
> sources.

Thanks for the test case and patch.  I did not use your patch because  
it replicated translation of latex code to rtf.  Instead I used the  
much more general ConvertString(s) function.  I also cleaned up the  
translation code so that it works correctly with both \left\{ and  
\left\lbrace as well as the constructs that you show above.

Check out the code from CVS and let me know how it works for you.  (I  
certainly have some reservations with how well Word handles the \Vert  
unicode character as a delimiter.)

Scott


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click