summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-html4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex42
1 files changed, 36 insertions, 6 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index 39c1fea16e..51e3f909f2 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1408 2023-11-10 14:51:19Z michal_h21 $
+% $Id: tex4ht-html4.tex 1422 2023-12-12 16:44:24Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -5626,6 +5626,33 @@ An alternative css-based approach:
>>>
%%%%%%%%%%%%%%%%
+\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}
%%%%%%%%%%%%%%%%
@@ -7933,7 +7960,7 @@ tag possibly missing.
\Configure{fbox}
{\ifvmode \IgnorePar\EndP
\HCode{<div class="fbox">}%
- \def\end:bx{\HCode{</div>}\par}%
+ \def\end:bx{\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\par}%
\else
\HCode{<span class="fbox">}%
\def\end:bx{\HCode{</span>}}%
@@ -15242,18 +15269,21 @@ imported from aux or another file.
\subsection{fancyvrb}
%%%%%%%%%%%%%%%%%%%
+We need to use special instructions to prevent extra blank lines that
+are comming from fancyvrb somehow. "x" before closing tag for "pre"
+is necessary because the last newline was not deleted otherwise.
\<configure html4 fancyvrb\><<<
\HAssign\fancyvrbNo|=0
\Configure{fancyvrb}
{\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
\gHAssign\fancyvrb:cnt0
- \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}}
- {\EndP\HCode{</pre>}}
- {\gHAdvance\fancyvrb:cnt by 1
+ \HCode{<pre class="fancyvrb" id="fancyvrb\fancyvrbNo">}\ht:special{t4ht@[}}
+ {x\ht:special{t4ht@]}\EndP\HCode{</pre>}}
+ {\ht:special{t4ht@]}\gHAdvance\fancyvrb:cnt by 1
\ifnum \fancyvrb:cnt>1
\HCode{\Hnewline}\fi} {}
- {}{}
+ {}{\ht:special{t4ht@[}}
\Css{pre.fancyvrb {white-space: pre-wrap; margin:0em;font-family:monospace,monospace;}}
>>>