-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table captions beneath the table (not above) #531
Comments
Not at the moment, though I agree it would be a nice feature. I think in general we should be able to use the theme to control the caption placement (above or below). To proceed, we need to decide how we are going to declare this. Recall that the theme tries to be as faithful as possible to CSS, so perhaps we can use something like: table:
caption:
side: bottom (See https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side for the property we're emulating). This is related to #307. |
Thanks for appreciating it! |
Wow, that was fast :) Thanks for the quick response! |
The only downside is that we won't be able to guarantee that the caption stays on the same page as the table. That would require knowing ahead of time the height of the rendered table, which would require doing a dry run. I fear that would dramatically slow down conversion. Instead, to support this feature, we might want to see if prawn-table could give us a hook to decide whether or not to advance to the next page before rendering a row. |
Of course, I realized that we don't keep the caption on the same page as the table now...so we're not losing any behavior yet ;) |
… of table caption
… of table caption
… of table caption
… of table caption
… of table caption
… of table caption (PR asciidoctor#537) * allow theme to control position (i.e., side) of table caption * use term "side" instead of "position" to refer to element side (e.g., top or bottom)
@mojavelinux it looks like this is done? could you please provide an example how to use this feature? |
My first comment shows an example. Here's a complete theme example: extends: default
table:
caption:
side: bottom |
It cannot be controlled from the content, so I cannot provide any such
example. It can only be controlled from the theme. And that setting is
global.
|
Is it possible to have the table captions (table 1 : xxx) positioned under the table and not above?
I crawled through the sources, but wasn't able to get the result i wished for
Thanks for all your great work on this project.
Regards
The text was updated successfully, but these errors were encountered: