Last change
on this file since 830 was
207,
checked in by aslmd, 14 years ago
|
MESOSCALE: A GENERAL CLEAN-UP FOLLOWING UPDATING THE USER MANUAL. EVERYTHING ESSENTIAL IS IN MESOSCALE (much lighter than before). EVERYTHING FOR DEVELOPPERS OR EXPERTS IS IN MESOSCALE_DEV.
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[207] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | echo 'type the title' |
---|
| 4 | read title |
---|
| 5 | echo 'type the caption' |
---|
| 6 | read caption |
---|
| 7 | |
---|
| 8 | quality=100 |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | rm -rf basefig |
---|
| 12 | mkdir basefig |
---|
| 13 | cd basefig |
---|
| 14 | cp ../base.eps fig1.eps |
---|
| 15 | cp ../base.eps fig2.eps |
---|
| 16 | cp ../base.eps fig3.eps |
---|
| 17 | cp ../base.eps fig4.eps |
---|
| 18 | cp ../base.eps fig5.eps |
---|
| 19 | cp ../base.eps fig6.eps |
---|
| 20 | cd .. |
---|
| 21 | |
---|
| 22 | convert -density ${quality}x${quality} -crop 0x0 $1 basefig/fig1.eps |
---|
| 23 | echo 'converted 1' |
---|
| 24 | |
---|
| 25 | convert -density ${quality}x${quality} -crop 0x0 $2 basefig/fig2.eps |
---|
| 26 | echo 'converted 2' |
---|
| 27 | |
---|
| 28 | convert -density ${quality}x${quality} -crop 0x0 $3 basefig/fig3.eps |
---|
| 29 | echo 'converted 3' |
---|
| 30 | |
---|
| 31 | convert -density ${quality}x${quality} -crop 0x0 $4 basefig/fig4.eps |
---|
| 32 | echo 'converted 4' |
---|
| 33 | |
---|
| 34 | convert -density ${quality}x${quality} -crop 0x0 $5 basefig/fig5.eps |
---|
| 35 | echo 'converted 5' |
---|
| 36 | |
---|
| 37 | convert -density ${quality}x${quality} -crop 0x0 $6 basefig/fig6.eps |
---|
| 38 | echo 'converted 6' |
---|
| 39 | |
---|
| 40 | echo $7 |
---|
| 41 | |
---|
| 42 | sed s/thetitle/${title}/g basefig.tex | sed s/thecaption/${caption}/g > basefig_temp.tex |
---|
| 43 | sed s/basefig/basefig_temp/g base.tex > base_temp.tex |
---|
| 44 | latex base_temp.tex > base_temp.tmp |
---|
| 45 | |
---|
| 46 | mv -f base_temp.dvi base.dvi |
---|
| 47 | xdvi base.dvi & |
---|
| 48 | |
---|
| 49 | \rm base_temp* |
---|
| 50 | \rm basefig_temp.tex |
---|
| 51 | |
---|
| 52 | dvips -o base.ps base.dvi |
---|
| 53 | \rm base.dvi |
---|
Note: See
TracBrowser
for help on using the repository browser.