Figure Output #20
argent0
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've been working on pandoc's output figures. That is, from pandoc's new
internal representation of a figure to the various output formats.
General behaviour
To make our changes the least intrusive, most of the formats follow the output that was previously used for pandoc's
Divs
.Let's take for example the
markdown
output:Div
is handled.Click to expand example
Figure
is handled. It adds the figure class if not alreadypresent among the classes.
Most output formats follow this scheme:
- Haddock
- OpenDocument
- FB2
- ZimWiki
- MediaWiki, add class "figure"
- LaTeX
- ICML
- Markdown, add class "figure"
- DokuWiki
- Docbook, allows for better handling
- ConTeXt
- AsciiDoc
- JATS
- Man
- RTF
- HTML
- Jira
Click to expand example
A figure with title
Exceptions
Textile
Handles like an html figure.
Texinfo
I've considered three cases:
@float Figure
. This output was tested withmakeinfo
andinfo
.Click to expand example
SimpleFigure
: use@float
Click to expand example
@float Table
Click to expand example
@float
.Click to expand example
This is according to the documentation here.
RST
Figure float with caption at the figure level.
Click to expand example
According to the documentation here
XWiki
Using Groups
Click to expand example
Further modifications
These modifications are more involved and are up for discussion.
ConTeXt
ConTeXt supports floating elements. This would require a modification to the
template.
Click to expand example
LaTeX
The issue is that
\figure
can't contain further\figure
's inside. There arealternative packages:
Click to expand example
The caption package plays well with latex's default
classes(book,
report, article) and
beamer
andthesis
.But is not installed in the default ubuntu package. It is on ubuntu on this
package.
One idea would be to include figure support as an extension.
HTML5
I'll show a tentative output when I have it ready.
Beta Was this translation helpful? Give feedback.
All reactions