[tex4ht] [bug #592] inconsistent font sizes used for subsubsection/paragraph titles in tex4ht. How to fix?
Nasser M. Abbasi
nma at 12000.org
Sun Jan 1 22:56:03 CET 2023
On 1/1/2023 3:33 PM, Karl Berry wrote:
> Follow-up Comment #2, bug #592 (project tex4ht):
>
> To my mind, this is a bug in the browser(s). Browsers should not render any
> <hN> tag as less than the body size. That's nonsensical.
>
> But given that reality, and that it's unlikely to change, my suggestion for
> tex4ht is to avoid h5 and h6, since they are useless, and just use h4 for all
> those lower-level sectioning elements. Maybe with a class="subsubsection" or
> whatever so they can be distinguished if anyone cares to.
>
> This seems cleaner to me than specifying explicit sizes for everything.
>
Hello;
I looked this up and it says
http://zuga.net/articles/html-heading-elements/
"The W3C HTML5 specification describes six HTML
heading elements: h1, h2, h3, h4, h5 and h6. ref
The height of a heading element is specified in the
browser's default stylesheet. See col 4 below. ref
The height of 1 em is usually 16 pixels.
The em is a unit of measure from the field of printed type,
and is equal to the width of the letter M"
And then it gives table of example header for each hN with default
size.
h1 font-size: 2em
h2 font-size: 1.5em
h3 font-size: 1.17em
h4 font-size: 1em
h5 font-size: .83em
h6 font-size: .67em
I've compile the MWE with only Michal fix in my.cfg and this is the result
to compare the font sizes with normal text font ib body
https://12000.org/tmp/01012023/foo.htm
Looking at it, it looks like font for paragprah is same size
as the text font size body of page but in bold font.
This look OK, right?
--Nasser
More information about the tex4ht
mailing list.