From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: Strange latex symbol behavior on html export Date: Wed, 13 Sep 2017 20:44:03 -0400 Message-ID: References: <877ex2px4t.fsf@nicolasgoaziou.fr> <87poau1a5l.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c0876a2bc162c05591b928e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsIGE-0002r5-VC for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 20:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsIGD-0003k0-MV for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 20:44:07 -0400 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:45049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsIGD-0003jb-Ez for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 20:44:05 -0400 Received: by mail-yw0-x22b.google.com with SMTP id r85so4128399ywg.1 for ; Wed, 13 Sep 2017 17:44:05 -0700 (PDT) In-Reply-To: <87poau1a5l.fsf@alphaville.usersys.redhat.com> 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" Cc: emacs-orgmode Mailinglist --94eb2c0876a2bc162c05591b928e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable #+options: tex:dvipng is not good because it turns all your latex symbol markup into images, which are inserted into the web page as images, i.e., it's not doing MathJax. Also bad because they don't really fit the text lines, either. I use # this makes MathJax work #+OPTIONS: tex:t I just now found this caption weirdness because I started a new .org file with no latex symbol markup besides in the caption. Quite bizarre that when my file sees other latex symbols, the caption symbols then render correctly. BTW: What does executing Scheme code block (square)... =3D> # org-babel-script-escape: =E2=80=98org-babel-script-escape=E2=80=99 expects = a string mean? I'm suddenly getting this in an org file which has scheme babel code blocks, images, and lots of latex symbol markup. It first popped up when I tried to C-c C-c a scheme code block. On Wed, Sep 13, 2017 at 6:55 PM, Nick Dokos wrote: > Nicolas Goaziou writes: > > > Hello, > > > > Lawrence Bottorff writes: > > > >> Consider this markup: > >> > >> ------------ > >> * MATHEMATICS AUXILIARY > >> > >> ** deriving sines and cosines > >> > >> #+caption: Right triangle with two $\pi\big/4$ angles. > >> [[file:images/45-45-triangle.png]] > >> > >> $\big/$ > >> ------------ > >> > >> If I remove the second $\big/$, the first latex, $\pi\big/4$, in the > >> caption will not properly render on export to html. Include it and bot= h > >> render just fine. Without the second, the first looks like this: > >> > >> Figure 1: Right triangle with two \(\pi\big/4\) angles. > >> > >> Is this a bug? > > > > If you use > > > > #+options: tex:dvipng > > > > the symbol in the caption is correctly rendered. It may be a bug in > Mathjax. > > > > I looked at the diff between html files produced with and without the > $\big/$ addition. > The one without does not include any of the mathjax configuration code at > all. Is that > code included conditionally perhaps when a latex construct is seen? Maybe > the latex construct > in the caption does not trigger the inclusion? > > -- > Nick > > > --94eb2c0876a2bc162c05591b928e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
#+options: tex:dvipng is not good because it turns al= l your latex symbol markup into images, which are inserted into the web pag= e as images, i.e., it's not doing MathJax. Also bad because they don= 9;t really fit the text lines, either. I use

= # this makes MathJax work
#+OPTIONS: tex:t

I just now found this caption weirdness because I started a new .o= rg file with no latex symbol markup besides in the caption. Quite bizarre t= hat when my file sees other latex symbols, the caption symbols then render = correctly.=C2=A0

BTW: What does
executing Scheme code block (square)...
=3D> = #<void>
org-babel-script-escape: =E2=80=98org-babel-script-= escape=E2=80=99 expects a string

mean? = I'm suddenly getting this in an org file which has scheme babel code bl= ocks, images, and lots of latex symbol markup. It first popped up when I tr= ied to C-c C-c a scheme code block.






On Wed, Sep 13, 2017 at 6:55 PM, = Nick Dokos <ndokos@gmail.com> wrote:
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Lawrence Bottorff <borgauf@gma= il.com> writes:
>
>> Consider this markup:
>>
>> ------------
>> * MATHEMATICS AUXILIARY
>>
>> ** deriving sines and cosines
>>
>> #+caption: Right triangle with two $\pi\big/4$ angles.
>> [[file:images/45-45-triangle.png]]
>>
>> $\big/$
>> ------------
>>
>> If I remove the second $\big/$, the first latex, $\pi\big/4$, in t= he
>> caption will not properly render on export to html. Include it and= both
>> render just fine. Without the second, the first looks like this: >>
>> Figure 1: Right triangle with two \(\pi\big/4\) angles.
>>
>> Is this a bug?
>
> If you use
>
>=C2=A0 =C2=A0#+options: tex:dvipng
>
> the symbol in the caption is correctly rendered. It may be a bug in Ma= thjax.
>

I looked at the diff between html files produced with and without th= e $\big/$ addition.
The one without does not include any of the mathjax configuration code at a= ll. Is that
code included conditionally perhaps when a latex construct is seen? Maybe t= he latex construct
in the caption does not trigger the inclusion?

--
Nick



--94eb2c0876a2bc162c05591b928e--