source: trunk/MESOSCALE_DEV/PLOT/RESERVE/base @ 273

Last change on this file since 273 was 85, checked in by aslmd, 14 years ago

LMD_MM_MARS et LMD_LES_MARS: ajout des routines IDL pour tracer les sorties --> voir mesoscale/PLOT

  • 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
47
48\rm base_temp*
49\rm basefig_temp.tex
50
51dvips -o base.ps base.dvi
52
53xdvi base.dvi
54\rm base.dvi
Note: See TracBrowser for help on using the repository browser.