From 492182feae223b5efe9cbe13d4ec5a5f08ab1a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 27 Jun 2002 10:42:51 +0000 Subject: [PATCH] move the preview conversion stuff into an external script git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4494 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 6 ++++++ lib/configure.m4 | 10 ++++++++++ lib/scripts/lyxpreview2xpm.sh | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100755 lib/scripts/lyxpreview2xpm.sh diff --git a/lib/ChangeLog b/lib/ChangeLog index df95775cdc..91d5db2917 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,4 +1,10 @@ +2002-06-27 André Pönitz + + * configure.m4: add support for lyxpreview "format" + + * scripts/lyxpreview2xpm: add file + 2002-06-25 André Pönitz * symbols: special characters diff --git a/lib/configure.m4 b/lib/configure.m4 index 7a643bc35a..35bd894fe5 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -254,6 +254,9 @@ SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap) # Search something to preview html SEARCH_PROG([for a HTML previewer],HTML_VIEWER, netscape) +# Search for a program to preview latex code +SEARCH_PROG([for a LaTeX preview],LATEX_VIEWER, "xterm -e less") + # Search for a program to convert ps to pdf SEARCH_PROG([for a PS to PDF converter],ps_to_pdf_command,ps2pdf) test $ps_to_pdf_command = "ps2pdf" && ps_to_pdf_command="ps2pdf \$\$i" @@ -266,6 +269,10 @@ test $dvi_to_ps_command = "dvips" && dvi_to_ps_command="dvips -o \$\$o \$\$i" SEARCH_PROG([for a DVI to PDF converter],dvi_to_pdf_command,dvipdfm) test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i" +# Search for a program to convert previewlyx to eps +SEARCH_PROG([for a LyX preview converter],lyxpreview_to_xpm_command,lyxpreview2xpm.sh) +test $lyxpreview_to_xpm_command = "lyxpreview2xpm.sh" && lyxpreview_to_xpm_command="lyxpreview2xpm.sh \$\$i \$\$o" + # Search a *roff program (used to translate tables in ASCII export) LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl 'groff -t -Tlatin1 $$FName' nroff,dnl @@ -445,6 +452,7 @@ cat >$outfile <$outfile <$outfile <