-
Notifications
You must be signed in to change notification settings - Fork 16
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
Why /tcb/before
not used for floating boxes?
#172
Comments
It is not used, because mainly After headings, the Using In the use case you mentioned, I could image wrapping the |
I see.
I'm not sure what you mean here.
OK for floating boxes.
That's what I guessed. And I was desperate to not find any hook that let me insert something before the boxes.
I'm not sure it could be an option: the "See example x on page y" text is supposed to appear only if the floating box is located on a page other than its call out page so I have to performed the test (on pages numbers) within (the options of) the
Is it necessary to "enlarge top initially" since the "See example x on page y" text is supposed to appear only if the floating box is located on a page other than its call out page? About
|
Seems to be an opportunity for a set of new options like |
@dbitouze Maybe, I had not completely understood what you like to achieve. @muzimuzhi Adding |
Good news! 😄
Since |
That's why I hope a change is not critical. I will look into that matter with more time. |
The next version will contain the requested option.
But, these options are restricted to unbreakable floating objects. For breakable floating objects, the space needed for these code parts cannot be computed in advance and therefore the break algorithm cannot be adapted (For non-floating boxes, the situation is different). |
According to the documentation (currently page 81),
/tcb/before
is not used for floating boxes.However, this option would be useful with floats in some cases. E.g., in case of floating boxes not on their call out pages, one may want to automatically insert (just before theses boxes call out locations), text such as "See example ⟨n⟩ page ⟨m⟩." (for this, one can rely on
/tcb/label
and tests such as\int_compare:nNnF {\getpagerefnumber{⟨label⟩}} = {\thepage}{...}
, thanks torefcount
package).The text was updated successfully, but these errors were encountered: