brechtm / rinohtype

The Python document processor
http://www.mos6581.org/rinohtype
GNU Affero General Public License v3.0
499 stars 59 forks source link

Crash on rendering a figure caption with the rinohtype docs stylesheet #368

Closed brechtm closed 1 year ago

brechtm commented 1 year ago

Discussed in https://github.com/brechtm/rinohtype/discussions/365

Originally posted by **riccstick** October 4, 2022 I have a question to the figure caption, especially how I can show for instance: "Figure 1:" in-front of the legend. And how to show the `:numref:` from Sphinx within the PDF. Now, if I create the `numref` I have the link, however no number, just two `??` symbols. Currently, I have set the `number_format` to `none`, because if I set it to `number`, I get an error: `paragraph.py", line 724, in number label.style = 'label' AttributeError: 'str' object has no attribute 'style'`. >[figure caption] >number_format = none So, I am not sure how to proceed...