From: Good Guy Date: Fri, 26 Feb 2021 20:55:56 +0000 (-0700) Subject: SGE complete and final fixups for latex2html X-Git-Tag: 2021-05~13 X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=d7503e3c27356a22abb1b36ba8b303f6fea6b61d;p=goodguy%2Fcin-manual-latex.git SGE complete and final fixups for latex2html --- diff --git a/common/settings.tex b/common/settings.tex index 1fa3035..4e662d4 100644 --- a/common/settings.tex +++ b/common/settings.tex @@ -11,9 +11,7 @@ % Set up the page layout % memman.pdf capter 2: Laying out the page (READ IT!) % example: memsty.sty -%begin{latexonly} \settypeblocksize{8.75in}{34pc}{*} -%end{latexonly} % In loose reference to the theme CW. \definecolor{CinBlueText}{RGB}{23,85,142}% "Dark blue" @@ -31,7 +29,6 @@ % \definecolor{subsectioncolour}{RGB}{23,85,142} % \definecolor{subsubsectioncolour}{RGB}{23,85,142} -%begin{latexonly} \makechapterstyle{morrow}{% requires graphicx package \chapterstyle{default} \renewcommand*{\chapnamefont}{% @@ -45,7 +42,6 @@ \renewcommand*{\chaptitlefont}{% Overwrites toc \normalfont\Huge\bfseries\sffamily\raggedleft\color{CinBlueText}} } -%end{latexonly} \addtodef{\printpartname}{\color{CinBlueText}}{}% Part \addtodef{\printchaptername}{\color{CinBlueText}}{}% Chapter @@ -129,12 +125,10 @@ \parindent=0.0cm % first indent in section \righthyphenmin=2 % hyphen last charecter -%begin{latexonly} \setsecnumdepth{subsubsection} % section numeration depth % We use the chapter header style: \chapterstyle{morrow} -%end{latexonly} % \renewcommand{\printchaptername}{\normalfont\large\scshape Chapter} \renewcommand{\chapterheadstart}{} diff --git a/latex2html-init b/latex2html-init index 6300ef9..4646aaa 100644 --- a/latex2html-init +++ b/latex2html-init @@ -76,10 +76,18 @@ $WORDS_IN_PAGE = 300; $default_language = 'english'; # The value of this variable determines how many words to use in each -# title that is added to the navigation panel (see below) +# title that is added to the navigation panel, see below (-1 is no limit). +# If $SHOW_SECTION_NUMBERS == 1, then one additional word counts +# for the section number. # $WORDS_IN_NAVIGATION_PANEL_TITLES = 4; +# The value of this variable determines how many words to use in each +# Index entry (analogous to $WORDS_IN_NAVIGATION_PANEL_TITLES). +# If not set, it equals to $WORDS_IN_NAVIGATION_PANEL_TITLES by default. +# +#$WORDS_IN_INDEX = 4; + # This number will determine the size of the equations, special characters, # and anything which will be converted into an inlined image # *except* "image generating environments" such as "figure", "table" @@ -213,7 +221,6 @@ sub bot_navigation_panel { &ignore_commands( <<_IGNORED_CMDS_); captionsetup # {} -settocdepth # {} fboxsep # &ignore_numeric_argument drop # &ignore_numeric_argument AddToShipoutPicture # {} diff --git a/translate_manual b/translate_manual index 3fbd6a6..7aca587 100755 --- a/translate_manual +++ b/translate_manual @@ -15,22 +15,14 @@ pdflatex CinelerraGG_Manual.tex # clean the future HTML directory rm -rf CinelerraGG_Manual -# latex2html does not know documentclass memoir. It does work nevertheless -# but may produce slightly better results if we temporarily switch to book. -#mv -f CinelerraGG_Manual.tex CinelerraGG_tmp.tex -#sed -e 's/{memoir}/{book}/' CinelerraGG_Manual.tex +# translate document (GIF images generated via gs, good for debugging) +#latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -image_type gif -nofootnode -show_section_numbers -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex -# translate document -#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 - -# another alternative options combination -#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 +# another alternative options combination (PNG images, nicer look) +#latex2html -html_version 4.0,math -use_pdftex -use_dvipng -image_type png -nofootnode -show_section_numbers -split +3 -link 3 -bottom_navigation -local_icons -t 'Cinelerra-GG Infinity' CinelerraGG_Manual.tex # Alternative currently used on the cinelerra-gg.org website / created on a Fedora system -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 - -# revert back to the original documentclass -#mv -f CinelerraGG_tmp.tex CinelerraGG_Manual.tex +latex2html -html_version 4.0,math -use_pdftex -nouse_dvipng -long_titles 5 -image_type gif -nofootnode -show_section_numbers -split +3 -link 3 -bottom_navigation -local_icons -t 'CinelerraGG_Manual' CinelerraGG_Manual.tex # this single image has to be copied explicitly cp images/cin-big.png CinelerraGG_Manual