source: trunk/mesoscale/LMD_MM_MARS/SRC/ARWpost/base @ 13

Last change on this file since 13 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2
3echo 'type the title'
4read title
5echo 'type the caption'
6read caption
7
8quality=100
9
10
11rm -rf basefig
12mkdir basefig
13cd basefig
14cp ../base.eps fig1.eps
15cp ../base.eps fig2.eps
16cp ../base.eps fig3.eps
17cp ../base.eps fig4.eps
18cp ../base.eps fig5.eps
19cp ../base.eps fig6.eps
20cd ..
21
22convert -density ${quality}x${quality} -crop 0x0 $1 basefig/fig1.eps
23echo 'converted 1'
24
25convert -density ${quality}x${quality} -crop 0x0 $2 basefig/fig2.eps
26echo 'converted 2'
27
28convert -density ${quality}x${quality} -crop 0x0 $3 basefig/fig3.eps
29echo 'converted 3'
30
31convert -density ${quality}x${quality} -crop 0x0 $4 basefig/fig4.eps
32echo 'converted 4'
33
34convert -density ${quality}x${quality} -crop 0x0 $5 basefig/fig5.eps
35echo 'converted 5'
36
37convert -density ${quality}x${quality} -crop 0x0 $6 basefig/fig6.eps
38echo 'converted 6'
39
40echo $7
41
42sed s/thetitle/${title}/g basefig.tex | sed s/thecaption/${caption}/g > basefig_temp.tex
43sed s/basefig/basefig_temp/g base.tex > base_temp.tex
44latex base_temp.tex > base_temp.tmp
45
46mv -f base_temp.dvi base.dvi
47xdvi base.dvi &
48
49\rm base_temp*
50\rm basefig_temp.tex
51
52dvips -o base.ps base.dvi
53\rm base.dvi
Note: See TracBrowser for help on using the repository browser.