]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/lyxpreview2bitmap.sh
Enable the external inset to output different flavours of latex.
[lyx.git] / lib / scripts / lyxpreview2bitmap.sh
index dfcd7e9991047a0838c1f198c70b07c9da82677d..3efc75408cf5aa34acdae3265533cb254944feca 100644 (file)
@@ -94,6 +94,11 @@ if [ $# -ne 3 ]; then
        exit 1
 fi
 
+# We use latex, dvips and gs, so check that they're all there.
+FIND_IT ${LATEX}
+FIND_IT ${DVIPS}
+FIND_IT ${GS}
+
 # Extract the params from the argument list.
 DIR=`dirname $1`
 BASE=`basename $1 .tex`
@@ -111,11 +116,6 @@ else
        Expected either \"ppm\" or \"png\"."
 fi
 
-# We use latex, dvips and gs, so check that they're all there.
-FIND_IT ${LATEX}
-FIND_IT ${DVIPS}
-FIND_IT ${GS}
-
 # Initialise some variables.
 TEXFILE=${BASE}.tex
 LOGFILE=${BASE}.log