Closed kerimoyle closed 4 years ago
Any way we could use this kind of construct to avoid the hard links?
.. table:: Table caption
:name: table_x
:numref:`Table %s: Unit thingies<table_x>`
Found this online: https://github.com/sphinx-doc/sphinx/issues/1763
Thanks, I'll give it a go (didn't even realise that "table" was a thing, oops!)
Looks good, but doesn't work for me in the PDF somehow. I'm not seeing the table heading anymore
it's not working at all ... yet ...
Ok, ping us when it's ready to review.
I've been playing around too and can't get it to work
Heyyyy that seems to work!
Yep, getting there ... now I need to clean it up a little ...
Not quite working for me:
Also, I would expect references to a table to read something like "Table x.y", not "Table x.y: some description" as is currently the case, e.g.:
I think it's nice to have the title of the table there ... since hoverxref doesn't seem to play nicely with it, it saves people from having to click on the link to find out which table it's talking about. And it's (here's that magic word) consistent with our other internal links to sections and their titles ... ?
It's a personal preference of mine, but if the majority is in favour of keeping things as they are, then I am "fine".
numref can do this see #285.
yep, just fixing it up now @hsorby
Already done in #285
Addresses #282
Manually added table numbers throughout the text to the links because numref can't do it for us.
Rendered version here: https://cellml-specification-dev.readthedocs.io/en/i282_table_numbers/index.html