Enrico Forestieri wrote:
> Yes, it is possible. After installing latex2rtf, simply put the following
> two lines in "$HOME/.lyx/preferences" if you use a Linux like OS, or in
> "%USERPROFILE%/Application Data/LyX1.4.x/preferences" if you are on
> Windows (I am not sure where the preferences file is on the Mac):
>
> \format "rtf" "rtf" "RTF" "" "your_viewer" ""
> \converter "latex" "rtf" "latex2rtf -p -S $$i" "needaux"
>
> substituting "your_viewer" with a program able to show you an RTF file.
> If you are on Windows or Mac, simply use "auto" as "your_viewer".
> After starting LyX you should have a View->RTF menu entry.
> If you omit your_viewer such that you have two lines like these:
>
> \format "rtf" "rtf" "RTF" "" "" ""
> \converter "latex" "rtf" "latex2rtf -p -S $$i" "needaux"
>
> then you won't have a View->RTF menu entry but you will nevertheless be
> able to export to RTF through File->Export->RTF.
>
> Be warned that the Windows port of latex2rtf should be invoked as
> latex2rt (i.e., without the final 'f') and you should probably specify
> the full path to latex2rt.exe.
So what about this patch (for 1.5)? Does it work for you Enrico?
Georg
Index: lib/configure.py
===================================================================
--- lib/configure.py (Revision 15159)
+++ lib/configure.py (Arbeitskopie)
@@ -295,6 +295,7 @@ def checkFormatEntries():
\Format pdftex pdftex_t PDFTEX "" "" "" ""
\Format program "" Program "" "" "" ""
\Format pstex pstex_t PSTEX "" "" "" ""
+\Format rtf rtf "Rich Text Format" "" "" "" "document"
\Format sxw sxw "OpenOffice.Org Writer" O "" "" "document"
\Format wmf wmf "Windows Meta File" "" "" "" ""
\Format word doc "MS Word" W "" "" "document"
@@ -340,6 +341,9 @@ def checkConverterEntries():
#
checkProg('a LaTeX -> OpenOffice.org converter', ['oolatex $$i', 'oolatex.sh $$i'],
rc_entry = [ r'\converter latex sxw "%%" "latex"' ])
+ # On windows it is called latex2rt.exe
+ checkProg('a LaTeX -> RTF converter', ['latex2rtf -p -S -o $$o $$i', 'latex2rt -p -S -o $$o $$i'],
+ rc_entry = [ r'\converter latex rtf "%%" "needaux"' ])
#
checkProg('a PS to PDF converter', ['ps2pdf13 $$i $$o'],
rc_entry = [ r'\converter ps pdf "%%" ""' ])