update Batch Rendering for clarification
[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.tex
7 makeindex CinelerraGG_Manual.idx
8 makeindex CinelerraGG_Manual.nlo -s nomencl.ist -o CinelerraGG_Manual.nls
9 pdflatex CinelerraGG_Manual.tex
10 makeindex CinelerraGG_Manual.idx
11 pdflatex CinelerraGG_Manual.tex
12
13 # Now build HTML version, using auxiliary files created by pdflatex.
14
15 # clean the future HTML directory
16 rm -rf CinelerraGG_Manual
17
18 # latex2html does not know documentclass memoir. It does work nevertheless
19 # but may produce slightly better results if we temporarily switch to book.
20 #mv -f CinelerraGG_Manual.tex CinelerraGG_tmp.tex
21 #sed -e 's/{memoir}/{book}/' <CinelerraGG_tmp.tex >CinelerraGG_Manual.tex
22
23 # translate document
24 #latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -image_type gif -nofootnode -numbered_footnotes -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
25
26 # another alternative options combination
27 #latex2html -html_version 4.0,math -use_pdftex -use_dvipng -image_type png -nofootnode -numbered_footnotes -cut_ref_name -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex
28
29 # Alternative currently used on the cinelerra-gg.org website / created on a Fedora system
30 latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -long_titles 5 -image_type gif -nofootnode -numbered_footnotes -split +3 -link 3 -cut_ref_name -bottom_navigation -local_icons -t 'CinelerraGG_Manual' CinelerraGG_Manual.tex
31
32 # revert back to the original documentclass
33 #mv -f CinelerraGG_tmp.tex CinelerraGG_Manual.tex
34
35 # this single image has to be copied explicitly
36 cp images/cin-big.png CinelerraGG_Manual
37
38 # clean temporary files in the HTML directory
39 rm -f CinelerraGG_Manual/WARNINGS
40 rm -f CinelerraGG_Manual/*.pl
41 rm -f CinelerraGG_Manual/images*