C2DH / journal-of-digital-history

frontend app for our Digital Journal
GNU General Public License v3.0
19 stars 4 forks source link

Automatic numbering of figures #423

Closed biumiamy closed 2 years ago

biumiamy commented 2 years ago

To make the life of authors and editors easier, we should (finally) go for an automatic numbering of the figures. (The guideline should be adjusted accordingly as well.)

danieleguido commented 2 years ago

Hi @biumiamy can you check the https://github.com/C2DH/journal-of-digital-history/pull/442 ? I've created an article with automatic numbering here: https://github.com/C2DH/jdh-notebook/blob/master/examples/cite-figures-automatic.ipynb

You just have to put the magic suffix -* at the end of the usual tagging for figures and tables - so that they are still referencing a specific content: Screenshot 2022-05-12 at 17 16 08

Then the label gets translated as well: Screenshot 2022-05-12 at 17 17 47

biumiamy commented 2 years ago

which notebook viewer did you use? It didnt work for me.. it just shows the name with the "-*" at the end

danieleguido commented 2 years ago

The feature works only in our journal. the -* allows the internal links to be used in the editor instead of "Fig. n" so that it doesn't break the current behaviour in mybinder or in jupyterlab

eliselavy commented 2 years ago

guidelines should be updated accordingly

danieleguido commented 2 years ago

I close this for now, let's move the discussion (if needed) in #327