sphinx-subfigure
A sphinx extension to create figures with multiple images:
- Provides a simple format for complex image layouts.
- Supports HTML fully, with responsive layouts, for different screen sizes
- LaTeX is supported, except for images that span multiple rows.
- degrades gracefully for other formats.
- Supports figure numbering and referencing.
- Supports image sub-captions, via
alttext.
Usage
Install sphinx-subfigure with pip install sphinx-subfigure,
then add sphinx_subfigure to your conf.py file's extensions variable:
extensions = ["sphinx_subfigure"]
numfig = True # optional
Now add a subfigure directive to your document:
.. subfigure:: AA|BC
:layout-sm: A|B|C
:subcaptions: above
:name: myfigure
:class-grid: outline
.. image:: imageA.png
:alt: Image A
.. image:: imageB.png
:alt: Image B
.. image:: imageC.png
:alt: Image C
Figure Caption
- Each image is automatically assigned an area identifier (A, B, C, etc.).
- Layouts are formed by composing the areas into a grid, with rows delimited by
|. - Each area must be used exactly once in the layout, and form a single rectangle.
- "Empty" areas can be designated with
. - Additional layouts can be defined with
:layout-sm:,:layout-lg:,:layout-xl:, for different screen sizes (HTML only).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinx_subfigure-0.2.4.tar.gz
(576.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_subfigure-0.2.4.tar.gz.
File metadata
- Download URL: sphinx_subfigure-0.2.4.tar.gz
- Upload date:
- Size: 576.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d106193d0076bf29bb9594dbda23d3c13e9b2490e4344bc8018b6059a195de3b
|
|
| MD5 |
bfb1eeccef54feebdbbb9207db3b5580
|
|
| BLAKE2b-256 |
c7b9fbacae5a5439fc08b5403c9b6f3253ad2fb3af8dd3234e358be3fa3ab272
|
File details
Details for the file sphinx_subfigure-0.2.4-py3-none-any.whl.
File metadata
- Download URL: sphinx_subfigure-0.2.4-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
535c890e0c431e9d0ad635f96b91b311560b02300197accc1ec664cb28af44f3
|
|
| MD5 |
41ce69fcabe0c976c167d341ca6305f7
|
|
| BLAKE2b-256 |
0d4a3dcdf5e9bbc05dce85ee154b1ec3507427a2c2332834bd4e5f0541626c3e
|