Re: design some Latex2rtf macros and use them in latex file to control the selection of sources

"Scott Prahl" <[email protected]> Tue, 8 Nov 2005 10:50:51 -0800
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
On Nov 4, 2005, at 11:43 PM, zhenjunluo wrote:
>
> However if we produce some equations within Microsoft Word and save  
> it as rtf file,
> we can find the ASCII code for the equations, for example:
>
> {\*\objclass Equation.DSMT4}{\*\objdata ......}
>
> Therefore my suggestions make sense. Specify Latex2rtf's own macros  
> and use them inside a tex file. The macros are commented so
> won't interfere Latex.
>
> For example
>
> \begin{equation}
> %L2RDATA{link=./eqabc.txt}
> ....
> \end{equation}
>
>
> This macro will just insert the {\*\objclass Equation.DSMT4}{\* 
> \objdata .......} into the rtf file.

You are aware that this will probably not work unless you include a  
good portion of Word's header for RTF right?  But I am sure that you  
can figure out what exactly to
include.

Anyway, one solution that fits with existing methods is to write the  
above as

\begin{equation}
%latex2rtf: \inputRTF{./eqabc.txt}
%latex2rtf: \begin{comment}
x=y
%latex2rtf: \end{comment}
\end{equation}

where only the trivial command \inputRTF needs to be defined in  
latex2rtf.



-------------------------------------------------------
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