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KHR"L%W@XATZK6#$JHB$LZ +M=%O:9.`^1:MWK7`OT7]@4ERDUZ.>#6@ 8H?N6_'4 +M#3EQVS:,^E)=1?H"$4*0O..I$9,BRH9%/15R7;^H58_,N/&M1G5#0C(6I0)I +9P9QW_;^Q\JH71R_@1`````!)14Y$KD)@@@`` +` +end --- tex4ht-20090611.orig/debian/patches/biblatex.4ht.diff +++ tex4ht-20090611/debian/patches/biblatex.4ht.diff @@ -0,0 +1,53 @@ +Description: Fix a conflict between biblatex & tex4ht +Source: upstream +--- a/texmf/tex/generic/tex4ht/biblatex.4ht 2009-06-11 14:20:16.000000000 +0000 ++++ b/texmf/tex/generic/tex4ht/biblatex.4ht 2010-01-07 18:21:21.000000000 +0000 +@@ -1,5 +1,5 @@ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-% biblatex.4ht 2009-05-21-09:32 % ++% biblatex.4ht Version 1.1 % + % Copyright (C) 2007--2009 Eitan M. Gurari % + % % + % This work may be distributed and/or modified under the % +@@ -13,18 +13,18 @@ + % % + % This work has the LPPL maintenance status "maintained".% + % % +-% This Current Maintainer of this work % +-% is Eitan M. Gurari. % ++% The Current Maintainer of this work % ++% is the TeX4ht Project. % + % % + % If you modify this program your changing its signature % + % with a directive of the following form will be % + % appreciated. % + % \message{signature} % + % % +-% gurari@cse.ohio-state.edu % +-% http://www.cse.ohio-state.edu/~gurari % ++% tex4ht@tug.org % ++% http://www.tug.org/tex4ht % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-\immediate\write-1{version 2009-05-21-09:32} ++\immediate\write-1{Version 1.1} + + \ifx \blx@startbib\:UnDef + \pend:def\blx@shorthands{% +@@ -37,7 +37,7 @@ + \else \c:printshorthands \fi + } + {\d:printshorthands}% +- \append:def\endtheshorthands{\b:printshorthands}% ++% \append:def\endtheshorthands{\b:printshorthands}% + \csname a:@shorthands\endcsname + }} + \NewConfigure{printshorthands}{4} +@@ -149,6 +149,8 @@ + \blx:item[#1]% + \ifhmode \spacefactor\blx@sf@par\fi + } ++\let\blx@resetpuncthook\@empty ++\let\blx@csq@ifkernmark\@empty + \def\blx@begunit{% + \toggletrue{blx@tempa}% + \iftoggle{blx@insert} --- tex4ht-20090611.orig/debian/patches/series +++ tex4ht-20090611/debian/patches/series @@ -0,0 +1,8 @@ +add_Makefile.diff +add_java_manifest +add_manpage.diff +add_scripts_sh.diff +add_texmf_cnf.diff +fix_tex4ht_env.diff +fix_mk4ht.diff +biblatex.4ht.diff --- tex4ht-20090611.orig/debian/patches/add_texmf_cnf.diff +++ tex4ht-20090611/debian/patches/add_texmf_cnf.diff @@ -0,0 +1,20 @@ +This config file for texmf overrides some settings in the texlive +distribution which are the based on upstream install directories. + +Index: tex4ht-20071203/src/80tex4ht.cnf +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tex4ht-20071203/src/80tex4ht.cnf 2007-12-11 21:29:59.000000000 +0530 +@@ -0,0 +1,12 @@ ++% Additional variables for tex4ht/t4ht programs. The default texmf.cnf ++% already has T4HTINPUTS. TEX4HTINPUTS is not strictly necessary but is ++% included for completeness (it points to the kpathsea default). ++% TEX4HTFONTSET is not needed for default situations, but setting it avoids a ++% warning message from tex4ht. ++%T4HTINPUTS = .;$TEXMF/tex4ht// ++TEX4HTINPUTS = .;$TEXMF/tex4ht// ++TEX4HTFONTSET = .;$TEXMF/tex4ht/ht-fonts// ++ ++% Added the default search location for scripts on Debian ++TEXINPUTS.mk4ht = /usr/share/tex4ht/ ++ --- tex4ht-20090611.orig/debian/patches/add_Makefile.diff +++ tex4ht-20090611/debian/patches/add_Makefile.diff @@ -0,0 +1,197 @@ +Upstream does not use "make" so we provide a Makefile. + +Index: tex4ht-20090223/src/Makefile +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tex4ht-20090223/src/Makefile 2009-02-26 10:18:53.000000000 +0530 +@@ -0,0 +1,190 @@ ++# Makefile created by Andrew Gray for tex4ht, 11/3/1999 ++# modified for 1999-05-06 version of tex4ht, 23/5/1999 ++# modified for 2000-07-03 version of tex4ht, 15/7/2000 ++# modified for 2001-03-09 version of tex4ht, 13/3/2001 (safer for non-Debian ++# users - the scripts 'httex' etc won't be deleted on a 'make clean'!) ++# modified for debian sub-version 20010309-2 (remove ht.1 manpage symlink), ++# 19/6/2001 ++# modified for debian sub-version 20010309-3 (rename ht to tex4ht-ht in ++# install target, and add tex4ht-ht.1 manpage link), 20/7/2001 ++# modified for 2001-12-14 version of tex4ht, 16/12/2001 (*.4ht files now ++# unpacked into a sub-directory all4ht/, *.txt in doc/share included, shell ++# scripts generated in scripts/ and installed into /usr/share/tex4ht) ++# modified to allow building without having tex4ht already installed, 7/3/2002 ++# modified to slightly simplify generation of the scripts in ++# /usr/share/tex4ht, for debian version 20021008-1, 6/11/2002 ++# modified for v.20030426-1 (changed directory layout in upstream sources), ++# 3/5/2003 ++# modified for v.20050212-1 Additional script mk4ht is a perl script. ++# 19/2/2005 ++# modified for debian sub-version 20050402.1817-2 (do not rename ht to ++# tex4ht-ht in install target, and add tex4ht-ht.1 manpage link). ++# removed the doc directories and edited man page accordingly. ++# added installation of xv4ht.cat which can be used with xv4ht.java ++# 17/11/2005 ++# added support for installation of xtpipes.jar ++# - defined JAVAC JAR for compliation ++# - added xtpipes.jar to target ++# - defined XTPIPES_SRC (currently compiled all at once) ++# - defined XTTLFILES, XTTLDIR, XTPFILES ++# - added install rules for XTTLFILES XTPFILES and xtpipes.jar ++# 22/08/2005 ++# modified the sed patterns for tex4ht.env to replace use of ++# SELFAUTOPARENT and use TEXMFDIR instead. ++# 14/09/2007 ++# modifed (for v.20070904) the XTPFILES variable. Defined XTPDIR variable and ++# modified install rules to install XTPFILES in XTPDIR. Renamed ++# xtpipes.jar to tex4ht.jar ++# 14/09/2007 ++# modified to create new targets "indep" "arch" "install-arch" and ++# "install-indep" to split the arch-dependent and independent builds. ++# 12/12/2007 ++# removed reference to xttl stuff which is no longer in the upstream ++# archive. ++# 12/12/2007 ++# location of unix ht scripts has changed to ../bin/ht/unix ++# 26/02/2009 ++ ++# (designed for Debian GNU/Linux, but should be moreorless usable on other ++# Linuxes/Unixes) ++ ++############################################################ ++# You may want to comment out this variable if not compiling for Debian: ++PACKAGEDFOR=debian ++ ++# Comment this out if not using the kpathsea file search library: ++SEARCHLIBRARY=kpathsea ++ ++############################################################ ++# Directories for installation ++ ++# DESTDIR used for Debian packaging; USRDIR typically /usr or /usr/local: ++DESTDIR= ++USRDIR=/usr ++ ++BINDIR=$(DESTDIR)$(USRDIR)/bin ++ ++ifeq ($(PACKAGEDFOR),debian) ++ MANDIR=$(DESTDIR)$(USRDIR)/share/man/man1 ++ TEXMFDIR=$(DESTDIR)$(USRDIR)/share/texmf ++ TEX4HTDIR=$(DESTDIR)/etc/tex4ht ++ TEXMFCNF=$(DESTDIR)/etc/texmf/texmf.cnf ++else ++ MANDIR=$(DESTDIR)$(USRDIR)/man/man1 ++ TEXMFDIR=$(DESTDIR)$(USRDIR)/lib/texmf ++ TEX4HTDIR=$(TEXMFDIR)/tex4ht ++ TEXMFCNF=$(TEXMFDIR)/web2c/texmf.cnf ++endif ++ ++TEXDIR=$(TEXMFDIR)/tex/generic/tex4ht ++HTFDIR=$(TEXMFDIR)/tex4ht/ht-fonts ++XTPDIR=$(TEXMFDIR)/tex4ht/xtpipes ++SCRIPTSDIR=$(DESTDIR)$(USRDIR)/share/tex4ht ++ ++############################################################ ++# These definitions try to group the files from the tex4ht sources. They may ++# need some adjustment, depending how you have unpacked the 'zip' files. ++TEXFILES=../texmf/tex/generic/tex4ht/* ++TEX4HTFILE=../texmf/tex4ht/base/unix/tex4ht.env ++HTFFILES=../texmf/tex4ht/ht-fonts/* ++XTPFILES=../texmf/tex4ht/xtpipes/* ++TESTFILES=testa.tex testb.tex ++SCRIPTS=../bin/ht/unix/* ../bin/unix/mk4ht ++ ++############################################################ ++# Compiler/program options: ++SED=sed ++CC=gcc ++CFLAGS=-O2 -g -Wall -DANSI -DHAVE_UNISTD_H -DHAVE_STRING_H -DHAVE_SYS_DIR_H -DHAVE_DIR_H -DHAVE_DIRENT_H -DLGTYP='".png"' ++ifeq ($(SEARCHLIBRARY),kpathsea) ++ CFLAGS:=$(CFLAGS) -I/usr/include/kpathsea -lkpathsea -DKPATHSEA ++else ++ CFLAGS:=$(CFLAGS) -DENVFILE='"$(TEX4HTDIR)/tex4ht.env"' -DHTFDIR='"$(HTFDIR)"' ++endif ++JAVAC=ecj ++JAR=fastjar ++ ++############################################################ ++ ++define edit-script ++ ++if ( head -1 "$(SCRIPT)" | grep -q '^\#!.*perl' ); then \ ++ cp -p $(SCRIPT) ../scripts/$(notdir $(SCRIPT)); \ ++else \ ++$(SED) -e "1r $<" -e "1d" \ ++ -e "s;-i[^ ]*/;-i$(HTFDIR)/;" \ ++ -e "s;\(#1,x\{0,1\}html\)\([,\]}]\);\1,png\2;" \ ++ $(SCRIPT) > ../scripts/$(notdir $(SCRIPT)) ; \ ++fi ++ ++endef ++ ++PROGS=tex4ht t4ht ++MAINSCRIPTS=httex htlatex httexi mk4ht ++MANS=tex4ht.1 t4ht.1 ht.1 httex.1 htlatex.1 httexi.1 mk4ht.1 ++XTPIPES_SRC=java/*.java java/xtpipes/*.java java/xtpipes/util/*.java ++ ++.PHONY : all arch indep install install-arch install-indep clean ++ ++all : arch indep ++ ++arch : $(PROGS) $(MANS) tex4ht.env ht-scripts ++ ++indep : tex4ht.jar ++ ++tex4ht : tex4ht.c ++ $(CC) -o $@ $^ $(CFLAGS) ++ ++t4ht : t4ht.c ++ $(CC) -o $@ $^ $(CFLAGS) ++ ++tex4ht.jar: $(XTPIPES_SRC) ++ $(JAVAC) -d class -source 1.5 $(XTPIPES_SRC) ++ $(JAR) -c -f tex4ht.jar -m java/manifest -C class . ++ ++ht-scripts : scripts.sh ++ mkdir -p ../scripts ++ $(foreach SCRIPT, $(wildcard $(SCRIPTS)), $(edit-script)) ++ touch $@ ++ ++tex4ht.env : $(TEX4HTFILE) ++ $(SED) \ ++ -e "s;^i.*/ht-fonts/;i$(HTFDIR)/;" \ ++ -e "s;^tpath/tex/;t$(TEXMFDIR)/;" \ ++ -e "s;%%~/texmf-dist/;$(TEXMFDIR)/;" \ ++ $< > $@ ++ ++t4ht.1 ht.1 httex.1 htlatex.1 httexi.1 mk4ht.1: tex4ht.1 ++ ln -s $< $@ ++ ++tex4ht.1 : tex4ht.man ++ $(SED) \ ++ -e "s;@TEXDIR@;$(TEXDIR);g" \ ++ -e "s;@TEX4HTDIR@;$(TEX4HTDIR);g" \ ++ -e "s;@TEXMFCNF@;$(TEXMFCNF);g" \ ++ -e "s;@HTFDIR@;$(HTFDIR);g" \ ++ -e "s;@SCRIPTSDIR@;$(SCRIPTSDIR);g" \ ++ $< > $@ ++ ++install : install-arch install-indep ++ ++install-arch : arch ++ install -d -m 755 $(BINDIR) $(TEX4HTDIR) $(MANDIR) $(SCRIPTSDIR) ++ install -s -m 755 $(PROGS) $(BINDIR) ++ install -m 755 ../scripts/ht $(BINDIR)/ht ++ install -m 755 ../scripts/* $(SCRIPTSDIR) ++ $(foreach SCRIPT,$(MAINSCRIPTS),install -m 755 ../scripts/$(SCRIPT) $(BINDIR);) ++ $(foreach MANFILE,$(MANS),cp -d $(MANFILE) $(MANDIR);) ++ install -m 644 tex4ht.env $(TEX4HTDIR) ++ ++install-indep : indep ++ install -d -m 755 $(TEXDIR) $(HTFDIR) $(XTPDIR) $(SCRIPTSDIR) ++ install -m 644 $(TEXFILES) $(TEXDIR) ++ install -m 644 tex4ht.jar $(SCRIPTSDIR) ++ cp -r $(XTPFILES) $(XTPDIR) ++ cp -r $(HTFFILES) $(HTFDIR) ++ ++clean : ++ rm -f $(PROGS) $(MANS) tex4ht.env ht-scripts ../scripts/* tex4ht.jar ++ rm -rf class ++ --- tex4ht-20090611.orig/debian/patches/fix_tex4ht_env.diff +++ tex4ht-20090611/debian/patches/fix_tex4ht_env.diff @@ -0,0 +1,169 @@ +The system-wide tex4ht.env is modified to use Debian specific locations + +Index: tex4ht-20090218/texmf/tex4ht/base/unix/tex4ht.env +=================================================================== +--- tex4ht-20090218.orig/texmf/tex4ht/base/unix/tex4ht.env 2009-02-22 14:47:39.000000000 +0530 ++++ tex4ht-20090218/texmf/tex4ht/base/unix/tex4ht.env 2009-02-22 14:55:57.000000000 +0530 +@@ -1,6 +1,7 @@ + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % tex4ht.env / .tex4ht (unix) 2009-01-20-20:54 % + % Copyright (C) 1997--2009 Eitan M. Gurari % ++% Modified Kapil Paranjape % + % % + % This work may be distributed and/or modified under the % + % conditions of the LaTeX Project Public License, either % +@@ -20,6 +21,9 @@ + % http://www.cse.ohio-state.edu/~gurari % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % ++% Modifictions by Kapil Paranjape are tagged % ++% % ++% % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Notes: % + % 1. Empty lines might be harmful % +@@ -50,6 +54,7 @@ + % + t entries are ignored % + % + the path before /ht-fonts/ is ignored in i records that don't % + % represent real addresses % ++% + (see /usr/share/doc/tex4ht/README.kpathsea for details) + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % + % +@@ -150,7 +155,11 @@ + % magnification: -x mag (e.g., -x 1200) % + % page size: -T x,y (e.g., -T 14in,14in) % + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +- ++% ++% +++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ++% The convert method is the upstream default method ++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ++ + G.png + Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps + Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit +@@ -167,7 +176,8 @@ + % Gconvert -crop 0x0 +repage -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3 + % Gconvert -crop 0x0 +page -density 110x110 -transparent "#FFFFFF" zz%%4.ps %%3 + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +- +++ Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps + Ggs -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit +@@ -180,7 +190,11 @@ + Grm temp.ppm + % Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3 + +-++% ++% + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + % Default scripts, shifted rightward 1 pos +@@ -215,9 +230,11 @@ + % removed protection % + S* + % ++%++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ++% This is the Debian default which uses dvipng ++%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ++ + G.png + Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3 + G.gif +@@ -189,7 +203,8 @@ + Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps + Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3 + Grm zz%%4.ps +- ++++% + ++ % + % ++ .html mv %%1.html %%1.tmp +-.html java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp ++.html java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp + .jhm echo "java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html" + .jhm echo "--- Warning --- Beware of leftover %%1*.html files from other compilations" + .jhm java -jar ${HOME}/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html +@@ -228,43 +245,46 @@ + + + .html mv %%1.html %%1.tmp +-.html java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -o %%1.html %%1.tmp ++.html java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.html %%1.tmp + + ++ .jsml mv %%1.jsml %%1.tmp +-.jsml java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp ++.jsml java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp + + ++ .xml cp %%1.xml %%1.tmp +-.xml java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -o %%1.xml %%1.tmp ++.xml java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.xml %%1.tmp + + ++ .html mv %%1.html %%1.tmp +-.html java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp ++.html java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp + .xht mv %%1.xht %%1.tmp +-.xht java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp ++.xht java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp + .xml mv %%1.xml %%1.tmp +-.xml java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp ++.xml java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp + + ++ .html mv %%1.html %%1.tmp +-.html java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp ++.html java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp + .xht mv %%1.xht %%1.tmp +-.xht java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp ++.xht java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp + .xml mv %%1.xml %%1.tmp +-.xml java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp ++.xml java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp + + ++ .4oo mv %%0.4oo %%0.tmp +-.4oo java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp ++.4oo java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp + .4om mv %%1.4om %%1.tmp +-.4om java -classpath %%~/texmf-dist/tex4ht/bin/tex4ht.jar xtpipes -i %%~/texmf-dist/tex4ht/xtpipes/ -o %%1.4om %%1.tmp ++.4om java -classpath /usr/share/tex4ht/tex4ht.jar xtpipes -i /usr/share/texmf/tex4ht/xtpipes/ -o %%1.4om %%1.tmp + ++ % ++ %+ .html xmllint --noout --valid --html %%1.html +@@ -277,8 +297,8 @@ + % + + %%% openoffice % +-.4oo mkdir sxw-%%0.dir +-.4os mkdir sxw-%%0.dir/Pictures ++.4oo mkdir -p sxw-%%0.dir ++.4os mkdir -p sxw-%%0.dir/Pictures + .4os mv %%1.4os sxw-%%0.dir/settings.xml + .4oo mv %%0.4oo sxw-%%0.dir/content.xml + % % +@@ -286,7 +306,7 @@ + .4om mv %%1.4om sxw-%%0.dir/%%1/content.xml + .4om cp sxw-%%0.dir/settings.xml sxw-%%0.dir/%%1/settings.xml + % % +-.4of mkdir sxw-%%0.dir/META-INF ++.4of mkdir -p sxw-%%0.dir/META-INF + .4of mv %%1.4of sxw-%%0.dir/META-INF/manifest.xml + % % + .4ot mv %%1.4ot sxw-%%0.dir/meta.xml --- tex4ht-20090611.orig/debian/patches/fix_mk4ht.diff +++ tex4ht-20090611/debian/patches/fix_mk4ht.diff @@ -0,0 +1,31 @@ +Debian requires that perl scripts are invoked using /usr/bin/perl + +Index: tex4ht/bin/unix/mk4ht +=================================================================== +--- tex4ht.orig/bin/unix/mk4ht 2008-07-02 12:01:17.000000000 +0530 ++++ tex4ht/bin/unix/mk4ht 2008-07-02 12:07:19.000000000 +0530 +@@ -1,3 +1,7 @@ ++#!/usr/bin/perl ++# The shebang line above replaces the shebang line below for Debian Policy compliance: ++# Kapil Hari Paranjape Thu, 17 Feb 2005 22:42:11 +0530 ++# + #!/usr/bin/env perl + #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + # mk4ht 2008-06-28-19:09 % +@@ -353,7 +357,7 @@ + $i++; + } + my $cmd; +-open (KPSEA, "kpsewhich " . $command[0] . " |"); ++open (KPSEA, "kpsewhich --progname mk4ht " . $command[0] . " |"); + if ($cmd = ){ + $cmd =~ s/\s+$//; + } else { +@@ -385,3 +389,7 @@ + } + exit( $rtrn ); + ++ ++# The line below is required for Debian Policy compliance ++# Kapil Hari Paranjape Thu, 17 Feb 2005 22:42:11 +0530 ++1; --- tex4ht-20090611.orig/debian/patches/add_java_manifest +++ tex4ht-20090611/debian/patches/add_java_manifest @@ -0,0 +1,9 @@ +The manifest file is not automatically created by fastjar + +Index: tex4ht-20090223/src/java/manifest +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tex4ht-20090223/src/java/manifest 2009-02-26 10:04:37.000000000 +0530 +@@ -0,0 +1,2 @@ ++Manifest-Version: 1.0 ++Main-Class: xtpipes --- tex4ht-20090611.orig/debian/patches/add_manpage.diff +++ tex4ht-20090611/debian/patches/add_manpage.diff @@ -0,0 +1,511 @@ +Upstream does not provide manpages so we provide them. + +Index: tex4ht-20080701/src/tex4ht.man +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tex4ht-20080701/src/tex4ht.man 2008-09-12 10:40:42.000000000 +0530 +@@ -0,0 +1,504 @@ ++.\" Written by Andrew Gray , 12 March 1999 ++.\" Revised Tue, 22 Jun 1999 09:53:47 +0100 ++.\" Revised Sun, 16 Jul 2000 14:08:07 +0100 ++.\" Revised Sat, 3 May 2003 22:41:20 +0100 ++.\" Revised by Kapil Hari Paranjape Tue, 5 Apr 2005 08:51:27 +0530 ++.\" Revised Thu, 11 Sep 2008 12:40:50 +0530 ++.TH TEX4HT 1 "5 Apr 2005" ++.SH NAME ++TeX4ht \- a system for authoring hypertext with TeX and friends ++.SH SYNOPSIS ++.BR mk4ht ++.I command ++.I file ++.RI "[ " "options1" " ]" ++.RI "[ " "options2" " ]" ++.RI "[ " "options3" " ]" ++.LP ++.BR httex | htlatex | httexi ++.I file ++.RI "[ " "options1" " ]" ++.RI "[ " "options2" " ]" ++.RI "[ " "options3" " ]" ++.LP ++.B ht ++tex|latex ++.IR file " [ " "t4ht options" " ]" ++.LP ++.B tex4ht ++[ ++.BI \-f dir-char ++] ++.I file[.dvi] ++[ ++.BI \-c tag-name ++] [ ++.BI \-e env-file ++] [ ++.BI \-g bitmap-file-ext ++] [ ++.BR \-h ( e|f|F|g|s|v|V ) ++] [ ++.BI \-i htf-font-dir ++] [ ++.BI \-l bookkeeping-file ++] [ ++.BR \-P ( * | \fIfilter\fP ) ++] [ ++.BI \-t tfm-font-dir ++] [ ++.B \-u10 ++] [ ++.B \-utf8 ++] [ ++.B \-xs ++] ++.LP ++.B t4ht ++[ ++.BI \-f dir-char ++] ++.I file[.lg] ++[ ++.BI \-c tag-name ++] [ ++.BI \-d out-dir ++] [ ++.BI \-e env-file ++] [ ++.B \-i ++] [ ++.BI \-m mode ++] [ ++.BI \-M mode ++] [ ++.B \-p ++] [ ++.B \-r ++] [ ++.BR \-S ( * | \fIfilter\fP ) ++] [ ++.BI \-X field-content ++] [ ++.BI \-. field-content ++] ++.LP ++.SH "DESCRIPTION" ++(This manual page was written for the Debian GNU/Linux distribution because the ++original program does not have a manual page. Instead, it is ++documented in detail at the author's website; see below. Please refer to ++that documentation for more details or up to date information.) ++.PP ++This page documents briefly ++the portmanteau perl script ++.BR mk4ht ", ++the more specific shell scripts ++.BR httex ", "htlatex ", "httexi ", ++and others like them, the lower level shell script interface ++.BR ht ", ++and the commands ++.BR tex4ht " and "t4ht " ++that all these scripts invoke. Together these programs constitute ++TeX4ht; a highly configurable TeX-based authoring system for producing hypertext. ++.PP ++TeX4ht interacts with TeX-based applications through a style file ++.I tex4ht.sty ++and other files which are loaded by this style file, ++leaving the processing of the source files to the native TeX ++compiler. The output of the TeX compiler is then post-processed by ++.BR tex4ht " and "t4ht ". ++Consequently, TeX4ht can handle most features of TeX-based systems in ++general, and of LaTeX in particular. ++.PP ++The shell scripts ++.BR " httex ", " htlatex " and " httexi ++convert TeX (respectively LaTeX and texinfo) into HTML. Typical user ++requirements should be satisfied by these scripts which can generally ++convert typical TeX source ++.IR without ++requiring any modifications. ++.PP ++To convert from a one of the other dialects of TeX (like ConTeXt), ++.IR or ++to convert into one of the other variants of hypertext ++(MathML, XML, OO and so on), it is ++.IR recommended ++that you use the perl script ++.BR "mk4ht". ++Most common usage of the ++system can be covered by the appropriate use of this command with its options. ++.PP ++The shell script ++.BR " ht ++is a much more elementary script which is provided for more complicated ++needs. Its correct use depends on a better understanding of the system. ++.PP ++All these scripts begin with suitable invocations of ++.BR tex (1) ++or ++.BR latex (1) ++or other dialects of TeX as required. The post-processing of the ++.I .dvi ++output is handled by ++.BR "tex4ht". ++Anything that cannot be rendered using HTML (or its chosen hypertext variant), such ++as the creation of bitmap images or CSS (Cascade Style Sheet) files is handled by ++the auxiliary program ++.BR "t4ht". ++The method used for generating the images can be configured. ++.PP ++.SH OPTIONS ++The following is only a very brief summary of the main program options. ++For more details of the command-line and configuration options, see the HTML ++documentation (see below). ++.SS Options for httex, htlatex and httexi ++.BR httex ", " htlatex " and " httexi ++are shell scripts that can be used to convert a file in the TeX/LaTeX/texinfo format ++into HTML. This TeX source file should be like any other TeX source file ++normally used to produce a ++.I .dvi ++file by processing with TeX and friends. The name of such a file is the mandatory file argument ++for each script. This is followed by up to three optional arguments (delimited with ++quotation marks). These arguments, which are ++.B not ++required for typical usage, are as follows: ++.IP 1. ++The first argument is a list of options for the ++.I tex4ht.sty ++style file (used with tex or latex), separated with commas. ++See the HTML documentation for the list of options available. The ++.I .log ++file generated by tex/latex also includes summaries of some of the options available. ++If not empty, this argument must start with ++.B html ++or ++.BR xhtml . ++Additional options could be ++.B mathml ++or ++.B docbook ++to indicate appropriate style of output. ++.IP 2. ++This argument is used to select tagged sections of ++.I tex4ht.env ++that specifies the font files (*.htf) to use. This corresponds to the ++.BI \-c ++option for the command ++.I tex4ht ++as explained below. Examples include ++.B unicode ++or ++.BR mozilla . ++.IP 3. ++This argument lists options for the ++.I t4ht ++program as explained below. ++.LP ++See the HTML documentation for more details and examples. ++.LP ++Similar scripts are ++available within the directory ++.I @SCRIPTSDIR@ ++for generating other kinds of hypertext output. It is also possible ++to use the perl script ++.BR mk4ht ++as explained below. ++.SS Options for mk4ht ++.BR mk4ht ++is a perl script that can be used to convert TeX source files from ++numerous dialects of TeX into different hypertext variants. This script ++takes two mandatory arguments: the name of the command to run and the ++file to run it on. Each possible command is of the form ++" ": so for example ++.IR xhmlatex ++denotes a LaTeX source that needs to be converted to XHTML with ++MathML extensions. The possible names for commands can be found by ++listing the directory ++.I @SCRIPTSDIR@. ++The three optional arguments to ++.BR mk4ht ++are identical to those outlined above for ++.BR httex ", "htlatex " and " httexi ". ++In fact, the command ++.BR htlatex " "foo " ++is identical to ++.BR mk4ht " "htlatex " "foo " ++except that the former is shorter to type! However, ++.BR mk4ht ++can be configured to shorten the command line as follows. ++.PP ++Each user can create the configuration file ++.IR mk4ht.cfg ++or ++.IR .mk4ht ++in the home or working directory to configure commonly used options ++for mk4ht; in addition options to clean up temporary files can also ++be added to this configuration file. Running the command ++.BR mk4ht ++without any arguments will summarise the use of this user configuration ++file. ++.SS Options for ht ++.B ht ++is a small shell script that is used to run the tex4ht programs. It has two ++compulsory arguments, as follows: ++.IP 1. ++The TeX command name to run, usually either ++.B tex ++or ++.BR latex . ++.IP 2. ++The input file name (with or without extension). ++.PP ++It may take any additional options, which will be passed on to the call to ++.BR t4ht . ++.SS General directory/file search options ++Several of the options detailed below relate to setting directory paths to ++find particular kinds of files. Note the following when specifying ++directories for the programs: ++.IP 1. ++There must be no space between the option letter (eg, ++.BR \-t ) ++and the directory/file name. ++.IP 2. ++The directory name must end with a trailing slash ++.RB ( / , ++or ++.B /! ++\- see below). ++.IP 3. ++You can add an exclamation mark ++.RB ( ! ) ++to the end of the directory name, to enable sub-directory searching. ++.IP 4. ++Only one directory can be specified at a time. To search multiple ++directories, either use the sub-directory searching facility or repeat the ++option. (The directory search options can be repeated as often as required.) ++.IP 5. ++When compiled with ++.B kpathsea ++(as in the Debian package), the path-searching is in part taken over by ++kpathsea. On a Debian system see ++.I /usr/share/doc/tex4ht/README.kpathsea ++for more information on path-searching in a kpathsea-enabled tex4ht. ++.LP ++As well as command-line options, most of these options can (and normally ++should) be set in the configuration file ++.IR tex4ht.env . ++The format within this file is similar, but without using a hyphen before the ++option letter. See the HTML documentation for more details on the ++configuration options available. The file ++.IR tex4ht.env ++can be superseded on a per-directory and/or a per-user basis as ++explained in the HTML documentation. On a Debian system see ++.I /usr/share/doc/tex4ht/README.Debian ++as well. ++.SS Options for tex4ht ++.TP ++.BI \-c tag-name ++Certain lines within the ++.I tex4ht.env ++configuration file can be marked with tags. These lines (typically ++.I htf-font-dir ++search lines) ++will be omitted unless specifically requested by specifying the tag name on ++the tex4ht command line. If not used, a command-line option of ++.BI \-c default ++is assumed. (See the supplied tex4ht.env file for examples of tagged ++sections.) ++.TP ++.BI \-e env-file ++Specify address of the tex4ht configuration file ++.IR tex4ht.env . ++.TP ++.BI \-g bitmap-file-ext ++Set the extension of bitmap images to ++.I bitmap-file-ext ++instead of the default ++.IR .png . ++Note that the extension should begin with a dot ++.RB ( . ). ++Note also that this option only affects images generated automatically for ++symbol fonts, and not images generated with the ++.B \(rsPicture ++macro of tex4ht. ++.TP ++.B \-he ++Trace errors and warnings (produces verbose output). ++.TP ++.B \-hg ++Trace groups ++.TP ++.B \-hs ++Trace ++.BR \(rsspecial s. ++.TP ++.B \-hV ++Trace search path for tex4ht.env configuration file ++.TP ++.B \-hF ++Trace search path for ++.I .htf ++font files ++.TP ++.B \-hv ++Dump contents of found tex4ht.env configuration file to stderr (for debugging) ++.TP ++.B \-hf ++Dump contents of each ++.I .htf ++font file found to stderr (for debugging) ++.TP ++.BI \-i htf-font-dir ++Set directory for HTF font files (used by tex4ht) to ++.IR htf-font-dir . ++.TP ++.BI \-l bookkeeping-file ++Specify name of the file listing cache used to speed up filename lookups ++(ignored if compiled with kpathsea support) ++.TP ++.BI \-P filter ++Restrict system calls requested in the source (La)TeX files to utilities whose ++names have ++.I filter ++as a prefix. Use a single asterisk as ++.I filter ++to allow any system calls. ++.TP ++.BI \-t tfm-font-dir ++Set directory for TFM font files to ++.I tfm-font-dir ++(ignored if compiled with kpathsea support). ++.TP ++.BI \-u10 ++Use base 10 encoding for unicode characters. ++.TP ++.BI \-utf8 ++Use utf-8 encoding for unicode characters. ++.TP ++.BI \-xs ++Use 8.3 (MSDOS style) file names for the generated PNG files. ++.SS Options for t4ht ++.TP ++.BI \-c tag-name ++Certain lines within the ++.I tex4ht.env ++configuration file can be marked with tags. These lines (typically scripts ++for post-processing files) will be omitted unless specifically requested by ++specifying the tag name on the tex4ht command line. If not used, a ++command-line option of ++.BI \-c default ++is assumed. (See the supplied tex4ht.env file for examples of tagged ++sections.) ++.TP ++.BI \-d out-dir ++Output files to directory ++.IR out-dir , ++instead of to the current directory. ++.TP ++.BI \-e env-file ++Specify address of the tex4ht configuration file ++.IR tex4ht.env . ++.TP ++.B \-i ++Generate verbose debugging output. ++.TP ++.BI \-m mode ++Create any new output files with access mode as indicated by ++.IR mode . ++The ++.I mode ++should be a numeric mode, as used by the ++.BR chmod (1) ++command. ++.TP ++.BI \-M mode ++As ++.I -m ++but change all mode of all output files (including reused bitmaps). ++.TP ++.B \-p ++Do not convert pictures (ie, images generated with macros like ++.BR \(rsPicture , ++not characters in symbol fonts that will be automatically converted into a ++graphic file). ++.TP ++.B \-r ++Do not resuse existing bitmaps of glyphs (for characters in symbol fonts etc), ++but instead generate all bitmaps anew. ++.TP ++.BI \-S filter ++Restrict system calls requested in the source (La)TeX files to utilities whose ++names have ++.I filter ++as a prefix. Use a single asterisk as ++.I filter ++to allow any system calls. ++.TP ++.BI \-X field-content ++Scripts for post-processing of files can be specified in tex4ht.env. If these ++scripts refer to a field %%3, content for that field can be set with this ++command-line option. ++.TP ++.BI \-. field-content ++Scripts for post-processing of groups of files with a particular extension can ++be specified in tex4ht.env. If these scripts refer to a field %%2, content ++for that field can be set with this command-line option. ++.SH FILES ++.TP ++.I @TEX4HTDIR@/tex4ht.env ++Configuration file for tex4ht. This file is commented within the file, and ++some additional notes are in ++.I /usr/share/doc/tex4ht/README.kpathsea ++on a Debian system. Further explanation is available in the HTML ++documentation. ++.TP ++.I @TEXMFCNF@ ++Global configuration file for all TeX-related programs using the kpathsea path ++searching library. The variables ++.IR TEX4HTINPUTS , ++.I T4HTINPUTS ++and ++.I TEX4HTFONTSET ++within this file relate to file searching within ++.B tex4ht ++and ++.BR t4ht. ++These variables may also be set in the environment, outwith @TEXMFCNF@. ++.TP ++.I @HTFDIR@/*.htf ++Hypertext font files used by tex4ht. ++.TP ++.IR @TEXDIR@/tex4ht.sty " and " @TEXDIR@/*.4ht ++Macro files used by tex or latex when using tex4ht to generate HTML output. ++.TP ++.I @SCRIPTSDIR@/* ++Shell scripts for generating different kinds of hypertext output from tex or ++latex sources. ++.SH "SEE ALSO" ++The use of the tex4ht macros is documented in the HTML documentation ++at the web site given below. ++.PP ++.BR tex (1), ++.BR latex (1), ++.BR amstex (1), ++.BR kpsewhich (1), ++.I http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html ++.SH BUGS ++This manual page is not complete. Users should refer to the HTML ++documentation for fuller details of the ++configuration options and for details of the use of the tex4ht style files. ++.B tex4ht ++is still a work in progress, so bug reports ++and requests are very welcome: contact Eitan Gurari ++ . ++.SH AUTHOR ++This manual page was originally written by Andrew Gray ++(and then modified by Kapil Paranjape), ++for the Debian GNU/Linux system (but it may be used by others). ++.PP ++The ++.B tex4ht ++programs and macro files were written by Eitan Gurari ++ . The author maintains a home page at ++.I http://www.cse.ohio-state.edu/~gurari/TeX4ht/ ++. --- tex4ht-20090611.orig/debian/patches/add_scripts_sh.diff +++ tex4ht-20090611/debian/patches/add_scripts_sh.diff @@ -0,0 +1,14 @@ +A script that is used as a template script + +Index: tex4ht-1.0.2006_04_01_2140/src/scripts.sh +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tex4ht-1.0.2006_04_01_2140/src/scripts.sh 2006-04-06 18:37:55.000000000 +0530 +@@ -0,0 +1,7 @@ ++#!/bin/sh ++if command -v xhtex > /dev/null 2>&1 ; then ++ true ++else ++ export PATH=/usr/share/tex4ht:$PATH ++fi ++ --- tex4ht-20090611.orig/debian/html/bg.cfg +++ tex4ht-20090611/debian/html/bg.cfg @@ -0,0 +1,4 @@ +\Preamble{html} +\begin{document} + \Css{body { background-image : url(bgimage.png); background-repeat : repeat; }} +\EndPreamble --- tex4ht-20090611.orig/debian/html/tex4ht_doc.tex +++ tex4ht-20090611/debian/html/tex4ht_doc.tex @@ -0,0 +1,238 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% tex4ht_doc.tex 2008-02-12-09:30 % +% Copyright (C) 2005, 2008 Kapil H. Paranjape % +% % +% This work may be distributed and/or modified under the % +% conditions of the General Public License, either % +% version 2 of this license or (at your option) any % +% later version. The latest version of this license is % +% in % +% http://www.gnu.org/gpl.txt % +% and version 2 or later is part of all distributions % +% of Debian. % +% % +% This Current Maintainer of this work % +% is Kapil H. Paranjape. % +% % +% If you modify this work your changing its signature % +% with a directive of the following form will be % +% appreciated. % +% kapil@imsc.res.in % +% http://www.imsc.res.in/~kapil % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\documentclass{amsart} +\usepackage{hyperref} +\begin{document} +\title{A brief introduction to TeX4ht} +\author{Kapil Hari Paranjape} +\maketitle + +\section{What do we have here?} +What follows is a brief introduction to the TeX4ht system +designed and currently maintained by Eitan M. Gurari. The source +for this document is in the file \verb|tex4ht_doc.tex| and can +be processed using the command \verb|htlatex tex4ht_doc.tex| as +explained below. It is hoped that such processing will prove +instructive as well. + +\section{Executive summary} +TeX4ht is a system to convert TeX input into hypertext documents of +different kinds. TeX4ht operates on input that is ``standard'' \TeX\ or +\LaTeX (but please check the last section for some differences). +This input is processed by \verb|tex| in the usual way except +that certain additional macros are loaded which create some hooks in +the output that can be used to produce the hypertext. The output is +then post-processed by the program \verb|tex4ht| which produces the +hypertext. Auxiliary files such as \verb|.css| files and image files +are produced by the program \verb|t4ht|. + +Usage is simplified via the Perl script \verb|mk4ht| which can be called +directly to combine the above operations transparently. For example the +source of this document can be processed using +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex +\end{verbatim} +This will produce \verb|tex4ht_doc.html| and some supplementary +files which is the HTML version of this documentation. Similarly, +\begin{verbatim} + mk4ht xhmlatex tex4ht_doc.tex +\end{verbatim} +will produce the XML version with MATH-ML and +\begin{verbatim} + mk4ht mzlatex tex4ht_doc.tex +\end{verbatim} +will produce MATH-ML which uses fonts that are rendered well via the +``Gecko'' engine of \verb|mozilla|. Additional such commands are +\begin{verbatim} + mk4ht oolatex tex4ht_doc.tex +\end{verbatim} +to a format that can be read by \verb|OpenOffice| and +\begin{verbatim} + mk4ht dblatex tex4ht_doc.tex +\end{verbatim} +for DocBook and +\begin{verbatim} + mk4ht teilatex tex4ht_doc.tex +\end{verbatim} +for TEI format XML output. +The broad structure of the \verb|mk4ht| command-line is +\begin{verbatim} + mk4ht #1 #2 #3 #4 #5 +\end{verbatim} +The first argument is the type of conversion required. Using +\verb|mk4ht| without arguments lists the conversions available. The +second argument is the name of the file that is to be processed. The +third, fourth and fifth arguments are optional and are described +is some detail below. + +The rest of this document introduces the system in a little more detail. +See\ \cite{authdoc} and \cite{website} for authoritative information. +In the first following section (Section~\ref{style}) we examine the +options for modifying the way in which \TeX\ processes the source; +specifically these can be thought of as options for the macros in +\verb|tex4ht.sty|. The next section (Section~\ref{postproc}) deals +with the post-processing that converts \TeX's output into hypertext. +The final section (Section~\ref{supple}) shows how one can change the +way the system generates the supplementary files like images and +style-sheets for the hypertext output. + +This document is assumes that the reader has some familiarity with +the \TeX\ and \LaTeX\ systems; see \cite{tex} and \cite{latex} for +more information. + +\section{Options for Styles}\label{style} +Options for \TeX\ and \LaTeX\ processing can be added as the first +optional argument (\verb|#3| above) to the \verb|mk4ht| command. For +example, the command +\begin{verbatim} + mk4ht xhmlatex tex4ht_doc.tex +\end{verbatim} +is in fact similar\footnote{The differences lie in the font files +chosen as described in section~\ref{postproc}} to the command +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex "xhtml,mathml" +\end{verbatim} +Similarly, +\begin{verbatim} + mk4ht oolatex tex4ht_doc.tex +\end{verbatim} +is in fact similar to the command +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex "xhtml,ooffice" +\end{verbatim} +In most cases this list of options begins with \verb|html| or +\verb|xhtml|. Additional options available can be found by searching +for the string \verb|--- Note ---| at the start of a line in the +resulting log file. For example +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex + grep -A 1 '^--- Note ---' tex4ht_doc.log +\end{verbatim} +will list all the available options for \verb|html| conversion. + +When this list of options does not start with \verb|html| or +\verb|xhtml| then the system looks for a file with the name given by +the first option and the \verb|.cfg| extension. The simplest use of +this feature is as follows. Create a file called \verb|bgimage.cfg| +containing the lines +\begin{verbatim} + \Preamble{html} + \begin{document} + \Css{BODY { background-image : url(background.png); }} + \EndPreamble +\end{verbatim} +After this +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex "bgimage" +\end{verbatim} +will add an additional line to \verb|tex4ht_doc.css| incorporating +the image \verb|background.png|. See the main documentation +\cite{authdoc} for more details on creating configuration files. + +\section{Post processing}\label{postproc} +The optional arguments \verb|#4| and \verb|#5| refer to options for +the \verb|tex4ht| and \verb|t4ht| commands respectively. Both these +commands make use of the configuration file \verb|tex4ht.env| (which +may be over-ridden by \verb|.tex4ht| in the current directory or the +user's home directory). This configuration file is called the +``environment file'' in the main documentation \cite{authdoc} in +order to avoid confusing it with the configuration file described in +the previous section. + +The program \verb|tex4ht| has to look for ``font descriptions'' that +describe how various non-standard glyphs are to be ``rendered'' in +hypertext. The TeX4ht system provides a number of possibilities like +using Unicode or fonts suited to the Gecko engine of the +Mozilla browser and so on. So the command +\begin{verbatim} + mk4ht mzlatex tex4ht_doc.tex +\end{verbatim} +is almost\footnote{There is an additional option as explained in +section~\ref{supple} below.} equivalent to +\begin{verbatim} + mk4ht htlatex tex4ht_doc.tex "xhtml,mozilla" "-cmozhtf" +\end{verbatim} +The \verb|-c | option for \verb|tex4ht| picks up the tagged +section from the \verb|tex4ht.env| environment file. Any other +command-line option of \verb|tex4ht| can also be used as part of +\verb|#4| which is just a space separated list of options for this +command. + +\section{Creating Supplementary Files}\label{supple} +The final step of conversion is the creation of supplementary files +like image files for formulae and equations like +\[ \frac{x^n-1}{x-1} = \sum_{i=0}^{n-1} x^i \] +which is the rendering of the \LaTeX\ input string +\begin{verbatim} + \[ \frac{x^n-1}{x-1} = \sum_{i=0}^{n-1} x^i \] +\end{verbatim} +In most cases such \TeX\ constructions can only be rendered as +images. The \verb|tex4ht| program creates a series of instructions +for the \verb|t4ht| program in a \verb|.lg| file. The latter carries +out these instructions by making use of external programs like +\verb|dvipng| or \verb|convert| to create these images. The most +useful option in the argument list \verb|#5| is \verb|-p| which +prevents images from being generated. Another useful option is +\verb|-cvalidate| which causes the net output to be validated using +an external validation program such as \verb|xmllint|. All the +options in the argument list \verb|#5| are passed on \verb|t4ht|. + +\section{Some difference between TeX4ht and TeX} +We document some differences between the systems. For more up-to-date +information please see the author's documentation\cite{authdoc}. + +\subsection{Regarding filenames} +In short, do {\em not} use special characters in your filenames; +ideally stick with filenames which are composed of standard ASCII +alphanumerics wherever possible. Some explanations follow. + +\TeX\ nowadays accepts files with names that contain all manner of +characters and so it is natural to imagine that TeX4ht will do so to. +However, one has to be concerned with the filenames used in output as +well as those used for input. Since the latter will appear in +URL's that will appear within the hypertext using special characters +will cause hyperlinks to break. Thus TeX4ht does not currently behave +well if special characters are used in input file names. + +\subsection{Extra braces required} +In short, when in doubt enclosed sub- and super- scripts in braces if +they are longer than a single character. + +In this respect the syntax of the TeX language that is accepted by +TeX4ht is stricter than that accepted by \TeX\ and \LaTeX. + +\begin{thebibliography}{00} +\bibitem[1]{authdoc} +\url{http://www.cse.ohio-state.edu/~gurari/mn.html} +The authoritative documentation maintained by Eitan M. Gurari. +\bibitem[2]{website} +\url{http://www.cse.ohio-state.edu/~gurari} +Eitan M.~Gurari's web page that discusses related projects. +\bibitem[3]{tex} +\url{http://www.tug.org/} +The \TeX\ User's group primary web site. +\bibitem[4]{latex} +\url{http://www.latex-project.org/} +The \LaTeX\ project's primary web site. +\end{thebibliography} +\end{document} --- tex4ht-20090611.orig/debian/html/tex4ht_doc3.html +++ tex4ht-20090611/debian/html/tex4ht_doc3.html @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + --- tex4ht-20090611.orig/debian/html/tex4ht_doc.css +++ tex4ht-20090611/debian/html/tex4ht_doc.css @@ -0,0 +1,126 @@ + +/* start css.sty */ +.cmr-7{font-size:70%;} +.cmmi-7{font-size:70%;font-style: italic;} +.cmmi-10{font-style: italic;} +.cmsy-7{font-size:70%;} +.cmr-8{font-size:80%;} +.cmr-6{font-size:60%;} +.cmbx-10{ font-weight: bold;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmti-10{ font-style: italic;} +.cmtt-8{font-size:80%;font-family: monospace;} +.cmtt-8{font-family: monospace;} +p.noindent { text-indent: 0em } +td p.noindent { text-indent: 0em; margin-top:0em; } +p.nopar { text-indent: 0em; } +p.indent{ text-indent: 1.5em } +@media print {div.crosslinks {visibility:hidden;}} +a img { border-top: 0; border-left: 0; border-right: 0; } +center { margin-top:1em; margin-bottom:1em; } +td center { margin-top:0em; margin-bottom:0em; } +.Canvas { position:relative; } +img.math{vertical-align:middle;} +li p.indent { text-indent: 0em } +.enumerate1 {list-style-type:decimal;} +.enumerate2 {list-style-type:lower-alpha;} +.enumerate3 {list-style-type:lower-roman;} +.enumerate4 {list-style-type:upper-alpha;} +div.newtheorem { margin-bottom: 2em; margin-top: 2em;} +.obeylines-h,.obeylines-v {white-space: nowrap; } +div.obeylines-v p { margin-top:0; margin-bottom:0; } +.overline{ text-decoration:overline; } +.overline img{ border-top: 1px solid black; } +td.displaylines {text-align:center; white-space:nowrap;} +.centerline {text-align:center;} +.rightline {text-align:right;} +div.verbatim {font-family: monospace; white-space: nowrap; } +table.verbatim {width:100%;} +.fbox {padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +div.fbox {display:table} +div.center div.fbox {text-align:center; clear:both; padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +table.minipage{width:100%;} +div.center, div.center div.center {text-align: center; margin-left:1em; margin-right:1em;} +div.center div {text-align: left;} +div.flushright, div.flushright div.flushright {text-align: right;} +div.flushright div {text-align: left;} +div.flushleft {text-align: left;} +.underline{ text-decoration:underline; } +.underline img{ border-bottom: 1px solid black; margin-bottom:1pt; } +.framebox-c, .framebox-l, .framebox-r { padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +.framebox-c {text-align:center;} +.framebox-l {text-align:left;} +.framebox-r {text-align:right;} +span.thank-mark{ vertical-align: super } +span.footnote-mark sup.textsuperscript, span.footnote-mark a sup.textsuperscript{ font-size:80%; } +div.tabular, div.center div.tabular {text-align: center; margin-top:0.5em; margin-bottom:0.5em; } +table.tabular td p{margin-top:0em;} +table.tabular {margin-left: auto; margin-right: auto;} +div.td00{ margin-left:0pt; margin-right:0pt; } +div.td01{ margin-left:0pt; margin-right:5pt; } +div.td10{ margin-left:5pt; margin-right:0pt; } +div.td11{ margin-left:5pt; margin-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +td.td00{ padding-left:0pt; padding-right:0pt; } +td.td01{ padding-left:0pt; padding-right:5pt; } +td.td10{ padding-left:5pt; padding-right:0pt; } +td.td11{ padding-left:5pt; padding-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +.hline hr, .cline hr{ height : 1px; margin:0px; } +.tabbing-right {text-align:right;} +span.TEX {letter-spacing: -0.125em; } +span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;} +a span.TEX span.E {text-decoration: none; } +span.LATEX span.A{ position:relative; top:-0.5ex; left:-0.4em; font-size:85%;} +span.LATEX span.TEX{ position:relative; left: -0.4em; } +div.float img, div.float .caption {text-align:center;} +div.figure img, div.figure .caption {text-align:center;} +.marginpar {width:20%; float:right; text-align:left; margin-left:auto; margin-top:0.5em; font-size:85%; text-decoration:underline;} +.marginpar p{margin-top:0.4em; margin-bottom:0.4em;} +table.equation {width:100%;} +.equation td{text-align:center; } +td.equation { margin-top:1em; margin-bottom:1em; } +td.equation-label { width:5%; text-align:center; } +td.eqnarray4 { width:5%; white-space: normal; } +td.eqnarray2 { width:5%; } +table.eqnarray-star, table.eqnarray {width:100%;} +div.eqnarray{text-align:center;} +div.array {text-align:center;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +span.pmatrix img{vertical-align:middle;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +img.cdots{vertical-align:middle;} +span.footnote-mark{ vertical-align: super; font-size:80%; } +div.submaketitle{ text-align:left; margin-top:2em; border-top: 1px solid black; border-bottom: 1px solid black; margin-left:5%; margin-right:5%; font-size:85%; line-height: 95%;} +div.submaketitle div {margin-top:0.5em; margin-bottom:0.5em; } +div.submaketitle p { margin-top:0em; margin-bottom:0em; } +div.abstract{ margin-top: 2em; text-align:left; margin-right:15pt; margin-left:15pt; } +div.addresses p {margin-top:0em; margin-bottom:0em; } +h2.titleHead{text-align:center;} +div.maketitle{ margin-bottom: 2em; text-align:center; } +.caption td.id{font-weight: bold; white-space: nowrap; } +table.caption {text-align:center;} +p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +.qed {width:2ex; float:right; text-align:right;} +.partToc a, .partToc, .likepartToc a, .likepartToc {line-height: 200%; font-weight:bold; font-size:110%;} +div.translators {text-align:right; margin-bottom:0.7em;} +.sectionHead{text-align:center;} +.equation td{text-align:center; } +.equation-star td{text-align:center; } +table.equation-star { width:100%; } +table.equation { width:100%; } +table.align, table.alignat, table.xalignat, table.xxalignat, table.flalign {width:100%; margin-left:5%; white-space: nowrap;} +table.align-star, table.alignat-star, table.xalignat-star, table.flalign-star {margin-left:auto; margin-right:auto; white-space: nowrap;} +td.align-label { width:5%; text-align:center; } +td.align-odd { text-align:right; padding-right:0.3em;} +td.align-even { text-align:left; padding-right:0.6em;} +table.multline, table.multline-star {width:100%;} +td.gather-star, td.gather1 {text-align:center; } +table.gather, table.gather-star {width:100%;} +body { background-image : url(bgimage.png); background-repeat : repeat; } +/* end css.sty */ + --- tex4ht-20090611.orig/debian/html/tex4ht_doc.html +++ tex4ht-20090611/debian/html/tex4ht_doc.html @@ -0,0 +1,458 @@ + + + A brief introduction to TeX4ht + + + + + + + + ++++A BRIEF INTRODUCTION TO TEX4HT +
+++1. What do we have here?
+What follows is a brief introduction to the TeX4ht system designed and currently +maintained by Eitan M. Gurari. The source for this document is in the file +tex4ht_doc.tex and can be processed using the command htlatex tex4ht_doc.tex +as explained below. It is hoped that such processing will prove instructive as +well. +
2. Executive summary
+TeX4ht is a system to convert TeX input into hypertext documents of different kinds. +TeX4ht operates on input that is “standard” TEX or LATEX(but please check +the last section for some differences). This input is processed by tex in the +usual way except that certain additional macros are loaded which create some +hooks in the output that can be used to produce the hypertext. The output is +then post-processed by the program tex4ht which produces the hypertext. +Auxiliary files such as .css files and image files are produced by the program +t4ht. +
Usage is simplified via the Perl script mk4ht which can be called directly to combine +the above operations transparently. For example the source of this document can be +processed using + + + +
+
+mk4ht htlatex tex4ht_doc.tex ++This will produce tex4ht_doc.html and some supplementary files which is the HTML +version of this documentation. Similarly, + + + +
+
+mk4ht xhmlatex tex4ht_doc.tex ++will produce the XML version with MATH-ML and + + + +
+
+mk4ht mzlatex tex4ht_doc.tex ++will produce MATH-ML which uses fonts that are rendered well via the “Gecko” engine +of mozilla. Additional such commands are + + + +
+
+mk4ht oolatex tex4ht_doc.tex ++to a format that can be read by OpenOffice and + + + +
+
+mk4ht dblatex tex4ht_doc.tex ++for DocBook and + + + +
+
+mk4ht teilatex tex4ht_doc.tex ++for TEI format XML output. The broad structure of the mk4ht command-line +is + + + +
+
+mk4ht #1 #2 #3 #4 #5+The first argument is the type of conversion required. Using mk4ht without arguments +lists the conversions available. The second argument is the name of the file that is to be +processed. The third, fourth and fifth arguments are optional and are described is some +detail below. +
The rest of this document introduces the system in a little more detail. See [1] and [2] +for authoritative information. In the first following section (Section 3) we examine the +options for modifying the way in which TEX processes the source; specifically these +can be thought of as options for the macros in tex4ht.sty. The next section +(Section 4) deals with the post-processing that converts TEX’s output into hypertext. +The final section (Section 5) shows how one can change the way the system +generates the supplementary files like images and style-sheets for the hypertext +output. +
This document is assumes that the reader has some familiarity with the TEX and +LATEX systems; see [3] and [4] for more information. +
3. Options for Styles
+Options for TEX and LATEX processing can be added as the first optional argument +(#3 above) to the mk4ht command. For example, the command + + + +
+
+mk4ht xhmlatex tex4ht_doc.tex ++is in fact similar1 +to the command + + + +
+
+mk4ht htlatex tex4ht_doc.tex "xhtml,mathml" ++Similarly, + + + +
+
+mk4ht oolatex tex4ht_doc.tex ++is in fact similar to the command + + + +
+
+mk4ht htlatex tex4ht_doc.tex "xhtml,ooffice" ++In most cases this list of options begins with html or xhtml. Additional options available +can be found by searching for the string --- Note --- at the start of a line in the +resulting log file. For example + + + +
+
+mk4ht htlatex tex4ht_doc.tex ++
grep -A 1 ’^--- Note ---’ tex4ht_doc.log +will list all the available options for html conversion. +
When this list of options does not start with html or xhtml then the system looks for +a file with the name given by the first option and the .cfg extension. The simplest use +of this feature is as follows. Create a file called bgimage.cfg containing the +lines + + + +
+
+\Preamble{html} ++
\begin{document} +
\Css{BODY { background-image : url(background.png); }} +
\EndPreamble +After this + + + +
+
+mk4ht htlatex tex4ht_doc.tex "bgimage" ++will add an additional line to tex4ht_doc.css incorporating the image +background.png. See the main documentation [1] for more details on creating +configuration files. +
4. Post processing
+The optional arguments #4 and #5 refer to options for the tex4ht and t4ht commands +respectively. Both these commands make use of the configuration file tex4ht.env (which +may be over-ridden by .tex4ht in the current directory or the user’s home directory). +This configuration file is called the “environment file” in the main documentation [1] in +order to avoid confusing it with the configuration file described in the previous +section. +
The program tex4ht has to look for “font descriptions” that describe how various +non-standard glyphs are to be “rendered” in hypertext. The TeX4ht system provides a +number of possibilities like using Unicode or fonts suited to the Gecko engine of the +Mozilla browser and so on. So the command + + + +
+
+mk4ht mzlatex tex4ht_doc.tex ++is almost2 +equivalent to + + + +
+
+mk4ht htlatex tex4ht_doc.tex "xhtml,mozilla" "-cmozhtf" ++The -c<tagname> option for tex4ht picks up the tagged section from the +tex4ht.env environment file. Any other command-line option of tex4ht can also +be used as part of #4 which is just a space separated list of options for this +command. +
5. Creating Supplementary Files
+The final step of conversion is the creation of supplementary files like image files for +formulae and equations like +
+ +which is the rendering of the LATEX input string + + + +
+
+\[ \frac{x^n-1}{x-1} = \sum_{i=0}^{n-1} x^i \] ++In most cases such TEX constructions can only be rendered as images. The tex4ht +program creates a series of instructions for the t4ht program in a .lg file. The latter +carries out these instructions by making use of external programs like dvipng or +convert to create these images. The most useful option in the argument list #5 +is -p which prevents images from being generated. Another useful option is +-cvalidate which causes the net output to be validated using an external validation +program such as xmllint. All the options in the argument list #5 are passed on +t4ht. +
6. Some difference between TeX4ht and TeX
+We document some differences between the systems. For more up-to-date information +please see the author’s documentation[1]. +
6.1. Regarding filenames. + In short, do not use special characters in your filenames; ideally stick with filenames +which are composed of standard ASCII alphanumerics wherever possible. Some +explanations follow. +
TEX nowadays accepts files with names that contain all manner of characters and so +it is natural to imagine that TeX4ht will do so to. However, one has to be concerned with +the filenames used in output as well as those used for input. Since the latter will appear +in URL’s that will appear within the hypertext using special characters will cause +hyperlinks to break. Thus TeX4ht does not currently behave well if special characters are +used in input file names. +
6.2. Extra braces required. + In short, when in doubt enclosed sub- and super- scripts in braces if they are longer +than a single character. +
In this respect the syntax of the TeX language that is accepted by TeX4ht is stricter +than that accepted by TEX and LATEX. +
References
++
++ + + + + + --- tex4ht-20090611.orig/debian/html/tex4ht_doc2.html +++ tex4ht-20090611/debian/html/tex4ht_doc2.html @@ -0,0 +1,22 @@ + + ++[1] http://www.cse.ohio-state.edu/~gurari/mn.html The authoritative documentation + maintained by Eitan M. Gurari. + + + +
++[2] http://www.cse.ohio-state.edu/~gurari Eitan M. Gurari’s web page that discusses + related projects. +
++[3] http://www.tug.org/ The TEX User’s group primary web site. +
++[4] http://www.latex-project.org/ The LATEX project’s primary web site.
+ + + + + + + + + + +