1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
|
% compile 3 times: latex tex4ht-info-javahelp
% or htlatex tex4ht-info-javahelp "html,sections+"
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% tex4ht-info-javahelp.tex %
% Copyright (C) 2006-- Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any %
% later version. The latest version of this license is %
% in %
% http://www.latex-project.org/lppl.txt %
% and version 1.3 or later is part of all distributions %
% of LaTeX version 2003/12/01 or later. %
% %
% This work has the LPPL maintenance status "maintained".%
% %
% This Current Maintainer of this work %
% is Eitan M. Gurari. %
% %
% If you modify this file your changing the signature %
% in \message{(signature)} below will be appreciated. %
% %
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\message{(<signature>)}
% Compile with the command `ht latex tex4ht-info'
\ifx \HTML\UnDef
\def\HTML{infojh}
\def\CONFIG{\jobname}
\def\MAKETITLE{\author{Eitan M. Gurari}}
\def\next{\input mktex4ht.4ht \endinput}
\expandafter\next
\fi
%%%%%%%%%%%%%%%%%% definitions %%%%%%%%%%%%%%%%%%%%%%%%%
\expandafter\ifx \csname YES\HTML\endcsname\relax
\def\CleanComment{[0]}
\else
\let\saveCd=\<
\def\<{\edef\FIRST{\the\inputlineno}\let\<\saveCd \saveCd}
% \def\CleanComment#1tex4ht-info#2#3#4.#5>#6//{[\eatIX#4% <--jobname
\def\CleanComment#1tex4ht-info#2#3#4.#5>#6//{[#4% <--jobname
\if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
\def\eatIX#1#2#3#4#5#6#7#8#9{}
\fi
\Comment{
\string\ifx\string\infoIVht\string\UnDeF\string\def\string\infoIVht#1//{}\string\fi\string\infoIVht\CleanComment}{//
}
\def\>>>#1<<<{\bgroup\csname no:catcodes\endcsname0{255}{12}%
\csname no:catcodes\endcsname{13}{13}{13}% ^^M
\def\temp##1>>>{\egroup
\expandafter \def\csname #1\endcsname{##1}}\temp}
\newcount\tmpcnt \tmpcnt\time \divide\tmpcnt 60
\edef\temp{\the\tmpcnt}
\multiply\tmpcnt -60 \advance\tmpcnt \time
\edef\version{\the\year-\ifnum \month<10 0\fi
\the\month-\ifnum \day<10 0\fi\the\day
-\ifnum \temp<10 0\fi \temp
:\ifnum \tmpcnt<10 0\fi\the\tmpcnt}
\def\CopyYear.#1.{%
\ifnum #1=\year #1\space\space\space\space\space\space
\else #1--\the\year\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{INFO}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\<infojh\><<<
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% infojh.4ht |version %
% Copyright (C) |CopyYear.2000. Eitan M. Gurari %
% %
% This program can redistributed and/or modified under %
% the terms of the LaTeX Project Public License %
% Distributed from CTAN archives in directory %
% macros/latex/base/lppl.txt; either version 1 of the %
% License, or (at your option) any later version. %
% %
% 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 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version |version}
{ \catcode`\@=0 \catcode`\\=11 @relax
@gdef@infoIVht[#1]#2//{%
@ifnum #1>1
@def@infoIVht[##1]##2//{%
@ifnum ##1>1 @ifnum ##1<#1
@bgroup
@no:catcodes0{255}{11}%
@no:catcodes{91}{91}{12}% [
@no:catcodes{47}{47}{12}% /
@newlinechar13 %
@long@def@infoIVht####1\ifx\infoIVht####2infoIVht[####3//{%
@def@infoIVht{******************************************}%
@immediate@write-1{@infoIVht}%
@immediate@write-1{****** @csname :Hin@endcsname.4ht}%
@immediate@write-1{@infoIVht}%
@bgroup
@def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
@let~=@space @immediate@write-1{@infoIVht}%
@egroup
@immediate@write-1{####1}%
@bgroup
@def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
@let~=@space @immediate@write-1{@infoIVht}%
@egroup
@immediate@write-1{@infoIVht}%
@egroup}%
@expandafter@expandafter@expandafter@infoIVht
@fi@fi }%
@fi }
}
>>>
\chapter{The Code}
\section{tex4ht}
\<configure infojh tex4ht\><<<
\Configure{mapIdTarget}....................2
#1 target
#2 definitions
Given: \sectionType, \sectionId, \sectionName
Examples:
\Configure{mapIdTarget}
{\sectionName}
{}
\Configure{mapIdTarget}
{\spacelessName}
{\immediate\openout15=\jobname .tmp
\immediate\write15{\def\string\spacelessName{\sectionName}}%
\immediate\closeout15
\catcode`\ =9
\input \jobname .tmp
\catcode`\ =10
}
>>>
\endinput
|