3 # First build PDF version, 3 times to be completely sure.
4 # The various auxiliary files will be needed later.
6 pdflatex CinelerraGG_Manual
7 pdflatex CinelerraGG_Manual
8 pdflatex CinelerraGG_Manual
10 # Now build HTML version, using auxiliary files created by pdflatex.
12 # clean the future HTML directory
13 rm -rf CinelerraGG_Manual
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
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
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
26 # revert back to the original documentclass
27 mv -f CinelerraGG_tmp.tex CinelerraGG_Manual.tex
29 # this single image has to be copied explicitly
30 cp images/cin-big.png CinelerraGG_Manual
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*