summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/confproc/example/buildproc
blob: c6d47770f55f5267cc107294b6729bf8cffdeee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

#--- set user dependent file name
TEXFILE="example"
#--- set system dependent variables
#LATEXPATH="/usr/local/teTeX/bin/i386-apple-darwin-current/" # for teTeX
LATEXPATH="/usr/texbin/" # for TexLive 2007
#--- set compilers' paths
PDFLATEX=$LATEXPATH"pdflatex"
BIBTEX=$LATEXPATH"bibtex"
MAKEINDEX=$LATEXPATH"makeindex"

#--- Compile
echo; echo; echo '*** bash: copying class insertion file ***'
cp exclasspre.tex exclass.tex
echo; echo; echo '*** PdfLaTeX: create toc (1/7) ***'
$PDFLATEX  $TEXFILE.tex
echo; echo; echo '*** Bibtex: generate the general biblio. (2/7) ***'
$BIBTEX $TEXFILE
echo; echo; echo '*** Makeindex: create index of authors (3/7) ***'
$MAKEINDEX -s confproc.ist $TEXFILE.idx
echo; echo; echo '*** PdfLaTeX: create toc + include index (4/7) ***'
$PDFLATEX $TEXFILE.tex
echo; echo; echo '*** PdfLaTeX: create backrefs (5/7) ***'
$PDFLATEX $TEXFILE.tex
echo; echo; echo '*** PdfLaTeX: give proper toc and backrefs (6/7) ***'
$PDFLATEX $TEXFILE.tex
echo; echo; echo '*** bash: copying class insertion file ***'
cp exclasslast.tex exclass.tex
echo; echo; echo '*** PdfLaTeX: full papers (mod. class insertion) (7/7) ***'
$PDFLATEX $TEXFILE.tex