From 3affd633834494c279f96078e95831935ea51ca7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 10 May 2008 00:31:48 +0000 Subject: tex4ht-1.0.2008_05_07_2048 git-svn-id: svn://tug.org/texlive/trunk@8000 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/html4.4ht | 3798 ++++++++++++++---------- 1 file changed, 2247 insertions(+), 1551 deletions(-) (limited to 'Master/texmf-dist/tex/generic/tex4ht/html4.4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht index 68058bf2f99..6a083262daa 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% html4.4ht 2007-01-02-13:00 % -% Copyright (C) 1997--2007 Eitan M. Gurari % +% html4.4ht 2008-02-21-17:14 % +% Copyright (C) 1997--2008 Eitan M. Gurari % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -24,17 +24,20 @@ % gurari@cse.ohio-state.edu % % http://www.cse.ohio-state.edu/~gurari % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2007-01-02-13:00} +\immediate\write-1{version 2008-02-21-17:14} -\exit:ifnot{Arabicore,% +\exit:ifnot{8859-6,% CJK,% JHEP,% Preamble,% ProTex,% +SIunits,% aa,% abidir,% acm-proc-article-sp,% +algorithm,% algorithmic,% +algorithmicx,% alltt,% alphanum,% amsart,% @@ -53,14 +56,25 @@ article,% austrian,% babel,% beamer,% +biblatex,% bibtopic,% book,% booktabs,% boxedminipage,% catalan,% +chapterbib,% color,% colortbl,% context,% +cp1250,% +cp1252,% +cp1256,% +cp437,% +cp437de,% +cp850,% +cp852,% +cp862,% +cp865,% croatian,% curve,% czech,% @@ -79,6 +93,7 @@ eplain,% epsf,% esperant,% estonian,% +europecv,% exam,% exerquiz,% fancybox,% @@ -121,6 +136,7 @@ ltxguide,% manju,% manmac,% mdwlist,% +mdwtab,% memoir,% mex,% mfpic,% @@ -136,6 +152,7 @@ mwrep,% ngerman,% ngermanb,% nicefrac,% +nomencl,% norsk,% ntheorem,% ot4enc,% @@ -170,6 +187,7 @@ scrbook,% scrreprt,% seminar,% seslideb,% +sistyle,% slides,% slidesec,% slovak,% @@ -202,6 +220,7 @@ web,% welsh,% wrapfig,% writer,% +xcolor,% xy} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -290,18 +309,33 @@ xy} \Configure{CutAt-filename}{% \ifx \:NxtNwFN\:Undef \tmp:toks={#2}% +\immediate\openout15=\jobname .tmp +\immediate\write15{\string\next{\the\tmp:toks}}% +\immediate\closeout15 +\bgroup + \def\next{\csname no:catcodes\endcsname{92}{92}{9}% + \xdef\:temp}% + \csname no:catcodes\endcsname{32}{47}{9}% + \csname no:catcodes\endcsname{58}{64}{9}% + \csname no:catcodes\endcsname{91}{91}{9}% + \csname no:catcodes\endcsname{93}{96}{9}% + \csname no:catcodes\endcsname{126}{126}{9}% + \csname a:sec-filename*\endcsname + \input \jobname .tmp +\egroup +% \immediate\openout15=\jobname .tmp - \immediate\write15{\string\next{\the\tmp:toks}}% - \immediate\closeout15 - \bgroup - \def\next{\xdef\:temp}% - \csname no:catcodes\endcsname{32}{47}{9}% - \csname no:catcodes\endcsname{58}{64}{9}% - \csname no:catcodes\endcsname{91}{91}{9}% - \csname no:catcodes\endcsname{93}{96}{9}% - \csname no:catcodes\endcsname{126}{126}{9}% - \input \jobname .tmp - \egroup +\immediate\write15{\string\next[\:temp]}% +\immediate\closeout15 +\bgroup + \def\next{\xdef\:temp}% + \csname no:catcodes\endcsname{91}{91}{1}% + \csname no:catcodes\endcsname{93}{93}{2}% + \csname no:catcodes\endcsname{123}{123}{9}% + \csname no:catcodes\endcsname{125}{125}{9}% + \input \jobname .tmp +\egroup +% \tmp:cnt=0 \uniq:fn \fi } @@ -321,6 +355,7 @@ xy} \advance\tmp:cnt by 1 \expandafter\uniq:fn \fi } +\NewConfigure{sec-filename*}{1} \else \Log:Note{For section filenames that reflect on @@ -396,7 +431,11 @@ switches of tex4ht.c) {\HCode{<}}{\HCode{>}}{}{} \fi -\ScriptCommand{\CssFile}{% +\:CheckOption{-css} \if:Option + \def\Css#1{} + \NewConfigure{CssFile}{2} +\else + \ScriptCommand{\CssFile}{% \immediate\write-1{--- file \aa:CssFile\space ---}% \def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}% \def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}% @@ -426,13 +465,14 @@ switches of tex4ht.c) \def\Css#1{{\def\:temp{\Configure{Needs}}% \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}} -\Configure{Preamble} - {{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@ + \Configure{Preamble} + {{\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@ \leavevmode}% \immediate\write-1{--- file \aa:CssFile\space ---}% \ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}% \ht:special{t4ht<\aa:CssFile}% } {} +\fi \ifx \a:FontCss:\:UnDef \Configure{FontCss}{Font\string_Css##1} @@ -496,7 +536,7 @@ switches of tex4ht.c) \Configure{crosslinks}{[}{] }{next}{prev}{prev-tail}{front}{tail}{up} \:CheckOption{next} \if:Option - \Configure{next} + \Configure{next+} {\ShowPar\par\noindent \HCode{}[} {]\HCode{}} \Css{@media print {span.next {visibility:hidden;}}} @@ -713,10 +753,20 @@ switches of tex4ht.c) \:CheckOption{xht} \if:Option \:CheckOption{xhtml}\if:Option \else \:CheckOption{xml}\fi \fi -\if:Option \Configure{@HEAD}{\HCode{\Hnewline + see http://lists.w3.org/Archives/Public/www-math/2007May/0056.html \Hnewline + -->\Hnewline}} +\else + \Configure{@HEAD}{\HCode{\Hnewline}} +\fi \Configure{ext}{xht} \else \Log:Note{for file extension name xht, use the command line option `xht'}% @@ -746,11 +796,14 @@ switches of tex4ht.c) {\HCode{\Hnewline}} + \:CheckOption{-css} \if:Option \else + \Log:Note{to ignore CSS code, use the command line option `-css} \:CheckOption{css-in} \if:Option \Log:Note{the inline CSS code is extracted from the input of the previous compilation, so an extra compilation might be needed} \Configure{@HEAD}{\openin15=\jobname .css -\ifeof15 \else \:warning{Missing file: \jobname .css }% +\ifeof15 \:warning{Missing file: \jobname .css }% +\else \bgroup \catcode`\{=12 \catcode`\}=12 \catcode`\%=12 \catcode`\#=12 \HCode{\Hnewline