[tex4ht-commits] [SCM] tex4ht updated: r704 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Wed May 27 22:21:48 CEST 2020
Author: michal_h21
Date: 2020-05-27 23:21:47 +0300 (Wed, 27 May 2020)
New Revision: 704
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
trunk/lit/tex4ht-html4.tex
Log:
Basic support for the awesomebox package
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-05-27 13:29:02 UTC (rev 703)
+++ trunk/lit/ChangeLog 2020-05-27 20:21:47 UTC (rev 704)
@@ -16,6 +16,9 @@
./tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/txfonts/rtcxss.htf
./tex4ht.dir/texmf/tex4ht/ht-fonts/unicode/txfonts/tcxb.htf
): fixed wrong XML entites.
+ * tex4ht-4ht.tex (awesomebox.4ht),
+ * tex4ht-html4.tex (html4.4ht): basic support for the awesomebox package.
+ https://tex.stackexchange.com/a/546570/2891
2020-05-25 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2020-05-27 13:29:02 UTC (rev 703)
+++ trunk/lit/mktex4ht-cnf.tex 2020-05-27 20:21:47 UTC (rev 704)
@@ -268,6 +268,7 @@
\AddFile{9}{floatpag}
\AddFile{7}{fancybox}
\AddFile{7}{adjustbox}
+\AddFile{7}{awesomebox}
\AddFile{7}{alltt}
\AddFile{9}{lb}
\AddFile{7}{latin1}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-05-27 13:29:02 UTC (rev 703)
+++ trunk/lit/tex4ht-4ht.tex 2020-05-27 20:21:47 UTC (rev 704)
@@ -30197,6 +30197,36 @@
>>> \AddFile{7}{adjustbox}
%%%%%%%%%%%%%%%%%%%%%%%
+\Section{awesomebox.sty}
+%%%%%%%%%%%%%%%%%%%%%%%
+\<awesomebox.4ht\><<<
+% awesomebox.4ht (|version), generated from |jobname.tex
+% Copyright 2020 TeX Users Group
+|<TeX4ht license text|>
+|<awesomebox config|>
+\Hinput{awesomebox}
+\endinput
+>>> \AddFile{7}{awesomebox}
+
+
+\<awesomebox config\><<<
+\NewConfigure{awesomebox}{3}
+\newcounter{awesomebox:cnt}
+\RenewDocumentCommand \awesomebox { O{abvrulecolor} O{} o m m m +m }{%
+ \stepcounter{awesomebox:cnt}%
+ \def\awesomebox at id{awesomebox-\arabic{awesomebox:cnt}}%
+ \extractcolorspec{#1}{\awesomebox at rule@color}%
+ \expandafter\convertcolorspec\awesomebox at rule@color{HTML}\awesomebox at rule@color%
+\a:awesomebox%
+ \IfValueTF {#3}%
+ { #3 \\ #2 \textcolor{#6}{\Huge#5}\b:awesomebox #7 #2}%
+ { #2 \textcolor{#6}{\Huge#5}\b:awesomebox #7 #2}%
+\c:awesomebox%
+}
+
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%%%
\Section{alltt.sty}
%%%%%%%%%%%%%%%%%%%%%%%
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2020-05-27 13:29:02 UTC (rev 703)
+++ trunk/lit/tex4ht-html4.tex 2020-05-27 20:21:47 UTC (rev 704)
@@ -15439,7 +15439,29 @@
\ifvmode\IgnorePar\fi\EndP\HCode{</div>}}
>>>
+%%%%%%%%%%%%%%%%%
+\subsection{awesomebox}
+%%%%%%%%%%%%%%%%%
+\<configure html4 awesomebox\><<<
+\Configure{awesomebox}{%
+ \Css{\#\awesomebox at id\space .icon{border-right:4px solid \#\awesomebox at rule@color;}}
+ \ifvmode\IgnorePar\fi\EndP%
+ \HCode{<div class="awesomebox" id="\awesomebox at id"><div class="icon">}%
+ \Picture+{}%
+}{\EndPicture%
+ \HCode{</div><div class="boxcontent">}%
+ \par%
+}{%
+ \ifvmode\IgnorePar\fi\EndP%
+ \HCode{</div></div>}%
+}
+\Css{.awesomebox{display:grid; grid-template-columns: 90px auto;margin-top:1rem;margin-bottom:1rem;}}
+\Css{.awesomebox .icon{padding-right:0.5rem;margin-right:0.5rem;text-align:center;}}
+\Css{.awesomebox .boxcontent{vertical-align:top;}}
+>>>
+
+
%%%%%%%%%%%%%%%%%%%
\subsection{boxedminipage}
%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.