-
Notifications
You must be signed in to change notification settings - Fork 3
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
Wrong heading with figure(placement: auto)
#17
Comments
This is actually expected behavior at the moment, It's very similar to #8, where the underlying issue is the same. I wonder, though, in this particular case, is the floating behavior desired? With typst#4141 one could prevent both the incorrect heading in hydra and the image floating past its encompassing section heading. If not, |
Yeah I thought it might be a problem with what hydra can know about the document. As for the figure with placement auto, I don't think the placement is really wrong, having it under the title would look wierd maybe ? Usually figures are considered "outside" of the text when floating like that, but I do agree that it would be nice to have a way to flush figures before the end of the section, but not sure about the begining. Feel free to close this issue if you think that it's too redundant with #16 :) |
I'll keep this open, because hydra doesn't consider any floating elements yet, while it arguably should. I'll just have to see how much of that can be done reasonably. |
Without placement auto, hydra correctly does not display Heading 1 in the header :
But when using placement auto, the image is placed at the top and hydra interprets this as being part of section 1 :
Maybe it's related to #16.
The text was updated successfully, but these errors were encountered: