question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Footnotes and custom style maps

See original GitHub issue

Hello,

Thank you for the great document convertor – It’s very helpful!

A question: Is it possible to use custom style maps to change how footnotes are converted? I would like to have them appear inline, wrapped in some form of tag (e.g. span.fn). In order to do that, I tried the following:

r[style-name='FootnoteReference'] => span.fn:fresh
p[style-name='FootnoteReference'] => span.fn:fresh

p[style-name='footnote text'] => span.fn:fresh
r[style-name='footnote reference'] =>

p[style-name='Footnote'] => span.fn:fresh
r[style-name='Footnote anchor'] =>

p[style-name='footnoteReference'] => span.fn:fresh
r[style-name='footnoteReference'] =>

but it didn’t have any effect; the footnotes still show up in the usual way (i.e. superscript anchors that link to ordered lists).

I’m not sure if this is relevant, but whenever I run mammoth (with or without the style map), I get the following alert:

Run style with ID FootnoteReference was referenced but not defined in the document Unrecognised run style: ‘null’ (Style ID: FootnoteReference)

(This is where I got those style names from).

Is there a way to disable to footnote reader? Or would this have to be done with postprocessing the html?

Thank you!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
maddesignscommented, May 26, 2018

would love to see that feature too

1reaction
julientaqcommented, Mar 25, 2022

hi there! That would be quite useful for us too! THanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snazzy Maps - Free Styles for Google Maps
Snazzy Maps is a repository of different styles for Google Maps aimed towards web designers and developers. All styles are licensed under creative...
Read more >
Creating footnotes in WORD - Chicago Manual of Style and ...
Select the options you want in the Footnote and Endnote box. You can choose between footnotes and endnotes, numbering format, custom marks and ......
Read more >
How can I create a custom mark for use with footnotes?
I want to use a custom mark to denote footnotes in a Word 2007 document but it's not in any of the symbol...
Read more >
Change footnote numbering format to a custom mapping - TeX
The main thing here seems to be the requirement to have multiple representations of the same footnote: \arabic in the text (say, ...
Read more >
Footnotes - Oxygen XML Editor
How to Change Style of the Footnote Markers and Footnote Calls. To bold the footnotes numbers and use some colors, add the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found