Skip to content

Latex to show in browser in Terminal #549

Description

@WhiteBlackGoose

The package I want to suggest the idea to: AngouriMath.Terminal

Similar to Plot.* functions, we can make something like latex function to display an expression in a website, e. g. this, this, or make temporary page generation like Plotly.NET does

Activity

  1. added
    Opinions wanted
    on Aug 11, 2026
  2. Rafael-SOWNet commented on Aug 11, 2026

    @Rafael-SOWNet
    Member

    Triage, 2026-08-11. Recommended for closure, and labelled Opinions wanted rather than closed because declining a proposal is a maintainer's call.

    Terminal polish, same reasoning as #539.

    This is one of thirteen dormant proposals swept in the same pass. If you disagree with any of them the label is the place to say so; if you agree, closing is the action. Nothing here is a defect report, so nothing is lost by closing except the record of the idea, which this comment preserves.

  3. Rafael-SOWNet commented on Sep 5, 2026

    @Rafael-SOWNet
    Member

    The LaTeX is already computed for every result and then thrown away, and a browser round-trip
    already exists in the process. So this is cheaper than the body assumes, and it needs no web service.

    The formatter returns LatexSuccess(latex, plain) — measured, 8 / 6 yields \frac{4}{3} — and
    Program.fs matches LatexSuccess (_, text) and prints only text. Meanwhile Plotly's Chart.show
    already writes a temp page and opens the default browser ("Showing in the browser").

    That makes codecogs the wrong shape for this: it would add a network dependency and an availability
    risk for a string the process is already holding. A temp page with MathJax or KaTeX is the same move
    Chart.show makes.

    Recommendation: keep open, scoped smaller than written — a latex function in PreRunCode.fs,
    plus an option to print the LaTeX string at the prompt, since it is in hand either way.

  4. Happypig375 commented on Sep 18, 2026

    @Happypig375
    Member

    Easy issue, the agent can handle this

  5. added this to the 2.6.0 milestone on Sep 18, 2026
  6. Rafael-SOWNet commented on Sep 27, 2026

    @Rafael-SOWNet
    Member

    Sorry this sat for a week. #1495 adds render x, which opens the expression in the browser typeset by MathJax. latex x already printed the LaTeX, so the Terminal now has both.

  7. added a commit that references this issue on Sep 27, 2026
    8e3a270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Opinions wanted

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions