figure figwidth and align opts, refs

tomduck avatartomduck created an issue

There are some issues with the figure directive apparent in latex output.

1) The figwidth option does not work. Captions extend across the full width of the page, even when figwidth is set to "image". Note also that the figwidth option does not support values with units (e.g., using "3in" produces an error message), even though the width option provides this support.

2) The align option should justify the image and let text wrap on the open side. Images do justify, but text doesn't wrap.

3) References to figures should be replaced with the latex Figure number rather than the caption text.

I am using sphinx 0.5.1 to draft a textbook. Thanks for all of your efforts on this fantastic software.


Comments (7)

  1. tomduck
    • changed status to open

    A quick follow-up: For point 1, the figwidth should be respected by the caption even if the alignment is not set. I just tested with Sphinx 0.6.1, and non-aligned figures have captions that extend across the page.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.