[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (1) Indentation and (2) Vertical Spacing following @displaymath and
From: |
Patrice Dumas |
Subject: |
Re: (1) Indentation and (2) Vertical Spacing following @displaymath and @enumerate |
Date: |
Fri, 13 Nov 2020 22:59:34 +0100 |
On Fri, Nov 13, 2020 at 09:22:33PM +0000, Gavin Smith wrote:
> On Fri, Nov 13, 2020 at 05:34:03PM +0100, Christopher Dimech wrote:
> > In addition, the @enumerate expression puts items too close together
> > in html output (i.e. requires a larger vertical spacing between items).
> >
> > @enumerate
> > @item
> > @math{v(t)} is continuous on the closed interval @math{[t_a,t_b]}.
> > @item
> > @math{v(t)} is differentiable on the open interval @math{(t_a,t_b)}.
> > @end enumerate
>
> (switching to bug-texinfo for a larger audience)
>
> You can't say that they are too close together: that's just your
> opinion. The current spacing for the HTML output for @enumerate as
> displayed in web browsers may be desirable in many cases.
>
> The exact vertical spacing of the HTML output depends on the web
> browser but it appears to be related to whether there are paragraphs
> or not:
Indeed, I think that it was reported that spacing was too important, so
the first paragraph in @item is not formatted as a paragraph, test is
simply dropped in <li> see line 3780 in Texinfo/Convert/HTML.pm
in _convert_paragraph_type()
# no first paragraph in those environment to avoid extra spacing
But this can only be used for the first paragraph, there need to be
a paragraph for the other paragraphs in @item.
>
> \input texinfo
> @settitle Manual
>
> @node Topx
> @top Manual
>
> @enumerate
> @item One
> @item Two
> @item Two
>
> Three
> @item Four
> @end enumerate
>
> @bye
>
> This is output as
>
> <ol>
> <li> One
> </li><li> Two
> </li><li> Two
>
> <p>Three
> </p></li><li> Four
> </li></ol>
>
> Here the Three line is output in its own paragraph which affects the spacing
> above and below it.
>
> I'm not sure if it's correct or not, but the spacing of the existing output
> could probably be changed with CSS.
>
>