-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[tex] Positioning of figures #3180
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
base: main
Are you sure you want to change the base?
Conversation
3f38236
to
e7fe7fb
Compare
Any objections to having such a feature in the LaTeX writer? I added more info in the commit message. |
e7fe7fb
to
8fdc7ff
Compare
tests/writer.latex
Outdated
@@ -923,7 +923,7 @@ or here: <http://example.com/> | |||
|
|||
From ``Voyage dans la Lune'' by Georges Melies (1902): | |||
|
|||
\begin{figure} | |||
\begin{figure}[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case we should avoid empty brackets when there are no options.
One concern I have is that |
909ff06
to
656df95
Compare
@jgm Thanks, I wasn't aware that HTML accepts all attributes. In the revised one it is prefixed with "pandoc-" to mark it as an internal one (and simply ignored in HTML). |
656df95
to
28800b7
Compare
Adds an optional argument ('pandoc-pos') to position figures (with or without captions). Supported positions: here (floating), top (default), bottom, page (single page figure). ODT Parser translates the positions of the figures (frames) in the following way: 'as-char' -> 'here' 'page' -> 'page Those image attributes are then translated in the appropriate element in the output document, if supported. Currently only Latex interprets such image attributes (with the appropriate argument to the figure environment) but other writers (and readers) can easily support it as well. Since HTML takes whatever attributes were parsed, we have to filter out the internal 'pandoc-' ones. Added some explicit type annotations to help with older GHC versions.
28800b7
to
4da97fc
Compare
Adds an option to position figures with captions.
Currently only ODT parses its position information but
other inputs formats can easily support it as well.