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:24:39 -0500 Message-ID: References: <58740FFD.7020100@free.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114098d4862dad0545b282ea Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQkF0-0004ae-8m for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:24:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQkEz-00046t-0V for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:24:42 -0500 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:35978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQkEy-00046c-QX for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 19:24:40 -0500 Received: by mail-oi0-x234.google.com with SMTP id u143so119875754oif.3 for ; Mon, 09 Jan 2017 16:24:40 -0800 (PST) In-Reply-To: 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 , Nick Dokos --001a114098d4862dad0545b282ea Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable org-html-with-latex is t and org-export-with-latex is also t. I don't have a org-html-format-latex, or at least nothing comes up with C-h v org-html-format-latex. Also, how does edebug work as you, Nick, described= ? On Mon, Jan 9, 2017 at 7:13 PM, Lawrence Bottorff wrote= : > This is the entirety of my header section. I'm sure there are redundancie= s > 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: type=3D"text/css"> > #+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 >> 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 picture= s >> and just use MathJax directly. I've seen this >> , but my >> setup seems to be defaulted to png picture production, not direct MathJa= x >> 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 >> >> > --001a114098d4862dad0545b282ea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
org-html-with-latex is t and=C2=A0org-export-with-latex is= also t. I don't have a=C2=A0org-html-format-latex, or at least nothing= comes up with C-h v=C2=A0org-html-format-latex. Also, how does edebug work= as you, Nick, described?

On Mon, Jan 9, 2017 at 7:13 PM, Lawrence Bottorff <borga= uf@gmail.com> wrote:
This is the entirety of my header section. I'm sure the= re are redundancies etc. But again, the clean vanilla of Emacs 25.1.1 and o= rg-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:<= /div>
#+LANGUAGE: =C2=A0en
#+INFOJS_OPT: view:showall ltoc:t = mouse:underline path:http://orgmode.org/org-info.js
#+HTML_HEAD: <l= ink rel=3D"stylesheet" href=3D"data/stylesheet.css" typ= e=3D"text/css">
#+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 LaT= eX and HTML export:
#+LATEX_HEADER: \usepackage{tikz}
#= +LaTeX_HEADER: \usepackage{pgfplots}
#+LaTeX_HEADER: \usepackage{= sansmath}
#+HTML_MATHJAX: align: left indent: 5em tagside: left f= ont: Neo-Euler
#+PROPERTY: header-args:latex+ :packages '((&q= uot;" "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: ind= ent
#+STARTUP: entitiespretty
#+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



--001a114098d4862dad0545b282ea--