sphinx-material icon indicating copy to clipboard operation
sphinx-material copied to clipboard

Better Support for Figures

Open kebekus opened this issue 3 years ago • 2 comments

Dear bashtage,

thank you so much for this wonderful style sphinx style! I would, however, like to ask for better support for figures. At present, figures are hardly discernible in the output. Figure headlines are in no way different from the text body. Alignment seems to be ignored. I would greatly appreciate if this could be improved.

Best -- and thanks again.

Stefan Kebekus.

kebekus avatar Jul 18 '21 15:07 kebekus

Are there any examples of this in the demo site you could point out?

bashtage avatar Jul 19 '21 08:07 bashtage

Dear bashtage,

thank you for your extremely prompt reply. I do not see any figures in the demo site, but you can find one on the site that I maintain:

  • https://akaflieg-freiburg.github.io/enrouteText/manual/02-steps/traffic.html

As you can see, the figure "Approaching EDTF with traffic" at the top of the page is not centered even though the markup asks for it:

.. _EDTFtraffic:
.. figure:: ./autogenerated/02-01-01-traffic.png
   :scale: 30 %
   :align: center
   :alt: Approaching EDTF with traffic

   Approaching EDTF with traffic

In addition, I would like to suggest that the figure should be visually more prominent. At present, the figure caption looks not very different from the text body (and is aligned with the items in the list below!). Perhaps one could add a frame, the word "figure" or a slightly colored background rectangle to make it visually clear that the figure does not belong to the text body …?

Best -- and thanks again!

Stefan.

kebekus avatar Jul 20 '21 07:07 kebekus