On 2/10/26 11:26, Oscar Levin wrote:
> A larger question that was raised by Andrew today was whether an image inside a
> sidebyside should be able to have its own @width specified, so that it could
> fill up just a part of its column (for example, if you wanted the figure to have
> a caption with the width of the sbspanel but the image inside it not. This
> makes a lot of sense to me, even without a figure present: I want to divide the
> page into two halves, one for an image and one for a table. I want these to
> both be centered in their own half but not take up the entire space of their
> half. I suppose I could manage this with margins, but then I'm calculating
> margins and widths to get a specific look, which seems less intuitive.
* I am somewhat sympathetic to "I have a skinny image and I don't like the
skinny caption".
* Control over layout is not very PreTeXt-like. So, for #sidebyside you get
to control the widths of panels, vertical justification within a panel, and
*overall* left and right margins. Then you get equal gaps of whatever space is
leftover. That is a concession to letting an author control layout. (Aside: in
the conversion to braille we totally ignore most of this.)
I am not very sympathetic to Oscar's example of two panels spliting the page
50/50 and then control of width and horizonatal placement of the contents of
each panel. Generally. Though Oscar is right, with only two panels you can get
any two widths, any two margins, and the one gap any way you want already.
* Figures have captions, and the remaining FIGURE-LIKE have titles, which could
become too skinny. A #figure can hold a variety of objects. Will they all
now get a @width attribute? An #image and a #p are squishy (in different ways:
scaling v. word-wrapping. p/@width? (Yes, we do this in cells of a table.)
* I asked: "First question, the @width is relative to what?" If we did have
sidebyside/figure/image/@width
I'd understand the @width to be the fraction of the containing panel's width.
Right now, no @width is 100%. If no specified @width becomes the width of the
panel, it will introduce a lot of logic contrary to have things are done now.
Rob