mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
492182feae
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4494 a592a061-630c-0410-9148-cb99ea01b6c8
15 lines
360 B
Bash
Executable File
15 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# converts a single inset's TeX representation to an .xpm
|
|
|
|
dir=`dirname $2`
|
|
base=${dir}/`basename $2 .xpm`
|
|
|
|
cp $1 ${base}.tex
|
|
(cd ${dir} ; pdflatex --interaction batchmode ${base}.tex)
|
|
dvips -x 2000 -R -E -o ${base}.eps ${base}.dvi
|
|
convert ${base}.eps ${base}.xpm
|
|
rm ${base}.tex ${base}.aux ${base}.dvi ${base}.log ${base}.eps || true
|
|
|
|
exit 0
|