Can anyone see at my patch for latex2rtf support?
It is attached.
--
Lav
Vitaly Lipatov
GNU! ALT Linux Team! LaTeX! LyX!
--- /home/lav/RPM/BUILD/lyx-1.3.3/lib/configure.m4 2003-09-30 23:55:17 +0400
+++ lib/configure.m4 2003-10-06 03:07:02 +0400
@@ -219,8 +219,16 @@
SEARCH_PROG([for the pdflatex program],latex_to_pdf,pdflatex)
fi
+# Search for latex2rtf
+if test ${lyx_check_config} = no ; then
+ latex_to_rtf=none
+else
+ SEARCH_PROG([for the latex2rtf program],latex_to_rtf,latex2rtf)
+fi
+
test $latex_to_dvi != "none" && latex_to_dvi="$latex_to_dvi \$\$i"
test $latex_to_pdf != "none" && latex_to_pdf="$latex_to_pdf \$\$i"
+test $latex_to_rtf != "none" && latex_to_rtf="$latex_to_rtf \$\$i"
# Search for an installed reLyX or a ready-to-install one
save_PATH=${PATH}
@@ -257,6 +265,9 @@
# Search for a program to preview pdf
SEARCH_PROG([for a PDF preview],PDF_VIEWER,acroread gv ghostview xpdf)
+# Search for a program to preview rtf
+SEARCH_PROG([for a RTF preview],RTF_VIEWER,abiword oowriter kword)
+
# Search something to preview dvi
SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap)
@@ -451,6 +462,7 @@
\\Format gif gif GIF ""
\\Format jpg jpg JPG ""
\\Format latex tex LaTeX L
+\\Format rtf rtf RTF R
\\Format linuxdoc sgml LinuxDoc x
\\Format lyx lyx LyX ""
\\Format literate nw NoWeb N
@@ -472,6 +484,7 @@
\\converter latex dvi "$latex_to_dvi" "latex"
\\converter latex pdf2 "$latex_to_pdf" "latex"
+\\converter latex rtf "$latex_to_rtf" "latex"
\\converter latex html "$latex_to_html_command" "originaldir,needaux"
\\converter literate latex "$literate_to_tex_command" ""
\\converter dvi pdf3 "$dvi_to_pdf_command" ""
@@ -494,6 +507,7 @@
\\viewer dvi "$DVI_VIEWER"
\\viewer html "$HTML_VIEWER"
\\viewer pdf "$PDF_VIEWER"
+\\viewer rtf "$RTF_VIEWER"
\\viewer ps "$GHOSTVIEW -swap"
\\viewer eps "$GHOSTVIEW"