-
Notifications
You must be signed in to change notification settings - Fork 110
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
{marginfigure} and main text alignment issue #62
Comments
For the pdf version you can use the |
Hi, I'm having the same issue. It looks like it is vertically center-aligned rather than top-aligned to the next line. Since I was planning to use this a lot, I was wondering whether anyone had some sort of general workaround (each of my many images will have a different size, and retouching the position of all of them looks like a nightmare to maintain... even just changing a caption destroys the alignment...) |
For me this issue is fixed with the code in the accepted answer here: |
I'm experiencing this same issue. Unfortunately, the suggested workarounds are not fixing the problem. For example, using the As the package heavily relies on these margin figures, any code blocks exceeding a few lines, such as those commonly used with ggplot, make the alignment issues more noticeable. This is my minimal reproducible example:
|
The Tufte pdf handout rendering seems to have an issue aligning 'margin figure' and main text. I believe the top of the 'margin figure' should align with the first line of the text after the {marginfigure} markdown block, but it doesn't. The html rendering is good. (i am not sure whether this is a pandoc problem or tufte package problem though.)
pdf (not correct)
html (good)
The text was updated successfully, but these errors were encountered: