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
{{ message }}
Repository navigation
Have fmt_markdown() and md() handle LaTeX math formulas #375
The fmt_markdown(), html(), and md() functions should be able to convert LaTeX math formulas to inline SVGs. This will allow math formulas in table cells and in any other label areas (e.g., column labels, header title, etc.).
The rendered formula SVGs should entirely consist of paths.
Reacted by Charles Atkinson, Steve Wynne, Jennifer P, Jenna Rowe, Michael Kane, Ed Murray, michaelrw2, shawnoneill-code, Eric R. Scott, Christophe Dervieux and 5 more
Reacted by Charles Atkinson, Jennifer P, Vincent Arel-Bundock, Jenna Rowe, shawnoneill-code, Elliot Gould and erwan-99
Hi @rich-iannone
I have been looking for a way to introduce mathematical notation in the column headers (beyond simple cases such as html("p<sub>y<\sub>") ). Is there a way to do this? I have been scouring the net and documentation for a few hours and cannot seem to find any options. For the current use case, all I want to do is the equivalent of $\hat{p}_y$ but I have other more complex scenarios that I need to use as well. Thanks.
changed the title [-]Have `fmt_markdown()`, `html()`, and `md()` handle math formulas[/-][+]Have `fmt_markdown()` and `md()` handle LaTeX math formulas[/+]on Feb 13, 2024
@maj-biostat Thanks Mark, appreciate that! And please let me know if this new feature (only documented currently in fmt_markdown(), but also works in md()--- though nothtml() like the issue states) falls flat in some areas.
Activity
maj-biostat commentedon Jan 17, 2024
Hi @rich-iannone
I have been looking for a way to introduce mathematical notation in the column headers (beyond simple cases such as
html("p<sub>y<\sub>")). Is there a way to do this? I have been scouring the net and documentation for a few hours and cannot seem to find any options. For the current use case, all I want to do is the equivalent of$\hat{p}_y$but I have other more complex scenarios that I need to use as well. Thanks.rich-iannone commentedon Feb 13, 2024
@maj-biostat we'll have this soon when #1578 is merged!
[-]Have `fmt_markdown()`, `html()`, and `md()` handle math formulas[/-][+]Have `fmt_markdown()` and `md()` handle LaTeX math formulas[/+]maj-biostat commentedon Feb 14, 2024
Hi Rich, thank you very much for the work you are doing on gt. It's really great. Regards, Mark
rich-iannone commentedon Feb 14, 2024
@maj-biostat Thanks Mark, appreciate that! And please let me know if this new feature (only documented currently in
fmt_markdown(), but also works inmd()--- though nothtml()like the issue states) falls flat in some areas.