diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/fmk')
-rwxr-xr-x | Master/texmf-dist/doc/latex/minitoc/fmk | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/fmk b/Master/texmf-dist/doc/latex/minitoc/fmk index 9ccd8b8edf8..05576625e90 100755 --- a/Master/texmf-dist/doc/latex/minitoc/fmk +++ b/Master/texmf-dist/doc/latex/minitoc/fmk @@ -1,57 +1,54 @@ #! /bin/csh -set IMP=l4si2 +set HEADER=duplex2v.pro if ( -f fminitoc.dtx ) then echo 'Creating the french documentation...' -# create the french documentation (DVI): 3 latex runs, with index and biblio +if ( -f fminitoc.maf ) then + \rm fminitoc.maf +endif +# create the french documentation (DVI): 4 latex runs, with index and biblio latex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo bibtex fminitoc makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx mv fminitoc.ilg fminitoc.ilg1 -makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo -sed -e's/subitem *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls -sed -e's/[ ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls +# latex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx mv fminitoc.ilg fminitoc.ilg1 -makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo -sed -e's/subitem *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls -sed -e's/[ ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls +# +latex fminitoc.dtx +sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx +makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx +mv fminitoc.ilg fminitoc.ilg1 +# latex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo # convert the .dvi into PostScript # change the printer type -dvips -P$IMP -o fminitoc.ps fminitoc -# create the french documentation (PDF): 3 pdflatex runs, with index and biblio +dvips -h $HEADER -o fminitoc.ps fminitoc +cp fminitoc.log ps-fminitoc.log +# create the french documentation (PDF): 4 pdflatex runs, with index and biblio pdflatex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo bibtex fminitoc makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx mv fminitoc.ilg fminitoc.ilg1 -makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo -sed -e's/subitem *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls -sed -e's/[ ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls +# +pdflatex fminitoc.dtx +sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx +makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx +mv fminitoc.ilg fminitoc.ilg1 +# pdflatex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo makeindex -s fminitoc.ist -o fminitoc.ind fminitoc.idx mv fminitoc.ilg fminitoc.ilg1 -makeindex -s mtcglo.ist -o fminitoc.gls fminitoc.glo -sed -e's/subitem *\\ /subitem /' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls -sed -e's/[ ]*0$/ \\mbox{}/' < fminitoc.gls > fminitoc.gls1; mv fminitoc.gls1 fminitoc.gls +# pdflatex fminitoc.dtx sed -e's/:>/=/' < fminitoc.idx > fminitoc.idx1; mv fminitoc.idx1 fminitoc.idx -sed -e's/:>/>/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo -sed -e's/{[0-9]*}$/{0}/' < fminitoc.glo > fminitoc.glo1; mv fminitoc.glo1 fminitoc.glo # Cleaning -\rm fminitoc.[pm]tc* fminitoc.[pm]l[ft]* +if ( -f fminitoc.maf ) then + cat fminitoc.maf | xargs -i -t \rm {} +endif +endif |