From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Justifying a formula Date: Tue, 7 Mar 2017 15:20:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143f27c1003fe054a29bd19 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clLaf-0003sp-4B for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 15:20:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clLae-0005JG-6L for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 15:20:13 -0500 Received: from mail-ot0-x22b.google.com ([2607:f8b0:4003:c0f::22b]:35568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1clLae-0005Hd-17 for emacs-orgmode@gnu.org; Tue, 07 Mar 2017 15:20:12 -0500 Received: by mail-ot0-x22b.google.com with SMTP id x37so16458513ota.2 for ; Tue, 07 Mar 2017 12:20:10 -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 --001a1143f27c1003fe054a29bd19 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here's what I have in a buffer: * This basic pseudo-code tells of an internally-defined variable that holds, /accumulates/ as the recursion drills down: \begin{align*} sumprod(x) \equiv if \; eq(x,NIL) \; then \; 2.list(s,p) \\ else \\ \{let \; z =3D sumprod(cdr(x)) \\ 2.list(car(z) + car(x), car(cdr(z) \cdot car(x))\} \end{align*} which produces this as HTML: sumprod(x) =E2=89=A1 if eq(x,NIL) then 2.list(s,p) else {let z =3D sumprod(cdr(x)) 2.list(car(z) + car(x), car(cdr(z) =E2=8B=85 car(x))} which seems to be right justified. How can I get normal left justification? BTW, #+HTML_MATHJAX: align: left indent: 5em tagside: left font: Neo-Euler seems to be ignored. Latex seems to have \usepackage[fleqn]{amsmath} but I'm assuming org-mode HTML export doesn't really use this. (Actually, Latex export ignores #+LaTeX_HEADER: \usepackage{mathtools} #+LaTeX_HEADER: \usepackage[fleqn]{mathtools} as well.) Latest, greatest everything. LB --001a1143f27c1003fe054a29bd19 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's what I have in a buffer:

* This basic pseudo-code tells of an internally-defined variable th= at holds, /accumulates/ as the recursion drills down:

<= div>\begin{align*}
sumprod(x) \equiv if \; eq(x,NIL) \; then \; 2= .list(s,p) \\
=C2=A0else \\
=C2=A0 \{let \; z =3D sumpr= od(cdr(x)) \\
=C2=A0 =C2=A0 2.list(car(z) + car(x), car(cdr(z) \c= dot car(x))\}
\end{align*}

which produce= s this as HTML:

sumprod(x) =E2=89=A1 if eq(x,= NIL) then 2.list(s,p)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{let z =3D sumprod(cdr(x))
= =C2=A02.list(car(z) + car(x), car(cdr(z) =E2=8B=85 car(x))}

<= /div>
which seems to be right justified. How can I get normal left just= ification?

BTW,

#+HTML_MA= THJAX: align: left indent: 5em tagside: left font: Neo-Euler
=
seems to be ignored. Latex seems to have

\usepackage[fleqn]{amsmath}

but I'm = assuming org-mode HTML export doesn't really use this. (Actually, Latex= export ignores

#+LaTeX_HEADER: \usepackage{m= athtools}
#+LaTeX_HEADER: \usepackage[fleqn]{mathtools}

as well.)

Latest, greatest e= verything.

LB


<= div>=C2=A0
--001a1143f27c1003fe054a29bd19--