#!/bin/bash
input=$1
output=$2
eps2eps ${input} ${input}_temp ;\
sed -n '1,/^%%BoundingBox:/p' ${input} |\
sed -e '$d' >\
${output} ;\
grep '^%%BoundingBox:' ${input}_temp >>\
${output} ;\
sed -n '/^%%BoundingBox:/,$p' ${input} |\
sed -e '1d' >>\
${output} ;\
rm ${input}_temp
#!/bin/bash
input=$1
output=$2
gs -q -sDEVICE=bbox -dNOPAUSE -dSAFER -dBATCH \
-dDEVICEWIDTH=250000 -dDEVICEHEIGHT=250000 \
${input} > ${input}_temp 2>&1
#eps2eps ${input} ${input}_temp ;\
sed -n '1,/^%%BoundingBox:/p' ${input} |\
sed -e '$d' >\
${output} ;\
grep '^%%BoundingBox:' ${input}_temp >>\
${output} ;\
grep '^%%HiResBoundingBox:' ${input}_temp >>\
${output} ;\
sed -n '/^%%BoundingBox:/,$p' ${input} |\
sed -e '1d' >>\
${output} ;\
rm ${input}_temp
./fixbb.sh before.ps after.ps
sed -e 's/true true 0 (-/true true 0 (\\261/g' \ before.ps > after.ps
set fontpath '/usr/share/texmf/fonts/type1/public/cm-super' set terminal postscript enhanced color fontfile 'sfrm1000.pfb' set terminal postscript enhanced color 'SFRM1000' set fontpath '/usr/share/texmf-texlive/fonts/type1/bluesky/cm' set term postscript enhanced color fontfile 'cmr10.pfb' set term postscript enhanced color fontfile 'cmmi10.pfb' set term postscript enhanced color fontfile 'cmsy10.pfb'
set terminal postscript enhanced color 'SFRM1000'
set format y "%3.1t {/CMSY10 \243} 10^{%L}"
2010-10-02
2009-09-05
2009-09-04
2009-08-30
2009-03-01
2009-02-12
2009-02-10
2008-08-05
2008-03-15
2008-01-18
2007-12-31
2007-12-21
2007-10-31
2007-09-08
2007-09-04
2007-09-03
2007-09-01