Allow Tables/Figures/Equations etc. to be numbered in pandoc export #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #12
This works around a longstanding set of issues in pandoc, which doesn't support automatic numbering of Figures/Tables/Equations etc.
e.g.,
jgm/pandoc#2328
jgm/pandoc#615
jgm/pandoc#2851
jgm/pandoc#2077
These patches override the exporter to add appropriate numbered captions to Tables, Figures and source code Listings, as well as equation numbers to LaTeX math environments. The patches also implement correct numbered referencing when defining org-mode links to numbered items like Tables, Figures, Listings and Equations.
This functionality and behaviour should more closely mimic the standard org-mode exporters.