Import Work from 2012/2013

This commit is contained in:
Benjamin Bertrand
2017-06-16 09:45:50 +03:00
commit 80f8d6b71f
350 changed files with 12673 additions and 0 deletions

26
1S/DS/DS_130402/fig/pstricks.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
# on enlève lextension du 1er argument
FILE=${1%.*}
TMPFILE=pstemp
# création dun fichier temporaire psttemp.tex
cat > $TMPFILE.tex <<EOF
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-eps}
\usepackage{pst-plot}
\thispagestyle{empty}
\begin{document}
\begin{TeXtoEPS}
\input{$FILE}
\end{TeXtoEPS}
\end{document}
EOF
# Création du fichier dvi
latex $TMPFILE
# Création du fichier eps
dvips -E $TMPFILE.dvi -o $TMPFILE.eps
# Création du fichier pdf
epstopdf $TMPFILE.eps --debug --outfile=$FILE.pdf
# effacement des fichiers temporaires
rm -f $TMPFILE.*