diff doc/manual/manual_tex4ht.cfg @ 90:e932e6331f35

- manual improvements * html output improved * consistency in tables * little bit of rewording, typos - todo item added
author cslag
date Fri, 03 Jun 2016 02:40:13 +0200
parents 186af66ae67f
children 00fc2b9b4e3d
line wrap: on
line diff
--- a/doc/manual/manual_tex4ht.cfg	Sun May 29 15:38:26 2016 +0200
+++ b/doc/manual/manual_tex4ht.cfg	Fri Jun 03 02:40:13 2016 +0200
@@ -100,6 +100,24 @@
 	{\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}
 	{\HCode{</td>}}
 
+% Remove hr-tags that tex4ht inserts by default in around floats (e.g. tables) and replace them with a background.
+% Also remove hr-tags around figures, entirely.
+\Configure{float}[]{\HCode{<div style="margin:1em;padding:0.5em;background:rgba(200,200,200,0.1);width:100\%;">}}{}{\HCode{</div>}}
+\ConfigureEnv{figure}{\HCode{}}{\HCode{}}{}{}
+
+%% Simplest possible table layout - do rest in css.
+%\Configure{HBorder}
+%	{<tr>}
+%	{}
+%	{</tr>}
+%	{<tr>}
+%	{}
+%	{}
+%	{</tr>}
+%	{<tr>}
+%	{}
+%	{</tr>}
+
 % @@@ Did not get that below to work, and don't understand it, either.
 % @@@ Default output is ok, so we're simply changing class name in
 % @@@ instead of this postprocessing. See Makefile.
@@ -137,7 +155,12 @@
 %http://www.itisnotoverengineering.com/2013/06/syntax-highlighting-with-tex4ht.html
 
 % Simplest possible paragraphs
-\Configure{HtmlPar}{\EndP\Tg<p >}{\EndP\Tg<p>}{\HCode{</p>\Hnewline}}{\HCode{</p>\Hnewline}}
+% @@@ this creates paragraphs around block level elements, which is not what we would like
+% @@@ but it looks decent, except for the space in the float-element lr-corner
+\Configure{HtmlPar}{\EndP\Tg<p>}{\EndP\Tg<p>}{\HCode{</p>\Hnewline}}{\HCode{</p>\Hnewline}}
+%\Configure{HtmlPar}{\EndP\HCode{}}{\EndP\HCode{}}{\HCode{\Hnewline}}{\HCode{\Hnewline}}
+%\Configure{HtmlPar}{\EndP\Tg<p>}{\EndP\HCode{}}{\HCode{</p>\Hnewline}}{\HCode{\Hnewline}}
+%\Configure{HtmlPar}{\EndP\HCode{}}{\EndP\Tg<p>}{\HCode{\Hnewline}}{\HCode{</p>\Hnewline}}