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
org-mode beamer/latex export requires "#+NAME:" attribute for proper captions/centering #2643
Comments
I'd classify this as a bug in the Org reader: Pandoc doesn't have a figure type, so it marks images as a figures using special attributes. Even if NAME is missing, the reader correctly recognizes that this should be a figure, but fails to set the necessary attributes to signal this fact to the writer. If somebody wants to make a pull request for this within the next 9 hours: this should be fixable with a simple change in line 631. Otherwise I'll fix it later or tomorrow. |
The convention used by pandoc for figures is to mark them by prefixing the name with "fig:". The org reader failed to do this if a figure had no name. The test for this was broken as well. This fixes jgm#2643.
Thank you for reporting this bug, @pmagwene |
@tarleb -- Thanks for the quick fix! |
The convention used by pandoc for figures is to mark them by prefixing the name with "fig:". The org reader failed to do this if a figure had no name. The test for this was broken as well. This fixes jgm#2643.
Pandoc version: 1.15.2
If the
#+NAME
attribute isn't specified for a figure, the corresponding figure does not get properly centered in LaTeX/beamer output.Here's a MWE:
Generates this:
but
generates
The text was updated successfully, but these errors were encountered: