diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/docbook.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/docbook.4ht | 182 |
1 files changed, 160 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht b/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht index 5ad5e87dda7..87ea8077f52 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% docbook.4ht 2005-02-21-19:09 % -% Copyright (C) 2000--2005 Eitan M. Gurari % +% docbook.4ht 2006-11-15-02:45 % +% Copyright (C) 2000--2006 Eitan M. Gurari % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -24,7 +24,7 @@ % gurari@cse.ohio-state.edu % % http://www.cse.ohio-state.edu/~gurari % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2005-02-21-19:09} +\immediate\write-1{version 2006-11-15-02:45} \exit:ifnot{Preamble,% algorithmic,% @@ -33,6 +33,7 @@ amsbook,% amsmath,% amsproc,% amsthm,% +array,% article,% beamer,% book,% @@ -59,7 +60,7 @@ texinfo} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{Preamble} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \Configure{html}{xml} + \Configure{ext}{xml} \edef\Preamble{\Preamble,refcaption} \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET} \:CheckOption{no-DOCTYPE} \if:Option @@ -118,7 +119,8 @@ texinfo} \EndLink\DBLink[#1]{#2}{}\global\let\EndLink=\EndDBLink\fi } \let\do:Link=\Link -\def\Link{\futurelet\:next\choose:Link} +\def\Link{\Protect\p:Link} +\def\p:Link{\futurelet\:next\choose:Link} \def\choose:Link{\ifx -\:next \expandafter\minus:Link \else\expandafter\do:Link\fi} \def\minus:Link#1{\do:Link} @@ -190,6 +192,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{latex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -348,7 +351,18 @@ texinfo} {\EndP\HCode{</listitem></orderedlist>}\ShowPar} {\end:itm\def\end:itm{\EndP\Tg</listitem>}\DeleteMark} {\HCode{<listitem>}\AnchorLabel\par\ShowPar} -\Configure{cite}{\Tg<citation>}{\Tg</citation>}{\LinkCite}{} +\ConfigureList{description}% + {\EndP\HCode{<variablelist\Hnewline>}% + \PushMacro\end:itm +\global\let\end:itm=\empty} + {\PopMacro\end:itm \global\let\end:itm \end:itm +\EndP + \HCode{</listitem></varlistentry></variablelist>}\ShowPar} + {\end:itm \global\def\end:itm{\EndP + \HCode{</listitem></varlistentry>}}% + \HCode{<varlistentry><term\Hnewline>}\bgroup \bf} + {\egroup\EndP\HCode{</term><listitem>}\par\ShowPar} +\Configure{cite}{\HCode{<citation>}}{\HCode{</citation>}}{\LinkCite}{} \Configure{bibitem}{\Link}{\EndLink} \LinkCommand\LinkCite{xref, linkend,,,/,\empty} @@ -368,8 +382,8 @@ texinfo} \HAssign\tabularN=0 \Configure{halignTB<>}{tabular}{<>\HAlign} \Configure{halignTB} - {\ifmathml \HCode{<\:MT table }\fi \halignTBL} - {\ifmathml \HCode{>}\fi} + {\halignTBL} + {} \Configure{halignTD} {}{} {<}{\HCode{ align="left"}} {-}{\HCode{ align="center"}} @@ -389,10 +403,10 @@ texinfo} \def\refLink#1#2#3\EndLink{ \ifvmode \HCode{<note role="ref"><para>} - \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink + \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink #3\HCode{</para></note>} \else - \Link{#1}{#2}\Tg<!--ref: \RefArg-->\EndLink + \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink \fi} \Configure{newline}{\HCode{<!--br/-->}} \Configure{newtheorem} @@ -550,7 +564,6 @@ texinfo} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{book} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -611,6 +624,12 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article role="book">}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: @@ -895,6 +914,12 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article role="report">}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: @@ -1185,13 +1210,19 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: \expandafter\:gobbleM\meaning\Preamble} \Configure{VERSION} - {\HCode{<?xml version="1.0"?>\Hnewline }} + {\HCode{<?xml version="1.0"?>\Hnewline}} \Configure{DOCTYPE} {\HCode{<!DOCTYPE article [<!ENTITY \% docbook.dtd PUBLIC\Hnewline "-//OASIS//DTD DocBook XML V4.2CR1//\expandafter @@ -1399,6 +1430,7 @@ texinfo} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{fontmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1421,6 +1453,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{graphics} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1439,6 +1472,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsart} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1448,13 +1482,19 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: \expandafter\:gobbleM\meaning\Preamble} \Configure{VERSION} - {\HCode{<?xml version="1.0"?>\Hnewline }} + {\HCode{<?xml version="1.0"?>\Hnewline}} \Configure{DOCTYPE} {\HCode{<!DOCTYPE article [<!ENTITY \% docbook.dtd PUBLIC\Hnewline "-//OASIS//DTD DocBook XML V4.2CR1//\expandafter @@ -1651,7 +1691,6 @@ texinfo} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsbook} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1661,13 +1700,19 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: \expandafter\:gobbleM\meaning\Preamble} \Configure{VERSION} - {\HCode{<?xml version="1.0"?>\Hnewline }} + {\HCode{<?xml version="1.0"?>\Hnewline}} \Configure{DOCTYPE} {\HCode{<!DOCTYPE article [<!ENTITY \% docbook.dtd PUBLIC\Hnewline "-//OASIS//DTD DocBook XML V4.2CR1//\expandafter @@ -1864,6 +1909,7 @@ texinfo} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsproc} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1873,13 +1919,19 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: \expandafter\:gobbleM\meaning\Preamble} \Configure{VERSION} - {\HCode{<?xml version="1.0"?>\Hnewline }} + {\HCode{<?xml version="1.0"?>\Hnewline}} \Configure{DOCTYPE} {\HCode{<!DOCTYPE article [<!ENTITY \% docbook.dtd PUBLIC\Hnewline "-//OASIS//DTD DocBook XML V4.2CR1//\expandafter @@ -2092,10 +2144,11 @@ texinfo} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \def\:temp{{\protect\AmSfont AmS}} + \def\:temp{{\protect\AmSfont AMS}} \HLet\AmS\:temp %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2111,6 +2164,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{plain} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2232,6 +2286,12 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: @@ -2272,6 +2332,50 @@ texinfo} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{array} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\Configure{tabular} + {\IgnorePar\EndP \halignTB{tabular}% + \HCode{<informaltable><tgroup cols="\ar:cnt"><tbody>}} + {\HCode{</tbody></tgroup></informaltable>}\ShowPar} + {\HCode{<row>}} + {\HCode{</row>}} + {\HCode{<entry\Hnewline}\halignTD + \ifnum \HMultispan>1 + \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan + \advance\tmp:cnt by -1 + \HCode{ namest="\HCol" nameend="\the\tmp:cnt"}\fi + \HCode{><para>}} + {\HCode{</para></entry>}} +\HAssign\tabularN=0 +\Configure{halignTB<>}{tabular}{<>\HAlign} +\Configure{halignTB} + {\halignTBL} + {} +\Configure{halignTD} {}{} + {<}{\HCode{ align="left"}} + {-}{\HCode{ align="center"}} + {>}{\HCode{ align="right"}} + {^}{\HCode{ valign="top"}} + {=}{\HCode{ valign="middle"}} + {|}{\HCode{ valign="middle"}} + {_}{\HCode{ valign="bottom"}} + {p}{\HCode{ align="char"}} + {m}{\HCode{ align="left" valign="middle"}} + {b}{\HCode{ align="left" valign="middle"}} + {} +\Configure{hline}{} +\Configure{//[]}{} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + @@ -2308,6 +2412,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{color} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2401,6 +2506,12 @@ texinfo} + + + + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{dcolumn} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2413,6 +2524,7 @@ texinfo} \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{multirow} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2746,6 +2858,7 @@ texinfo} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{scrbook} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2806,6 +2919,12 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article role="book">}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: @@ -3113,6 +3232,11 @@ texinfo} + + + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{llncs} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3146,7 +3270,6 @@ texinfo} - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{jurabib} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3162,8 +3285,6 @@ texinfo} - - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{prosper} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3182,7 +3303,6 @@ texinfo} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{beamer} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3192,13 +3312,19 @@ texinfo} \Hnewline by TeX4ht (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/) \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline} +\:CheckOption{-xttl} \if:Option + \Log:Note{Use the `-xttl' command line option to + avoid xttl post processing} +\else + \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline} +\fi \HCode{<article>}\par\ShowPar} {\IgnorePar\EndP\HCode{</article>}} \immediate\write-1{TeX4ht package options: \expandafter\:gobbleM\meaning\Preamble} \Configure{VERSION} - {\HCode{<?xml version="1.0"?>\Hnewline }} + {\HCode{<?xml version="1.0"?>\Hnewline}} \Configure{DOCTYPE} {\HCode{<!DOCTYPE article [<!ENTITY \% docbook.dtd PUBLIC\Hnewline "-//OASIS//DTD DocBook XML V4.2CR1//\expandafter @@ -3422,6 +3548,8 @@ texinfo} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{pgf} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3448,6 +3576,10 @@ texinfo} + + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{algorithmic} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3493,6 +3625,9 @@ texinfo} + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{listings} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3607,5 +3742,8 @@ texinfo} + + + \endinput |