PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

heading vs. type in captions #789

Closed davidfarmer closed 6 years ago

davidfarmer commented 6 years ago

The structure of an html section heading is

.heading .type .codenumber .title

The structure of a caption is

.figcaption .heading .codenumber

I'd like these to be more parallel: use .type instead of .heading inside of .figcaption

There would be CSS consequences, but I can make those changes quickly and so do not need a sample before deployment.

rbeezer commented 6 years ago

I'll make the change now. Stay tuned.

rbeezer commented 6 years ago

Done, and live in website samples.

One case to discuss. A sidebyside inside a figure gets usual caption, say Figure 5.12.

If the panels of the sidebyside have captions (figures, tables, listings, named lists), then they are "subcaptioned", so we might have a "Table" that is numbered 5.12(b).

The type ("Table") is not present now (no .heading), and the codenumber is just b (or maybe (b)). Visually, the caption reads "(b) Some data" (or similar) -- no "Table", no 5.12.

Do you want the "type" information, even though it will not be shown in current rendering? (We use "hide-type" elsewhere, but maybe this should be a styling decision?)

davidfarmer commented 6 years ago

Is there an example in the sample article?

On Mon, 18 Dec 2017, Rob Beezer wrote:

Done, and live in website samples.

One case to discuss. A sidebyside inside a figure gets usual caption, say Figure 5.12.

If the panels of the sidebyside have captions (figures, tables, listings, named lists), then they are "subcaptioned", so we might have a "Table" that is numbered 5.12(b).

The type ("Table") is not present now (no .heading), and the codenumber is just b (or maybe (b)). Visually, the caption reads "(b) Some data" (or similar) -- no "Table", no 5.12.

Do you want the "type" information, even though it will not be shown in current rendering? (We use "hide-type" elsewhere, but maybe this should be a styling decision?)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LOAE8qSmvmaqnT_F__j0zZW_7Nngks5tBrZ8gaJpZM4RFtex.gif]

rbeezer commented 6 years ago

Sorry, meant to include such a thing. Figure 22.2 is a good first example.

http://mathbook.pugetsound.edu/examples/sample-article/html/section-side-by-side.html

davidfarmer commented 6 years ago

I think those are okay now, but please check.

On Mon, 18 Dec 2017, Rob Beezer wrote:

Sorry, meant to include such a thing. Figure 22.2 is a good first example.

http://mathbook.pugetsound.edu/examples/sample-article/html/section-side-by-side.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LGIDxLRzvRyf0q_MocFPkEngqj-Iks5tBrjtgaJpZM4RFtex.gif]

rbeezer commented 6 years ago

Looking good - and I cruised lots of other captions (tabled, figures, etc). Looking real nice.

Keep 'em coming.

For the record: change at 14edebfa719fce9ba83ef02ca7d70d819eeee4b0