Skip to content

Have fmt_markdown() and md() handle LaTeX math formulas #375

Closed

Description

@rich-iannone

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.

Activity

  1. self-assigned this
    on Sep 26, 2019
  2. added this to the FUTURE milestone on Aug 22, 2022
  3. maj-biostat commented on Jan 17, 2024

    @maj-biostat

    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.

  4. modified the milestones: FUTURE, v0.10.2 on Feb 13, 2024
  5. moved this from Backlog to Todo In Progress in R Markdown Team Projectson Feb 13, 2024
  6. rich-iannone commented on Feb 13, 2024

    @rich-iannone
    MemberAuthor

    @maj-biostat we'll have this soon when #1578 is merged!

  7. 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
  8. moved this from Todo In Progress to Done in R Markdown Team Projectson Feb 13, 2024
  9. maj-biostat commented on Feb 14, 2024

    @maj-biostat

    Hi Rich, thank you very much for the work you are doing on gt. It's really great. Regards, Mark

  10. rich-iannone commented on Feb 14, 2024

    @rich-iannone
    MemberAuthor

    @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 not html() like the issue states) falls flat in some areas.

  11. modified the milestones: v0.10.2, v0.11.0 on Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions