Re: Tabs and <formalgroup> content model

Thomas Schraitle <[email protected]> Tue, 6 Feb 2024 13:22:28 +0100
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
Hi,

On 05/02/2024 19.42, Norm Tovey-Walsh wrote:
> Mats Wichmann <[email protected]> writes:
>> Just as an information point, "other" systems do have provision for
>> alternatives-in-tabs model, but it's not necessarily intrinsic, as an
>> illustration see here (this is an add-on):
>>
>> https://pypi.org/project/sphinx-tabs/
>
> That=E2=80=99s interesting. It=E2=80=99s more reminiscent of nested list=
s.
>
> If you were going to do this with tag abuse, abusing an itemized list
> would seem among the least-worst options. For better or worse, listitem
> doesn=E2=80=99t allow a title, though, so you=E2=80=99d still need the l=
istitems to be
> wrappers around something, I guess.

Yes, a list would be far better idea than a table.


> I wonder, he asks with trepidation, if listitems should be allowed to
> have titles?

It would make a lot of sense. Even if you don't use listitems for tabs, a =
title
for a listitem may serve as a "summary"?

At the moment, when I need a title-like structure I use <formalpara> (whic=
h
comes with its own sort of restrictions). Using just a <title> inside a
<listitem> would make things easier. Additionally, it may help in situatio=
ns
with <xref/> where you want to reference the listitem.

The only thing that may be a bit awkward would be a <variablelist> and <te=
rm>
(which sort of acts already as a form of a title).


=2D-
Gru=C3=9F/Regards
   Thomas Schraitle