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
A common use-case in data journalism is to use visual cues in your text to relate back to visualizations that you are displaying.
For example, you make a line plot with three colors. Below in the text, you refer to the variable that makes up the red line. To make it easier for readers to understand what you're talking about, either the text is red, or the text background is red.
As an example, check out this inset in a recent fivethirtyeight article:
I think it'd be nice if we could let people do similar things with Sphinx. It seems like it would be relatively straightforward with a single roles:
{color}`c=red,bg=#00000,some text` would color some text the color red and the background #00000. It has the form {color}`key=val, key2=val, text`
So you could do something like: As the line plot shows, {color}`c=red, category A has a value of 10`
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
-
A common use-case in data journalism is to use visual cues in your text to relate back to visualizations that you are displaying.
For example, you make a line plot with three colors. Below in the text, you refer to the variable that makes up the red line. To make it easier for readers to understand what you're talking about, either the text is red, or the text background is red.
As an example, check out this inset in a recent fivethirtyeight article:
I think it'd be nice if we could let people do similar things with Sphinx. It seems like it would be relatively straightforward with a single roles:
{color}`c=red,bg=#00000,some text`
would colorsome text
the colorred
and the background#00000
. It has the form{color}`key=val, key2=val, text`
So you could do something like:
As the line plot shows, {color}`c=red, category A has a value of 10`
Would folks find something like this valuable?
Beta Was this translation helpful? Give feedback.
All reactions