Skip to content
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

Reference in margin not correctly placed when long reference and small paragraph #834

Closed
cderv opened this issue May 9, 2022 · 2 comments

Comments

@cderv
Copy link
Collaborator

@cderv cderv commented May 9, 2022

Reported in https://community.rstudio.com/t/how-to-avoid-margin-references-being-placed-on-top-of-each-other-in-quarto/136439

---
format: html
reference-location: margin
---

Lorem ipsum dolor sit amet, consectetur[^1] adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna 
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.[^2] Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[^3]

[^1]: Here is the first citation. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
[^2]: Here is the second citation.
[^3]: Here is the third citation.

image

Placement of third citation in margin is aligned with its associated paragraph, but this conflict with previous ones as first paragraph is shorter in heigh than the citation in margin.

cc @dragonstyle

@dragonstyle
Copy link
Collaborator

@dragonstyle dragonstyle commented May 10, 2022

This should be fixed here 778b9ef - thanks for creating issue from the community @cderv!

@cderv
Copy link
Collaborator Author

@cderv cderv commented May 10, 2022

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants