hgbook
annotate ja/htlatex.sh @ 899:53a382ea07aa
Add option to the html parser to try to avoid empty nodes.
Hope it makes any difference. :)
Hope it makes any difference. :)
author | dukebody <dukebody@gmail.com> |
---|---|
date | Mon Oct 26 14:12:27 2009 +0100 (2009-10-26) |
parents | |
children |
rev | line source |
---|---|
foozy@708 | 1 #!/bin/sh |
foozy@708 | 2 |
foozy@708 | 3 # USAGE: htlatex.sh <html-target> <????> <latex-option> |
foozy@708 | 4 #LATEX=latex |
foozy@708 | 5 #LATEX=platex |
foozy@708 | 6 LATEX=jlatex |
foozy@708 | 7 |
foozy@708 | 8 ${LATEX} $3 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 |