diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-04 22:11:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-04 22:11:52 +0000 |
commit | 5dd56ee78ed661e6c66aba9acd8086164b332b02 (patch) | |
tree | ad308a1e38216709d66bee82f68682cb5174fdb5 /Master/texmf-dist/tex/generic/tex4ht | |
parent | 198d882419df89da6879d2319d06f3949cf1d60e (diff) |
xskak support, tex4ht r1235
git-svn-id: svn://tug.org/texlive/trunk@64937 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/html4.4ht | 28 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/xskak.4ht | 57 |
3 files changed, 85 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht index 9b376653867..a0c9c4df39e 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html4.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html4.4ht @@ -1,4 +1,4 @@ -% html4.4ht (2022-10-27-13:38), generated from tex4ht-html4.tex +% html4.4ht (2022-11-04-13:31), generated from tex4ht-html4.tex % Copyright 2009-2022 TeX Users Group % Copyright 1997-2009 Eitan M. Gurari % @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-10-27-13:38} +\immediate\write-1{version 2022-11-04-13:31} \exit:ifnot{8859-6,% CJK,% @@ -64,6 +64,7 @@ cancel,% catalan,% cgloss4e,% chapterbib,% +chessboard,% color,% colortbl,% context,% @@ -254,6 +255,7 @@ welsh,% wrapfig,% writer,% xcolor,% +xskak,% xy} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -40409,7 +40411,28 @@ y{\ht:special{t4ht@+\string&{35}x00FD{59}}y}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{chessboard} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \def\chessboard:alt{\ifdefined\o:xskakget:\o:xskakget:{nextfen}\fi} +\Configure{chessboard}{\Picture*[\chessboard:alt]{}}{\EndPicture} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{xskak} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{mainline}{\Picture*[\:xskakalt]{ style="\:xskakdepth"}}{\EndPicture} +\Configure{xskakget}{\Picture*[\:xskakalt]{ style="\:xskakdepth"}}{\EndPicture} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{texmate} @@ -40437,6 +40460,7 @@ y{\ht:special{t4ht@+\string&{35}x00FD{59}}y}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{sectionbreak} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht index 4bf827cb163..57f70c81439 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht @@ -1,4 +1,4 @@ -% usepackage.4ht (2022-10-31-13:02), generated from tex4ht-4ht.tex +% usepackage.4ht (2022-11-04-13:31), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari % Copyright 2009-2022 TeX Users Group % @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2022-10-31-13:02} +\immediate\write-1{version 2022-11-04-13:31} \def\:temp{tex4ht}\ifx \:temp\@currname \:warning{\string\usepackage{tex4ht} again?} diff --git a/Master/texmf-dist/tex/generic/tex4ht/xskak.4ht b/Master/texmf-dist/tex/generic/tex4ht/xskak.4ht new file mode 100644 index 00000000000..9f59aafa149 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/xskak.4ht @@ -0,0 +1,57 @@ +% xskak.4ht (2022-11-04-13:31), generated from tex4ht-4ht.tex +% Copyright 2022 TeX Users Group +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% version 1.3c 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.3c or later is part of all distributions +% of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% The Current Maintainer of this work +% is the TeX4ht Project <http://tug.org/tex4ht>. +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2022-11-04-13:31} + +\ExplSyntaxOn +\def\:xskakdepth{vertical-align:-\fp_eval:n{ + \dim_to_fp:n{\dp0}/(\dim_to_fp:n{\ht0}+\dim_to_fp:n{\dp0}) * 100 +}\@percentchar;} +\ExplSyntaxOff + +\NewConfigure{mainline}{2} +\def\:tempa#1{% + \setbox0=\hbox{\o:mainline:{#1}}% + \edef\:xskakalt{\detokenize{#1}}% + %\a:mainline\Picture*[\detokenize{#1}]{ style="\:xskakdepth"}\box0\EndPicture\b:mainline% + \a:mainline\box0\b:mainline% +} +\HLet\mainline\:tempa + +\NewConfigure{xskakget}{2} +\def\:tempa#1{% + \edef\:xskakalt{\detokenize{#1}}% + \setbox0=\hbox{\o:xskakget:{#1}}% + \a:xskakget\box0\b:xskakget% +} +\HLet\xskakget\:tempa + +\NewConfigure{chessboard}{2} +\def\:tempa{% + % reset to the original version of \chessboard + \let\:currchesboard\chessboard + \let\chessboard\o:chessboard:% + \o:newchessgame:% + % set the TeX4ht version of \chessboard back + \let\chessboard\:currchesboard +} +\HLet\newchessgame\:tempa + +\Hinput{xskak} +\endinput + |