-----------------------------------------------------------
#!/bin/sh
# [Gedit Tool]
# Comment=Mpost
# Name=Mpost
# Shortcut=F12
# Applicability=all
# Input=nothing
# Output=output-panel
xdotool key "ctrl+s"
mpost "$GEDIT_CURRENT_DOCUMENT_NAME"
i="$GEDIT_CURRENT_DOCUMENT_NAME"
j=${i%.*}
if [ -f "$j.6" ]; then
tex mproof "$j.1" "$j.2" "$j.3" "$j.4" "$j.5" "$j.6"
elif [ -f "$j.5" ];
then
tex mproof "$j.1" "$j.2" "$j.3" "$j.4" "$j.5"
elif [ -f "$j.4" ]; then
tex mproof "$j.1" "$j.2" "$j.3" "$j.4"
elif [ -f "$j.3" ]; then
tex mproof "$j.1" "$j.2" "$j.3"
elif [ -f "$j.2" ]; then
tex mproof "$j.1" "$j.2"
elif [ -f "$j.2" ]; then
tex mproof "$j.1" "$j.2"
else
tex mproof "$j.1"
fi
dvips -ta4 mproof.dvi -o
ps2pdf mproof.ps <http://mproof.ps>
evince mproof.pdf&
-----------------------------------------------------------------------------------------
Thank you
--
Denis LE FUR
dlefur gmail com <mailto:dlefur gmail com>
http://mathsp.tuxfamily.org/
------------------------------------------------------------------------
_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list