# $Id$ # Makefile for TeX Live documentation. Public domain. doc = texlive-en all: pdf html tlpre = # possible prefix to run from the pretest env = TEXINPUTS=.:../texlive-common:../texlive-en:; export TEXINPUTS; $(tlpre) pdflatex_opts = --file-line-error pdflatex = pdflatex $(pdflatex_opts) '\nonstopmode\def\Status{1}\input $(doc)' # The story here is that for HTML, we just want tags referring to # the graphics (in ../texlive-common), without specifying any size, # since their natural size is ok (enough). But LaTeX's \includegraphics # requires a size (htlatex runs latex, not pdflatex, so it can't # determine the size for .png files), and tex4ht passes that warning on, # which is just an annoyance. We could generate .xbb files, but then # we'd have to update them every year, which seems like a waste of time # when we don't want a size in the first place. # texfot_pdf = texfot texfot_html = texfot --ignore="Cannot determine size of graphic" \ --ignore='File.*\.xbb\"' pdf: rm -f *.aux *.toc *.lof *.lot *.xref* *.tmp *.out $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) # It is better to use htlatex than the individual runs since then we can # easily specify these options; \Preamble in live4ht.cfg is not equivalent. # The options here: # live4ht - reads our live4ht.cfg. # info - extra debugging info. # xhtml - required for html5. # html5 - output viewport decl to help on small screens. # charset - UTF-8 is more likely to work well than Latin 1. # fn-in - keep footnotes in the main output file. # # The other option, -cunihtf -utf8, goes along with the charset and # tells tex4ht to look for Unicode font encodings. See https://tug.org/tex4ht. html h: rm -f *.aux *.toc *.lof *.lot *.xref* *.tmp *.out $(env) $(texfot_html) htlatex $(doc) \ "live4ht,info,xhtml,html5,charset=utf-8,fn-in" \ " -cunihtf -utf8"