texlive[57059] Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht:

commits+karl at tug.org commits+karl at tug.org
Thu Dec 3 22:58:32 CET 2020


Revision: 57059
          http://tug.org/svn/texlive?view=revision&revision=57059
Author:   karl
Date:     2020-12-03 22:58:31 +0100 (Thu, 03 Dec 2020)
Log Message:
-----------
tcolorbox support, tex4ht r852

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=852

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht

Added: trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht	2020-12-03 21:58:31 UTC (rev 57059)
@@ -0,0 +1,81 @@
+% tcolorbox.4ht (2020-12-03-13:56), generated from tex4ht-4ht.tex
+% Copyright 2020 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 2020-12-03-13:56}
+
+
+% use custom counter that increments for every \tcolorbox
+\newcounter{:tcbcolcount}
+
+\def\tcb at drawcolorbox{%
+  \stepcounter{:tcbcolcount}%
+  % save text and background colors for use in CSS
+  \get:xcolorcss{tcbcolbacktitle}\:tcbcolbacktitle%
+  \get:xcolorcss{tcbcoltitle}\:tcbcoltitle%
+  \get:xcolorcss{tcbcolback}\:tcbcolback%
+  \get:xcolorcss{tcbcolframe}\:tcbcolframe%
+  \get:xcolorcss{tcbcolupper}\:tcbcolupper%
+  % make unique ID for this box
+  \def\:tcbcolid{tcolobox-\arabic{:tcbcolcount}}
+  % Open box
+  \a:tcolorbox%
+  % save label, if it is set
+  \ifdefined\tcolorbox:label:key%
+    \label{\tcolorbox:label:key}%
+  \fi%
+  % open title
+  \b:tcolorbox%
+  \kvtcb at before@title\kvtcb at title\kvtcb at after@title%
+  % close title and open main box
+  \c:tcolorbox%
+  \box\tcb at upperbox%
+  % deal with lower box, if it is set
+  \iftcb at hasLower%
+    \a:tcolorlowerbox%
+    \box\tcb at lowerbox%
+    \b:tcolorlowerbox%
+  \fi%
+  % close box
+  \d:tcolorbox%
+}
+
+% overwrite other versions of box drawing macros
+\let\tcb at drawcolorbox@standalone\tcb at drawcolorbox
+
+\NewConfigure{tcolorbox}{4}
+\NewConfigure{tcolorlowerbox}{2}
+
+% we need to save label for a later use
+\def\:tempa#1{%
+  \xdef\tcolorbox:label:key{#1}%
+  \o:tcb at set@label:{#1}%
+}
+\HLet\tcb at set@label\:tempa
+
+
+% this is a trick to fix issues with paragraphs
+% spurious end </p> tags were inserted
+\def\tcb at minipage#1{\SaveEndP\vbox\bgroup\par}
+\def\endtcb at savebox{\EndP\egroup\RecallEndP}
+
+\Hinput{tcolorbox}
+\endinput
+
+
+
+


Property changes on: trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the tex-live-commits mailing list.