Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

LaTeX brackets don't display correctly (jsMath)

  • 7 risposte
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di zenolas

more options

I'm currently working with OLAT (a java based web application to manage lectures) and try to write some text containing LaTeX code inside (there is a html text editor which allows the use of LaTeX formulas via jsMath). When I try to display large brackets around a vector (with more than two rows), schematically :

\begin{pmatrix}
x_1 \\ x_2 \\ x_3
\end{pmatrix}

, the brackets aren't visible and there are some symbols instead (look at the screenshots). For shorter vectors (up to two rows), the problem doesn't appear.

Note that I encounter this problem on Firefox 27.0.1, both on Linux (Kubuntu 13.10) and Windows (7), but for instance not with other browsers (chromium, rekonq, etc.). Interestingly, someone tried this on a 27.0.01 version of Firefox under Archlinux, and the large brackets seems to be displayed correctly. It also seems to be working on Internet Explorer 9, 10 and 11.

I'm currently working with OLAT (a java based web application to manage lectures) and try to write some text containing LaTeX code inside (there is a html text editor which allows the use of LaTeX formulas via jsMath). When I try to display large brackets around a vector (with more than two rows), schematically : <pre><nowiki>\begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix}</nowiki></pre> , the brackets aren't visible and there are some symbols instead (look at the screenshots). For shorter vectors (up to two rows), the problem doesn't appear. Note that I encounter this problem on Firefox 27.0.1, both on Linux (Kubuntu 13.10) and Windows (7), but for instance not with other browsers (chromium, rekonq, etc.). Interestingly, someone tried this on a 27.0.01 version of Firefox under Archlinux, and the large brackets seems to be displayed correctly. It also seems to be working on Internet Explorer 9, 10 and 11.

Modificato da cor-el il

Soluzione scelta

The www.math.union.edu page uses their own fonts (jsMath-cmex10). The page works for me after installing the fonts as shown on the page. Note that the page can use images instead of a font.

Note that the presence of boxes with the hex code instead of the character indicates that Firefox didn't find a font that includes the glyphs.

What does the Inspector (Firefox/Tools > Web Developer) say about fonts that are used on the page and possible CSS rules for those missing glyphs?

Leggere questa risposta nel contesto 👍 2

Tutte le risposte (7)

more options

And here are the screenshots...

more options
more options

Hello cor-el,

Thank you for your suggestion. Yes, all the fonts were already present on my Linux system (I installed them again under Linux/Windows just to be sure, but the problem is still present).

However, I wonder if it is a font-related problem, since the large brackets display correctly for instance in Chromium, but not in Firefox, both working under the same Linux (or Windows) system (all browsers should normally have access to the same collection of fonts available under a given OS). I also checked if it could be a possible encoding issue, but it doesn't seem to be the case since the parameters are the same in all my browsers.

Today, I also tried to run my line of LaTeX code in this test page for the jsMath package : http://www.math.union.edu/~dpvc/jsMath/jsMath-lab.html

Interestingly, the large brackets are displayed correctly with Firefox, so my guess of a jsMath related issue seems to be a wrong way...

Modificato da zenolas il

more options

Soluzione scelta

The www.math.union.edu page uses their own fonts (jsMath-cmex10). The page works for me after installing the fonts as shown on the page. Note that the page can use images instead of a font.

Note that the presence of boxes with the hex code instead of the character indicates that Firefox didn't find a font that includes the glyphs.

What does the Inspector (Firefox/Tools > Web Developer) say about fonts that are used on the page and possible CSS rules for those missing glyphs?

more options

Well, the page inspector seemed indeed to indicate that those specific jsMath fonts were required... and it solves the problem ! Shame on me not to have checked that additional point... And thank you for your help !

So for anyone encountering the same problem, you just have to install the missing jsMath fonts available here :

http://www.math.union.edu/~dpvc/jsmath/download/jsmath-fonts.html


However, there's still something that I don't quite understand : without the jsMath fonts installed on my OS, the page displayed correctly within some other browsers running on the same machine, is there a particular explanation or does Firefox work in a different way when it comes to those font problematics ?

more options

I got a notification that no fonts were font installed and that images would be used instead.
This choice is probably stored in a cookie once displayed and you may not notice the difference unless you would right-click such an image.

more options

Ok, I understand it for the math.union website.

But in fact, I was thinking about the problematic page of my initial question : previously, no images were displayed instead (since there were those hexa boxes), but still it was possible to visualize it correctly with other browsers than Firefox.