Skip to content

[lecture_comparison] [re_with_feedback] Strange-looking prints of latex equations generated by code #38

Closed

Description

@shlff

Hi @mmcky , I noticed another issue in lecture re_with_feedback:

  • the latex math expressions generated by code look very strange or wrong.

For example, please see here (left: MYST, right: RST),

Screen Shot 2021-01-12 at 2 06 20 pm

and

Screen Shot 2021-01-12 at 2 07 05 pm

and

Screen Shot 2021-01-12 at 2 07 33 pm

Activity

  1. mmcky commented on Jan 12, 2021

    @mmcky
    Contributor

    thanks @shlff -- nice pickup. I wonder if it is displaying the html image in preference to the latex via mathjax

  2. mmcky commented on Jan 13, 2021

    @mmcky
    Contributor

    @AakashGfude perhaps this is just an issue with the priorities of which object to use at the myst-nb level. Would you mind investigating if jupyter-book is pulling an image of the math instead of the latex/mathml for mathjax rendering.

  3. AakashGfude commented on Jan 18, 2021

    @AakashGfude
    Member

    @mmcky you are right, it is because of the priorities set in myst_nb

    "application/javascript",
    "text/html",
    "image/svg+xml",
    "image/png",
    "image/jpeg",
    "text/markdown",
    "text/latex",
    "text/plain",
    

    In the examples given by shu, the code blocks have text/latex, text/plain, image/png all of them. since image/png is at a higher priority, it gets used. We Will need to check why the png image is formed in some blocks but not others.

  4. mmcky commented on Feb 10, 2021

    @mmcky
    Contributor

    thanks @AakashGfude should we promote text/latex do you think?

  5. assigned and unassigned on Feb 15, 2021
  6. shlff commented on Feb 15, 2021

    @shlff
    MemberAuthor

    Thanks @mmcky. I checked all math expressions in this lecture and they look perfect now except that the following one still looks a bit different (left: myst; right: rst)

    Screen Shot 2021-02-15 at 4 36 17 pm

    I think this array is fine and you can ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions