From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104737 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Atsuhito Kohda Newsgroups: gmane.comp.tex.context Subject: XML/HTML output of Math Date: Thu, 8 Aug 2019 08:06:08 +0900 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1295671880525706717==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="209026"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 08 01:06:50 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hvV17-000sET-P4 for gctc-ntg-context-518@m.gmane.org; Thu, 08 Aug 2019 01:06:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 29A9415311B; Thu, 8 Aug 2019 01:06:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZMsAkUjdUd8u; Thu, 8 Aug 2019 01:06:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F71815311F; Thu, 8 Aug 2019 01:06:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6981B153118 for ; Thu, 8 Aug 2019 01:06:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9laGcxUrOwnA for ; Thu, 8 Aug 2019 01:06:21 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.54; helo=mail-ot1-f54.google.com; envelope-from=atsu10.kohda@gmail.com; receiver= Original-Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9084D152E9D for ; Thu, 8 Aug 2019 01:06:21 +0200 (CEST) Original-Received: by mail-ot1-f54.google.com with SMTP id x21so17761646otq.12 for ; Wed, 07 Aug 2019 16:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EuQmbsKTCKapnFfRnBdbraGJCkbNogwUPaBtN+1RLuE=; b=hvusld4A/9MguP3bfYqmU51wnl4I1ldDcR1A/1yZiAZp3F9Obd5ENepW5uBL8mVSFO aUEgU8aCywQ+73p7UNeFB0JN/cAogRBc4t4MFG0/fFNb4qQ0a4U3QJmVXYwomhUzt4N3 uRK6piskHeZZk7X0SEovmTuziYpmFSi521TCVKCpU4F+lHzXY8SbhO25s33toanHzIOT Q9C3ss4UyZQ/sJUylHez2S8lBPM1gnnMM6fJxC0zuJVUHcTtYxvpM8/I/5FFR/le7LfS bnYjAeT6xXw0XkFWjCANv/bspWvTYxwyq4Edz1fACKuTUEKztH2rc8HiV1Q2AGDLZNfP OQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EuQmbsKTCKapnFfRnBdbraGJCkbNogwUPaBtN+1RLuE=; b=QMTL8U6DFYUHMG4b7ney3XhCp13kNoxT/KfpfneQ4RWJ+Msl763woc1Jtxjdz+eB8J u1J6bpmpIwkEkqigb29BhQoHaBIEic9lekQSkpPC9FJ1sl1OcQ5R1xmQZjyZaqPCkp+a c4dIzvl4CecHsnSAUPU6Y4zmHK3Vzs89qATBOynC1JVTkdt3RTDWZEjCK0mQ6CakoHdP 6pZnJ5Tpp3JsojBkGKftz1Pez0/bcm65jCxV/9ORNmAPUlWObUT/IieG0K2GQVLrbLmh MiptaJRy3JFtOHX918Mx65pBCdLVj08yJ5Fu2HU4BDmU4ILVFCmBhlsiUlLsDL2tjhnV Whgw== X-Gm-Message-State: APjAAAWlAdExlzHWa2rlVGiHjslWBz7mZuuXWQZDPHVdUbrNFQrOgimt QHCMnlmYzG48/nQku15KRMTjnre+TIpiHhveg6vO3m4n X-Google-Smtp-Source: APXvYqxNYL9/O1NvPlLDdmuZ28Cl1VW6rJ2xagUSVJI/OpTu59rj3C5OfvkDONs4PIHlxksWpoDQQNdZy3+OklKOIf8= X-Received: by 2002:a05:6830:148c:: with SMTP id s12mr10382762otq.274.1565219179467; Wed, 07 Aug 2019 16:06:19 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104737 Archived-At: --===============1295671880525706717== Content-Type: multipart/alternative; boundary="000000000000301642058f8efd95" --000000000000301642058f8efd95 Content-Type: text/plain; charset="UTF-8" Hi all, I used to compile a beamer file with LuaLaTeX to generate a PDF for presentation then convert the beamer file to XHTML with LaTeXML for Web page. Recently I begin to use ConTeXt so I try to get a PDF for presentation and also XML/HTML output from a single ConTeXt file. I have a few questions about XML/HTML output of Math. 1. In case inline math mode with \displaystyle, we get wrong output of "\int_a^b"; lower limit and upper limit are interchanged and further "b" is a bit larger and an integral symbol is rather small. (It looks "\displaystyle" is not effective, e.g see "\frac".) In case display math mode, we get very weird output of "\int_a^b". It is difficult to explain how weird it is but something like an output of "b_{\int}^a". Please check an attatched sample. We get the similar kind of weird output of "\sum_{n=0}^{\infty}". Due to these, it is impossible to use XML/HTML output of ConTeXt in real use. 2. \math{\Vmatrix{\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \vI, \vj, \vk are disappeared in xml/html output. What happend? BTW, if we put "a" (or any alphabet?) in fron of \vI, then we get every elements (but of course we get unnecessary "a" also). ------------- bSample \setupbackend[export=yes] \definemathmatrix[vmatrix][matrix:bars] [simplecommand=Vmatrix] \define[1]\vsym{\text{\math{\bi #1}}} \define\vI{\vsym{i}} % \define\vi{\vsym{i}} \define\vj{\vsym{j}} \define\vk{\vsym{k}} \starttext A simple math. \m{y=\sin x}, \m{\displaystyle y=\frac{\log x}{x}}, \m{\mathbf{A+B=C}}, \m{\mathbb{R}}, \m{\mathfrak{A}}, \m{\mathcal{S}}, A bit complex math. \m{\displaystyle\int_{a}^{b}x\sin x\,dx=-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx} \startformula \int_{a}^{b}x\sin x\,dx=-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx \stopformula \m{\displaystyle\sum_{n=0}^{\infty}\frac{x^n}{n!}} \startformula \sum_{n=0}^{\infty}\frac{x^n}{n!} \stopformula \math{\Vmatrix{\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \math{\Vmatrix{a\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \stoptext ------------- eSample Thanks in advance. Best regards, Atsuhito Kohda --000000000000301642058f8efd95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
I used to compile a beamer file with LuaLaTeX t= o generate a PDF
for presentation then convert the beamer file to XHTML = with LaTeXML
for Web page.
Recently I begin to use ConTeXt so I try t= o get a PDF for presentation
and also XML/HTML output from a single ConT= eXt file.
I have a few questions about XML/HTML output of Math.

1= . In case inline math mode with \displaystyle, we get wrong output
of &q= uot;\int_a^b"; lower limit and upper limit are interchanged
and fu= rther "b" is a bit larger and an integral symbol is rather small.=
(It looks "\displaystyle" is not effective, e.g see "\fr= ac".)

In case display math mode, we get very weird output of &q= uot;\int_a^b".
It is difficult to explain how weird it is but somet= hing like
an output of "b_{\int}^a". Please check an attatched= sample.
We get the similar kind of weird output of "\sum_{n=3D0}^{= \infty}".
Due to these, it is impossible to use XML/HTML output of = ConTeXt
in real use.

2. \math{\Vmatrix{\vI, \vj, \vk; a_{1}, a_{2= }, a_{3}; b_{1}, b_{2}, b_{3}}}
\vI, \vj, \vk are disappeared in xml/htm= l output.=C2=A0 What happend?
BTW, if we put "a" (or any alpha= bet?) in fron of \vI, then
we get every elements (but of course we get u= nnecessary "a" also).
------------- bSample
\setupbackend[e= xport=3Dyes]
\definemathmatrix[vmatrix][matrix:bars]
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[simplecommand=3DVmatrix]\define[1]\vsym{\text{\math{\bi #1}}}
\define\vI{\vsym{i}}
% \defin= e\vi{\vsym{i}}
\define\vj{\vsym{j}}
\define\vk{\vsym{k}}
\starttex= t
A simple math. \m{y=3D\sin x}, \m{\displaystyle y=3D\frac{\log x}{x}},=

\m{\mathbf{A+B=3DC}}, \m{\mathbb{R}}, \m{\mathfrak{A}}, \m{\mathcal= {S}},

A bit complex math.
\m{\displaystyle\int_{a}^{b}x\sin x\,dx= =3D-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx}
\startformula
=C2=A0 \i= nt_{a}^{b}x\sin x\,dx=3D-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx
\stopf= ormula
\m{\displaystyle\sum_{n=3D0}^{\infty}\frac{x^n}{n!}}
\startfor= mula
\sum_{n=3D0}^{\infty}\frac{x^n}{n!}
\stopformula
\math{\Vmatr= ix{\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}}
\math{\Vmat= rix{a\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}}
\stoptext=
------------- eSample

Thanks in advance.
Best regards,
Ats= uhito Kohda
--000000000000301642058f8efd95-- --===============1295671880525706717== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1295671880525706717==--