Open rqpe opened 3 years ago
(An alternative way for numbering without using CSS counters)
If Fidus Writer can put data-*
attributes for numbering when exporting HTML, the following HTML+CSS will work:
<figure id="F74305891" data-category="figure"><img src="images/3664e5be-a2b9-4171-afee-fa6cd0086a2d.png">
<figcaption><span class="label" data-cat-figure-num="51">Figure</span><span class="text">Components of management</span></figcaption>
</figure>
figure[data-category='figure'] figcaption span.label[data-cat-figure-num]::after {
content: ' ' attr(data-cat-figure-num);
}
Test JSBin: https://jsbin.com/zadedoc/edit?html,css,output with Vivliostyle: https://vivliostyle.vercel.app/#src=https://jsbin.com/zadedoc
Hi, I was aware of the EPUB document size limitation issues, good to know Apple upper limit. If I understand the Issue note - the data- attribute would allow us to control numbering counting across a number of types of objects: references, footnotes, figures, tables, etc. I would also assume at a later date this would also allow for identifying the different objects and being able to add other features, like: lists of figures, lists of tables. Also possibly back links. One note on reference lists - some citation styles have a style for showing if a reference is used in more that one place, this would need addressing. Although we could work around issue for the moment. I will write up the issue of numbering and sorting objects and the options for solving the problem as we need a clear record for our purposes and this is also useful to share with the research community. Last point. If we use data- would we still want to output a single HTML file for use by Vivlio? Thanks Simon
Works depending on which time of export, probably a css issue