From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: HTML export for math markup Date: Mon, 9 Jan 2017 19:13:57 -0500 Message-ID: References: <58740FFD.7020100@free.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114147c8459ea40545b25ccb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQk4e-0002Lw-Fp for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:14:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQk4d-0001Aa-0f for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:14:00 -0500 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:33099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQk4c-0001AN-QZ for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:13:58 -0500 Received: by mail-oi0-x234.google.com with SMTP id w204so30327131oiw.0 for ; Mon, 09 Jan 2017 16:13:58 -0800 (PST) In-Reply-To: <58740FFD.7020100@free.fr> 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: Thierry Banel Cc: emacs-orgmode Mailinglist --001a114147c8459ea40545b25ccb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is the entirety of my header section. I'm sure there are redundancies etc. But again, the clean vanilla of Emacs 25.1.1 and org-mode 9.0.2 is defaulting to producing png's. #+TITLE: \zwnj^{147}Pm SAGA #+AUTHOR: 147Pm #+EMAIL: borgauf@sdf.org # date ... will set (change) each time (if remembered) #+DATE: <2015-05-09 Sat 07:53> #+FILETAGS: :CompleteReWrite: #+LANGUAGE: en #+INFOJS_OPT: view:showall ltoc:t mouse:underline path: http://orgmode.org/org-info.js #+HTML_HEAD: #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+OPTIONS: H:10 num:4 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} prop:t #+OPTIONS: prop:t #+OPTIONS: tex:imagemagick #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] # Setup tikz package for both LaTeX and HTML export: #+LATEX_HEADER: \usepackage{tikz} #+LaTeX_HEADER: \usepackage{pgfplots} #+LaTeX_HEADER: \usepackage{sansmath} #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler #+PROPERTY: header-args:latex+ :packages '(("" "tikz")) # #+PROPERTY: header-args:latex+ :imagemagick (by-backend (latex nil) (t "yes")) #+PROPERTY: header-args:latex+ :exports results :fit yes # #+STARTUP: showall #+STARTUP: align #+STARTUP: indent #+STARTUP: entitiespretty #+STARTUP: logdrawer On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel wrote: > Le 09/01/2017 16:28, Lawrence Bottorff a =C3=A9crit : > > I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I expor= t > this to HTML, it produces png files for each markup and puts them in a > subfolder ltximg. Is there any way to skip this translating to pictures a= nd > just use MathJax directly. I've seen this > , but my > setup seems to be defaulted to png picture production, not direct MathJax > rendering via "http://cdn.mathjax.org/mathjax/latest/MathJax.js? > config=3DTeX-AMS_HTML. I understand that what's happening is this > , but > that's not MathJax. What am I doing (thinking) wrong? > > LB > > > I use > #+HTML_MATHJAX: align: left etc... > Works well. > > Then you can control appearance through CSS. For instance: > .MathJax_Display { > color: #080; > margin: 0; > } > > Have fun > > --001a114147c8459ea40545b25ccb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is the entirety of my header section. I'm su= re there are redundancies etc. But again, the clean vanilla of Emacs 25.1.1= and org-mode 9.0.2 is defaulting to producing png's.

#+TITLE: \zwnj^{147}Pm SAGA
#+AUTHOR: 147Pm
#+E= MAIL: borgauf@sdf.org
# da= te ... will set (change) each time (if remembered)
#+DATE: <20= 15-05-09 Sat 07:53>
#+FILETAGS: :CompleteReWrite:
#+= LANGUAGE: =C2=A0en
#+INFOJS_OPT: view:showall ltoc:t mouse:underl= ine path:http://orgmode.org/org-= info.js
#+HTML_HEAD: <link rel=3D"stylesheet" hr= ef=3D"data/stylesheet.css" type=3D"text/css">
<= div>#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport<= /div>
#+OPTIONS: H:10 num:4 toc:nil \n:nil @:t ::t |:t _:{} *:t ^:{} pr= op:t
#+OPTIONS: prop:t
#+OPTIONS: tex:imagemagick
=
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [american]
# Setup tikz package for both LaTeX and HTML export:
#+LAT= EX_HEADER: \usepackage{tikz}
#+LaTeX_HEADER: \usepackage{pgfplots= }
#+LaTeX_HEADER: \usepackage{sansmath}
#+HTML_MATHJAX:= align: left indent: 5em tagside: left font: Neo-Euler
#+PROPERTY= : header-args:latex+ :packages '(("" "tikz"))
=
#
#+PROPERTY: header-args:latex+ :imagemagick (by-backend (l= atex nil) (t "yes"))
#+PROPERTY: header-args:latex+ :ex= ports results :fit yes
#
#+STARTUP: showall
#= +STARTUP: align
#+STARTUP: indent
#+STARTUP: entitiespr= etty
#+STARTUP: logdrawer
<= br>
On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel= <tbanelwebmin@free.fr> wrote:
=20 =20 =20
Le 09/01/2017 16:28= , Lawrence Bottorff a =C3=A9crit=C2=A0:
I've got an org file with Latex math markup, e.g= . $x_2/y^3$. When I export this to HTML, it produces png files for each markup and puts them in a subfolder ltximg. Is there any way to skip this translating to pictures and just use MathJax directly. I've seen=C2=A0this, but my setup seems to be defaulted to png picture production, not direct MathJax rendering via=C2=A0"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=3DTeX-= AMS_HTML. I understand that what's happening is this, but that's not MathJax.=C2=A0What am I doing (thinking) wrong?

LB

I use
#+HTML_MATHJAX: align: left etc...
Works well.

Then you can control appearance through CSS. For instance:
.MathJax_Display {
=C2=A0=C2=A0=C2=A0 color: #080;
=C2=A0 =C2=A0 margin: 0;
}

Have fun


--001a114147c8459ea40545b25ccb--