From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: MathJax font confusion Date: Tue, 5 Mar 2019 11:27:33 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6838705835c309b" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Dr2-0007Eo-IA for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 12:27:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1Dr1-00018W-IJ for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 12:27:48 -0500 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:35669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1Dr1-00016C-8g for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 12:27:47 -0500 Received: by mail-lf1-x12b.google.com with SMTP id h6so2545885lfc.2 for ; Tue, 05 Mar 2019 09:27:46 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode Mailinglist --000000000000f6838705835c309b Content-Type: text/plain; charset="UTF-8" I'm trying to get odd behavior in an org-mode HTML export cleared up. (See this .) I've got this table { font-family: monospace; /* font-family:'eulermedium_18'; */ font-size: 1.05em; margin-left:5%; margin-right:auto; margin-top:0.5em; margin-bottom:0.5em; line-height: 1.5em; } in my custom stylesheet.css, and I've narrowed the inflated font size issue you can see on the "Therefore exists" line down to the `font-family: monospace;` above. So with this custom `table` and anything inside $...$, I get a strange `element.style` thrown in the final HTML, which alters the font size either up or down crazily. (monospace -> 129%; euler -> 53%). Again, when I comment out this custom `table`, the `element.style` in the HTML shows only minor font size alterations; hence, I conclude my customized table and MathJax aren't playing well together. So yes, don't try to override a MathJax font with customized css, but how to do so with MathJax itself? For example, if I want Neo-Euler I can set `org-html-mathjax-options to Neo-Euler *and/or* add #+HTML_MATHJAX: font: Neo-Euler but get no results -- which is why I tried the custom table in the first place. (BTW, org-html-mathjax-temple seems fine, ergo, I made no changes there.) By adding the buffer header I get ide: left font: Neo-Euler on the outputted page -- as an error message? I can guess the template isn't really up to snuff after all at running the MathJax javascript, but I wouldn't know how to test this idea. Any advice appreciated. LB --000000000000f6838705835c309b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm trying to get odd behav= ior in an org-mode HTML export cleared up. (See this.)=C2=A0I've got this

table {
=C2=A0 =C2=A0 font-family: monospace;
=C2=A0 = =C2=A0 /* font-family:'eulermedium_18'; */
=C2=A0 =C2=A0 = font-size: 1.05em;
=C2=A0 =C2=A0 margin-left:5%;
=C2=A0= =C2=A0 margin-right:auto;
=C2=A0 =C2=A0 margin-top:0.5em;
<= div>=C2=A0 =C2=A0 margin-bottom:0.5em;
=C2=A0 =C2=A0 line-height:= 1.5em;
=C2=A0 =C2=A0=C2=A0
}

in my custom stylesheet.css, and I've narrowed the inflated font = size issue you can see on the "Therefore exists" line down to the= `font-family: monospace;` above. So with this custom `table` and anything = inside $...$, I get a strange `element.style` thrown in the final HTML, whi= ch alters the font size either up or down crazily. (monospace -> 129%; e= uler -> 53%). Again, when I comment out this custom `table`, the `elemen= t.style` in the HTML shows only minor font size alterations; hence, I concl= ude my customized table and MathJax aren't playing well together.
=

So yes, don't try to override a MathJax font with c= ustomized css, but how to do so with MathJax itself? For example, if I want= Neo-Euler I can set `org-html-mathjax-options to Neo-Euler and/or= =C2=A0add

#+HTML_MATHJAX: font: Neo-Euler
=

but get no results -- which is why I tried the cu= stom table in the first place. (BTW, org-html-mathjax-temple seems fine, er= go, I made no changes there.) By adding the buffer header I get
<= br>
ide: left font: Neo-Euler

on the outputted page -- as an error message? I c= an guess the template isn't really up to snuff after all at running the= MathJax javascript, but I wouldn't know how to test this idea. Any adv= ice appreciated.

LB
<= /div>
--000000000000f6838705835c309b--