SGE auxiliary files to create latex2html; note latex2html-init is a dot file
[goodguy/cin-manual-latex.git] / translate_manual
1 #!/bin/sh
2
3 # First build PDF version, 3 times to be completely sure.
4 # The various auxiliary files will be needed later.
5
6 pdflatex CinelerraGG_Manual
7 pdflatex CinelerraGG_Manual
8 pdflatex CinelerraGG_Manual
9
10 # Now build HTML version, using auxiliary files created by pdflatex.
11
12 # clean the future HTML directory
13 rm -rf CinelerraGG_Manual
14
15 # latex2html does not know documentclass memoir. It does work nevertheless
16 # but produces slightly better results if we temporarily switch to book.
17 mv -f CinelerraGG_Manual.tex CinelerraGG_tmp.tex
18 sed -e 's/{memoir}/{book}/' <CinelerraGG_tmp.tex >CinelerraGG_Manual.tex
19
20 # translate document
21 #latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -image_type gif -nofootnode -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
22
23 # another alternative options combination
24 latex2html -html_version 4.0,math -use_pdftex -use_dvipng -image_type png -nofootnode -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
25
26 # revert back to the original documentclass
27 mv -f CinelerraGG_tmp.tex CinelerraGG_Manual.tex
28
29 # this single image has to be copied explicitly
30 cp images/cin-big.png CinelerraGG_Manual
31
32 # clean temporary files in the HTML directory
33 rm -f CinelerraGG_Manual/WARNINGS
34 rm -f CinelerraGG_Manual/*.pl
35 rm -f CinelerraGG_Manual/images*