You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to color the reference tags when using footnote and was unable to find a way to do it. Looking at the footnote function, it expects a character vector for ref_symbol, but then converts that to a chunk when applying superscript to it.
By converting it to a chunk earlier, if it is not already, I can fairly easily pass chunks in with any of their normal formatting options. Just need to update the references from vector to rows of the chunk.
Here's a working example, though I have not messed with inline or completely checked the warning message/checks. It will now just pass through chunk options. Is this something that would be reasonable to implement? I am not really adept at formatting chunks, so I am not sure if this would cause more difficulties or issues elsewhere.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was trying to color the reference tags when using footnote and was unable to find a way to do it. Looking at the footnote function, it expects a character vector for ref_symbol, but then converts that to a chunk when applying superscript to it.
By converting it to a chunk earlier, if it is not already, I can fairly easily pass chunks in with any of their normal formatting options. Just need to update the references from vector to rows of the chunk.
Here's a working example, though I have not messed with inline or completely checked the warning message/checks. It will now just pass through chunk options. Is this something that would be reasonable to implement? I am not really adept at formatting chunks, so I am not sure if this would cause more difficulties or issues elsewhere.
With the updated function:
Beta Was this translation helpful? Give feedback.
All reactions