Rendering in the docs #5

Closed
opened 2017-07-07 12:01:38 +01:00 by soegaard · 7 comments
soegaard commented 2017-07-07 12:01:38 +01:00 (Migrated from github.com)

Hi,
I notice that the $$ example in docs renders incorrectly?

http://docs.racket-lang.org/scribble-math/

The example is:

($$ "\\sum_{i=0}^n x_i^3")

The resulting equation is in display mode as expected, but the letters i, x and n are not in italics?

Hi, I notice that the `$$` example in docs renders incorrectly? http://docs.racket-lang.org/scribble-math/ The example is: ($$ "\\sum_{i=0}^n x_i^3") The resulting equation is in display mode as expected, but the letters `i`, `x` and `n` are not in italics?
SuzanneSoy commented 2017-07-07 15:10:50 +01:00 (Migrated from github.com)

Thanks for the report, this may be browser-dependent. I think MathJax does not work equally well in all modes (SVG, HTML+CSS, MathML) on all browsers, so the configuration may need a tweak.

Attached is a picture of what I see on Chromium 57.0.2987.110 (64-bit), Linux, and the fonts look OK.

Can you send me a screenshot + browser version and OS?

Also, when you right-click → inspect or similar somewhere on the page (not on the equation, these should have their own menus), can you check in the JavaScript/Network console for any error or warning messages?

Thanks!

Thanks for the report, this may be browser-dependent. I think MathJax does not work equally well in all modes (SVG, HTML+CSS, MathML) on all browsers, so the configuration may need a tweak. Attached is a picture of what I see on Chromium 57.0.2987.110 (64-bit), Linux, and the fonts look OK. Can you send me a screenshot + browser version and OS? Also, when you right-click → inspect or similar somewhere on the page (not on the equation, these should have their own menus), can you check in the JavaScript/Network console for any error or warning messages? Thanks!
SuzanneSoy commented 2017-07-07 15:11:16 +01:00 (Migrated from github.com)

equation

![equation](https://user-images.githubusercontent.com/299872/27961439-e3568dd6-632e-11e7-9b61-bd9c84dd5b4e.png)
soegaard commented 2017-07-07 15:48:07 +01:00 (Migrated from github.com)

The screenshot is from Google Chrome on macOS Version 59.0.3071.115 (Official Build) (64-bit).
A quick test in Google Chrome Canary shows the same.

image

The JavaScript console shows this error:
Failed to load resource: http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?V=2.7.1
the server responded with a status of 403 (Forbidden)

FWIW Safari Version 10.1.1 (12603.2.4) behaves the same:

image

/Jens Axel

The screenshot is from Google Chrome on macOS Version 59.0.3071.115 (Official Build) (64-bit). A quick test in Google Chrome Canary shows the same. ![image](https://user-images.githubusercontent.com/461765/27962613-bd4a41d8-6332-11e7-8349-769ebf315a66.png) The JavaScript console shows this error: Failed to load resource: http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?V=2.7.1 the server responded with a status of 403 (Forbidden) FWIW Safari Version 10.1.1 (12603.2.4) behaves the same: ![image](https://user-images.githubusercontent.com/461765/27962910-9590f30c-6333-11e7-97fb-997083421d56.png) /Jens Axel
SuzanneSoy commented 2017-07-07 15:54:40 +01:00 (Migrated from github.com)

Ah, on my system it's accessing a different file:

http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js?V=2.7.1 ;; me
http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?V=2.7.1 ;; you

So for some reason it's trying to use the STIX fonts and not the TeX ones (whatever these are).

The version of MathJax in this library is made more lightweight by removing some files which are (normally) not necessary, I must have forgotten a flag which disables these STIX fonts. I'm looking into this right now.

Ah, on my system it's accessing a different file: ``` http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js?V=2.7.1 ;; me http://docs.racket-lang.org/scribble-math/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js?V=2.7.1 ;; you ``` So for some reason it's trying to use the STIX fonts and not the TeX ones (whatever these are). The version of MathJax in this library is made more lightweight by removing some files which are (normally) not necessary, I must have forgotten a flag which disables these STIX fonts. I'm looking into this right now.
SuzanneSoy commented 2017-07-07 16:01:33 +01:00 (Migrated from github.com)

Okay, the configuration was listing the STIX and TeX fonts as available, but actually only STIX-Web and TeX are available. I hopefully fixed the configuration, I'll ping you back once it's rebuilt (tomorrow) to check whether the display got fixed.

Okay, the configuration was listing the `STIX` and `TeX` fonts as available, but actually only `STIX-Web` and `TeX` are available. I hopefully fixed the configuration, I'll ping you back once it's rebuilt (tomorrow) to check whether the display got fixed.
soegaard commented 2017-07-07 16:03:06 +01:00 (Migrated from github.com)

Cool. Btw - did you see Dmitri Pavlov's post on the mailing list? He asks
about equation numbering.

/Jens Axel

2017-07-07 17:01 GMT+02:00 Georges Dupéron notifications@github.com:

Okay, the configuration was listing the STIX and TeX fonts as available,
but actually only STIX-Web and TeX are available. I hopefully fixed the
configuration, I'll ping you back once it's rebuilt (tomorrow) to check
whether the display got fixed.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jsmaniac/scribble-math/issues/5#issuecomment-313706852,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAcLxYXKq6hjODrBsVXSeV0DhqZQ2JH6ks5sLkhNgaJpZM4OQzRB
.

--

Jens Axel Søgaard

Cool. Btw - did you see Dmitri Pavlov's post on the mailing list? He asks about equation numbering. /Jens Axel 2017-07-07 17:01 GMT+02:00 Georges Dupéron <notifications@github.com>: > Okay, the configuration was listing the STIX and TeX fonts as available, > but actually only STIX-Web and TeX are available. I hopefully fixed the > configuration, I'll ping you back once it's rebuilt (tomorrow) to check > whether the display got fixed. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/jsmaniac/scribble-math/issues/5#issuecomment-313706852>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAcLxYXKq6hjODrBsVXSeV0DhqZQ2JH6ks5sLkhNgaJpZM4OQzRB> > . > -- -- Jens Axel Søgaard
soegaard commented 2017-07-10 22:04:49 +01:00 (Migrated from github.com)

The docs renders correctly now.

Thanks!

The docs renders correctly now. Thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: suzanne.soy/scribble-math#5
No description provided.