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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Mar 25 14:25:56 CET 2019


Author: michal_h21
Date: 2019-03-25 15:25:56 +0200 (Mon, 25 Mar 2019)
New Revision: 546

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Added support for \reversemarginpar

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-03-25 11:30:34 UTC (rev 545)
+++ trunk/lit/ChangeLog	2019-03-25 13:25:56 UTC (rev 546)
@@ -2,6 +2,7 @@
 
 	* tex4ht-ooffice.tex (ooffice.4ht): use superscript for a footnote anchor.
 	https://tex.stackexchange.com/q/474000/2891
+	* tex4ht-html4.tex (html4.4ht): added support for \reversemarginpar.
 
 2019-03-21  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2019-03-25 11:30:34 UTC (rev 545)
+++ trunk/lit/tex4ht-html4.tex	2019-03-25 13:25:56 UTC (rev 546)
@@ -13206,23 +13206,26 @@
 
 \<configure html4 latex\><<<
 \Configure{marginpar}
-   {\ifvmode
-      \IgnorePar\EndP\HCode{<div class="marginpar">}%
+   {%   
+     \def\marginpar:class{marginpar}%
+     \if at reversemargin\def\marginpar:class{reversemarginpar}\fi%
+     \ifvmode\IgnorePar\EndP\HCode{<div class="\marginpar:class">}%
       \def\end:margp{\ifvmode \IgnorePar\fi \EndP \HCode{</div>}}%
       \par
     \else
       \SaveEndP
-      \HCode{<span class="marginpar">}%
+      \HCode{<span class="\marginpar:class">}%
       \bgroup
          \Configure{HtmlPar}{\HCode{<br />}}{\HCode{<br />}}{}{}%
       \def\end:margp{\egroup\HCode{</span>}\RecallEndP}%
     \fi
    }
    {\end:margp}
-\Css{.marginpar {width:20\%; float:right; text-align:left;
+\Css{.marginpar,.reversemarginpar {width:20\%; float:right; text-align:left;
   margin-left:auto; margin-top:0.5em; font-size:85\%;
   text-decoration:underline;}}
-\Css{.marginpar p{margin-top:0.4em; margin-bottom:0.4em;}}
+\Css{.marginpar p,.reversemarginpar p{margin-top:0.4em; margin-bottom:0.4em;}}
+\Css{.reversemarginpar{float:left;}}
 >>>
 
 \verb'margin-left:auto'  instead of \verb'margin-left:1em'



More information about the tex4ht-commits mailing list