[tex4ht-commits] [SCM] tex4ht updated: r1420 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Dec 12 16:53:16 CET 2023


Author: michal_h21
Date: 2023-12-12 15:53:16 +0000 (Tue, 12 Dec 2023)
New Revision: 1420

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for marginnote

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-12-11 23:23:52 UTC (rev 1419)
+++ trunk/lit/ChangeLog	2023-12-12 15:53:16 UTC (rev 1420)
@@ -1,3 +1,9 @@
+2023-12-12  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (marginnote.4ht),
+	* tex4ht-html4.tex (html4.4ht): added support for the \marginnote
+	command.
+
 2023-12-11  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-env.tex: copyright 2023, leading comments.

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2023-12-11 23:23:52 UTC (rev 1419)
+++ trunk/lit/mktex4ht-cnf.tex	2023-12-12 15:53:16 UTC (rev 1420)
@@ -322,6 +322,7 @@
 \AddFile{9}{th4}
 \AddFile{9}{footmisc}
 \AddFile{9}{tablefootnote}
+\AddFile{9}{marginnote}
 \AddFile{9}{writer}
 \AddFile{9}{mdwlist}
 \AddFile{9}{sverb}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-12-11 23:23:52 UTC (rev 1419)
+++ trunk/lit/tex4ht-4ht.tex	2023-12-12 15:53:16 UTC (rev 1420)
@@ -37226,6 +37226,25 @@
 
 
 %%%%%%%%%%%%%%%
+\Section{marginnote}
+%%%%%%%%%%%%%%%%%
+
+\<marginnote.4ht\><<<
+% marginnote.4ht (|version), generated from |jobname.tex
+% Copyright 2023 TeX Users Group
+|<TeX4ht license text|>
+|<config marginnote|>
+\Hinput{marginnote}
+\endinput
+>>>       \AddFile{9}{marginnote}
+
+\<config marginnote\><<<
+\NewConfigure{marginnote}{2}
+\long\def\:tempa[#1]#2[#3]{\a:marginnote#2\b:marginnote}
+\HLet\@mn@@@marginnote\:tempa
+>>>
+
+%%%%%%%%%%%%%%%
 \Section{Other}
 %%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-12-11 23:23:52 UTC (rev 1419)
+++ trunk/lit/tex4ht-html4.tex	2023-12-12 15:53:16 UTC (rev 1420)
@@ -5626,6 +5626,33 @@
 >>>
 
 %%%%%%%%%%%%%%%%
+\subsection{marginnote}
+%%%%%%%%%%%%%%%%
+
+This configuration will put marginnote into right margin if there is sufficient ammount of space.
+Otherwise, it will display it as a italic text.
+
+\<configure html4 marginnote\><<<
+\Configure{marginnote}{\HCode{<span class="marginnote">}}{\HCode{</span>}}
+
+\Css{.marginnote{
+  font-style: italic;}
+}
+
+\Css{
+  @media (min-width: 104ch){
+    .marginnote{
+      display: block;
+      float: right;
+      width: 12ch;
+      margin-right: -14ch;
+      font-style: normal;
+  }}
+}
+
+>>>
+
+%%%%%%%%%%%%%%%%
 \section{Floats}
 %%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.