Closed mgajda closed 9 months ago
I consider these new features to be out-of-scope. pandoc-plot
transforms code blocks into image blocks; further formatting of image blocks should be done in another filter.
It is especially telling that two of the four options above are latex-only
pandoc-plot
. That would make resulting code fragile.inline
option that strips the figure headers and produces an inline image.This PR add functionality which is strictly out-of-scope.
it would depend on exact output format of pandoc-plot
All Pandoc filters share the exact same output format -- a JSON stream with a very specific structure.
Since I do not feel like writing another plugin that parses pandoc-plot
image block and reformats it in different way, I will maintain this branch in my own repo.
Unless there appears another filter that offers the functionality.
I have added
mode="..."
parameter per figure block:mode="floating"
is default mode as beforemode="column"
createsminipage
environment with a width of a single line, for narrow figures in multi-column mode (LaTeX only)mode="inline"
strips the figure and caption to make the figure inline (all modes)mode="wrapped"
useswrapfig
environment to wrap text around figure (LaTeX only)