comparison doc/manual/Makefile.generic @ 100:dcb7157392f1

- manual: fixed html output of tables rendered as .png, using tex multirow
author cslag
date Sun, 05 Jun 2016 14:41:58 +0200
parents a59ae4370202
children
comparison
equal deleted inserted replaced
99:7aab1a3cb172 100:dcb7157392f1
12 # pdf 12 # pdf
13 cd "${VPATH}" && for i in pdf aux lof log lol lot out toc; do rm -f manual.$$i || true; done 13 cd "${VPATH}" && for i in pdf aux lof log lol lot out toc; do rm -f manual.$$i || true; done
14 # html 14 # html
15 cd "${VPATH}" && ( \ 15 cd "${VPATH}" && ( \
16 for i in 4ct 4tc css dvi html idv lg tmp xref; do rm -f manual.$$i || true; done; \ 16 for i in 4ct 4tc css dvi html idv lg tmp xref; do rm -f manual.$$i || true; done; \
17 for i in manual*x.png manual*.html texput.log manual_*.log zzmanual.eps zzmanual.ps custom_tex4ht.env; do rm -f $$i || true; done; \ 17 for i in manual*x.png manual*.html texput.log manual_*.log zzmanual.eps zzmanual.ps custom_tex4ht.env multirow.4ht; do rm -f $$i || true; done; \
18 rm -r html || true; \ 18 rm -r html || true; \
19 ) 19 )
20 20
21 21
22 # Main target dependencies ---> 22 # Main target dependencies --->
23 23
24 24
25 html/manual.html: manual_tex4ht.cfg sources 25 html/manual.html: manual_tex4ht.cfg sources
26 # Create tex4ht.env from default one, but with better bitmaps 26 # The following runs htlatex, but sets up a few things beforehand to control
27 # it's behavior:
28 # - create custom, local version of tex4ht.env based on default one, but with
29 # better bitmaps
30 # - create empty multirow.4ht file, to simply override tex4ht's default one,
31 # which produces wrong output in our case - since all the tables where we
32 # use the multirow package are rendered into .pngs for our html doc, we don't
33 # need any tex4ht specific version outputing html
27 cd "${VPATH}" && ( \ 34 cd "${VPATH}" && ( \
35 :>./multirow.4ht; \
28 cp $$(dirname $$(which tex4ht))/../share/texmf-dist/tex4ht/base/unix/tex4ht.env ./custom_tex4ht.env; \ 36 cp $$(dirname $$(which tex4ht))/../share/texmf-dist/tex4ht/base/unix/tex4ht.env ./custom_tex4ht.env; \
29 sed -E -i '' 's/(Text|Graphics)(AlphaBits)=[1,2,3]([^0-9])/\1\2=4\3/g' custom_tex4ht.env; \ 37 sed -E -i '' 's/(Text|Graphics)(AlphaBits)=[1,2,3]([^0-9])/\1\2=4\3/g' custom_tex4ht.env; \
30 mkdir -p ./html/; \ 38 mkdir -p ./html/; \
31 htlatex manual.tex manual_tex4ht " -cunihtf -e./custom_tex4ht.env -utf8" "-e./custom_tex4ht.env -d./html/"; \ 39 htlatex manual.tex manual_tex4ht " -cunihtf -e./custom_tex4ht.env -utf8" "-e./custom_tex4ht.env -d./html/"; \
32 rm ./html/*.css; \ 40 rm ./html/*.css; \