-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Equation labels not properly handled when pandoc 2.0 is used with gitbook output #504
Comments
Could you add empty lines before and after |
The spacing issue is easier to solve. A quick google search: https://tex.stackexchange.com/q/224987/9128 |
Thanks for the suggestion. Unfortunately, using setlength is more a hack than a solution to the problem since to get the desired spacing, I have to specify a negative value for abovedisplayskip. As the Rmd file contains perfectly valid syntax, the problem is probably a bug in bookdown. |
I know exactly what the problem is in this case, and I also know to fix it. I just hope I don't have to touch it, for three reasons: (1) I often have too many other things to do; (2) there is a workaround (i.e. this issue does not really block you); (3) fixing bugs can introduce new problems. |
I now also know exactly what the problem is. I'm making a pull request to pandoc to add newlines around inlined display math. This should solve the problem. I hope the PR gets accepted. EDIT: I discovered a simpler solution that requires no changes in bookdown and pandoc. It is to add the following option: Should this option become a default? |
It is great to know |
I just made |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Here is a minimal example for a minimal book with the following
index.Rmd
Screenshot of the generated gitbook:

The text was updated successfully, but these errors were encountered: