-
Notifications
You must be signed in to change notification settings - Fork 111
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
fig.margin = TRUE does not work with fig.align = "center" for HTML output #54
Comments
Sounds like a bug, but I don't have time to fix it. Sorry. And pull requests are welcome! |
Alright, I can embrace the challenge of debugging this, but I need a hint. Using
As soon as I add
As you can see, the addition of the align option omits the two first lines which start the HTML paragraph. Specifically, these are missing:
And also, the align option alters the third line in a way that is not helpful to centering the image: I have trouble now finding a function in the |
@flyaflya did you manage to get |
I never got it to work as above. I chose to center all images by default. To do this, I created a file called
Then, added center.css to my _output.yml file like this:
|
Thanks for the great package. I am using it to write a bookdown book with HTML and PDF output.
My problem is that I am trying to center a margin figure instead of accepting the defaul of left-align. PDF output works fine, but HTML output does not handle the below snippet properly:
Output puts figure in center of main text instead of centering in margin:
The text was updated successfully, but these errors were encountered: