You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the following show rule with hydra(2, skip-starting: false) produces the previous heading's name for this page. Following pages are correct (until the next header)
show heading.where(level: 2): it => {
pagebreak(weak:true)
figure(placement:top, scope: "parent", outlined:false,
it.body
)
}
This might be related to either or both of Issue 17 or Issue 8. But an important difference is that this is actually the first thing on the page, as indicated by the pagebreak.
Any advice on a workaround? I do need the figure, unfortunately. The display should span both columns of the page.
The text was updated successfully, but these errors were encountered:
Yes, indeed, it is related to #8 and #17, specifically because this is a float who's real position is somewhere within the page, hydra thinks there may be content before this heading, prompting it to show that one still.
You're likely missing the use-last parameter, which instructs hydra to consider headings on the current page (maybe a little bit of a misnomer). With use-last: true it will consider any level: 2 heading on the current page and take the last one and work as you likely intended. Could you give that a try and see if that solves the issue for you?
skip-starting and use-last kind of oppose each other, this is a little bit of a rough edge in the API. I'll improve this in the next version, alongside the much-needed doc improvements.
That does work, thank you. And since I'm using a pagebreak, I'm guaranteed not to have another on the same page.
Apologies, I thought I had tried all the parameters, but either the situation with the document was different and it didn't work, or I missed this one. Thank you for your help!
Using the following show rule with
hydra(2, skip-starting: false)
produces the previous heading's name for this page. Following pages are correct (until the next header)This might be related to either or both of Issue 17 or Issue 8. But an important difference is that this is actually the first thing on the page, as indicated by the pagebreak.
Any advice on a workaround? I do need the figure, unfortunately. The display should span both columns of the page.
The text was updated successfully, but these errors were encountered: