I wrote:
But we need also the entries
\viewer pdf2 "acrobat"
\viewer pdf3 "acrobat"
Simple fix attached, please apply.
I've a better solution. The entries should only be made if pdflatex and
dvipdfm does really exists. The attached patch works for me.
Angus, two questions about the configure file:
- What script language is it?
- Where can I find it in the CVS reposotory? I find only the file
configure.mt4 nut this one is different from the one shipped with
LyxWin pre 136.
thanks and regards Uwe
--- configureOld Wed Jun 15 03:35:49 2005
+++ configure Wed Jun 15 04:11:22 2005
@@ -116,6 +116,43 @@
#### Searching some useful programs
+
+# Search for a program to preview pdf
+echo $ac_n "checking for a PDF preview""... $ac_c"
+echo "$ac_t""(acrobat acrord32 gsview32 acroread gv ghostview xpdf)"
+PDF_VIEWER=
+for ac_prog in acrobat acrord32 gsview32 acroread gv ghostview xpdf
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog ; ac_word=$2
+if test -n "$ac_word"; then
+ echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ for ac_dir in $PATH; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -x $ac_dir/$ac_word; then
+ PDF_VIEWER="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+
+ if test -n "$PDF_VIEWER"; then
+ ac_result=yes
+
+ else
+ ac_result=no
+ fi
+ echo "$ac_t""$ac_result"
+ test -n "$PDF_VIEWER" && break
+fi
+done
+
+if test -z "$PDF_VIEWER" ; then
+ PDF_VIEWER=none
+fi
+
+
# Search LaTeX2e
echo $ac_n "checking for a LaTeX2e program""... $ac_c"
echo "$ac_t""(latex latex2e)"
@@ -179,6 +216,7 @@
echo $ac_n "checking for the pdflatex program""... $ac_c"
echo "$ac_t""(pdflatex)"
latex_to_pdf=
+latexpdf=
for ac_prog in pdflatex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -197,7 +235,7 @@
if test -n "$latex_to_pdf"; then
ac_result=yes
-
+ latexpdf="$PDF_VIEWER"
else
ac_result=no
fi
@@ -480,41 +518,6 @@
esac
EPS_VIEWER=$GHOSTVIEW
-# Search for a program to preview pdf
-echo $ac_n "checking for a PDF preview""... $ac_c"
-echo "$ac_t""(acrobat acrord32 gsview32 acroread gv ghostview xpdf)"
-PDF_VIEWER=
-for ac_prog in acrobat acrord32 gsview32 acroread gv ghostview xpdf
-do
-# Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog ; ac_word=$2
-if test -n "$ac_word"; then
- echo $ac_n "+checking for \"$ac_word\"""... $ac_c"
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -x $ac_dir/$ac_word; then
- PDF_VIEWER="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-
- if test -n "$PDF_VIEWER"; then
- ac_result=yes
-
- else
- ac_result=no
- fi
- echo "$ac_t""$ac_result"
- test -n "$PDF_VIEWER" && break
-fi
-done
-
-if test -z "$PDF_VIEWER" ; then
- PDF_VIEWER=none
-fi
-
# Search something to preview dvi
echo $ac_n "checking for a DVI previewer""... $ac_c"
@@ -665,6 +668,7 @@
echo $ac_n "checking for a DVI to PDF converter""... $ac_c"
echo "$ac_t""(dvipdfm)"
dvi_to_pdf_command=
+dvipdf=
for ac_prog in dvipdfm
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -683,7 +687,7 @@
if test -n "$dvi_to_pdf_command"; then
ac_result=yes
-
+ dvipdf="$PDF_VIEWER"
else
ac_result=no
fi
@@ -1346,6 +1350,8 @@
\\viewer dvi "$DVI_VIEWER"
\\viewer html "$HTML_VIEWER"
\\viewer pdf "$PDF_VIEWER"
+\\viewer pdf2 "$latexpdf"
+\\viewer pdf3 "$dvipdf"
\\viewer ps "$PS_VIEWER"
\\viewer eps "$EPS_VIEWER"