rem #! /bin/bash
rem # demo - prepare files for printing from book02 hyerarchy

rem #latex master file
set %LMF%=elaborato

purge.bat 

latex %LMF%
makeindex -s res/indice.ist $LMF.idx
bibtex %LMF%
latex %LMF%
latex %LMF%


rem # prepara file postcript e pdf
dvips -Ppdf -G -q -o $LMF.ps $LMF.dvi
rem psnup -2 $LMF.ps $LMF.2p.ps
ps2pdf $LMF.ps 

rem # cancella file di appoggio creati da latex & c
# cancella file temporanei
purge.bat


rem # mostra risultato con viewer per file dvi
rem # xdvi $LMF &
rem ggv $LMF.ps &

