From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18245 Path: news.gmane.org!.POSTED!not-for-mail From: Emma Cliffe Newsgroups: gmane.text.pandoc Subject: Re: Conversion of underbrace (to and from Word) Date: Tue, 3 Oct 2017 03:14:31 -0700 (PDT) Message-ID: <3d9489bc-eb47-465f-8096-56fe82dde46e@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11549_559591733.1507025671767" X-Trace: blaine.gmane.org 1507025694 28948 195.159.176.226 (3 Oct 2017 10:14:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 10:14:54 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDS3FLUB7EPBBCGGZXHAKGQE6TCKABY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 03 12:14:39 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f191.google.com ([209.85.217.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzKDc-0006NS-Te for gtp-pandoc-discuss@m.gmane.org; Tue, 03 Oct 2017 12:14:29 +0200 Original-Received: by mail-ua0-f191.google.com with SMTP id d45sf2394700uag.21 for ; Tue, 03 Oct 2017 03:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=7IuYgU6GP9P3/SszD60EdgMuc8L+7Pu+B2LMOii9+FA=; b=gXNyvpx+pBcj/M8VOf0292j/RXgiLAwBEepkhNCbspTufoaoHKLr+a0K29enoY36A9 m6oBcpQvbBWPS/8jJ7/XSRxR9gUa4JxiEFqRVtYY7Hugcfwz6UUV04UKtNMQ33hFxGMc hfScpcVS/OSUtMiasSP9gwk7uk215AN50TwbTttG0sfnFQoQKiGIXvUwUO+wDP1qjdrh uRiYX5pEP9JELLU2/Oh2/31eswceePQPXPN3Glna9ENLwYCI/aHT9M51ra7aud3oop7i Xw68xQM3hkWPEXIkT1JQuw+4HcikoeA7idpZBnSlLv5iWvtvvDYNe+cArOwBJ9zbZ6In VZJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=7IuYgU6GP9P3/SszD60EdgMuc8L+7Pu+B2LMOii9+FA=; b=kOj0P3ZcFDgdsSrYqIIRuZ8Xu7OiA+i6vtKbM0g7UXaKSLxdrS3J5O1dZp7lZvNCYr cWzD2A7M1Ha98zRRetRmLEY+L/NiYaVRuPOwEt8cDIm+mF6QzCPCFSkJ6sURlRSSoev7 GKiTj6vTbtGmqa0DvlU3PNzUVauZZkQU9OD4RDeiiKAqZ90H7HxGVBLlcUmfw6dny+Vg wBlxzK5aHmCq8mG3yQ9gzjmK5q0DD+H8FdoTveMBfUaZLojraFnpY0TD3FN1H4aiHwAr s7vyL8BlilnQyOnviNJYvLjiSek6YmMkCbJXrDYVhXv2qxHOu+9kQCdqZcYag4ks+QEl 8rLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=7IuYgU6GP9P3/SszD60EdgMuc8L+7Pu+B2LMOii9+FA=; b=HMNp8yzfa19NfXLtTzCWvqdGksnGmG4Sfg+w+/J+bAdnnxMsW0rpTrnTlg5fQzQz6Q UXWYJQ3Pb94alfVxl3hJEUqYarjWiq69Nx4tDtKNNz44miwEeRzcgpPVrmp6onx4+tDs wyXvw2f/7aW0tfIe1w7PLxO0Y+vFDCdbYzqYJRA1nplTVfuXcoQUu+EhgmImSjDKNlRq lWB3FEON0jcQpXk9y8ehrY6yCKJB1INo6jBqn0mf+K9wT1rjIczueNCOQekWTxeXocll oXCAIJX9IAM+Npt2hhqJFH6D/guKtW10qTzruOd5d4ovlFlQaQmodGnokA+VYDOFl73z DH0w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaWNX8JKUQMPlEMNuOMdH3V59J5i1hMki890ZYw0L7QP4rTBrSYN rZ+yGoEHESGC3hhlvpADQAA= X-Google-Smtp-Source: AOwi7QDeWNWK/WmZm91H8EQh8JtYW88dpKD3LfK8bcsKTCzKyhic2EjBro06FizqsY+juZIYQTzd0A== X-Received: by 10.157.1.201 with SMTP id e67mr4479ote.23.1507025673353; Tue, 03 Oct 2017 03:14:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.202.172.143 with SMTP id v137ls3609598oie.0.gmail; Tue, 03 Oct 2017 03:14:32 -0700 (PDT) X-Received: by 10.157.82.91 with SMTP id q27mr209237otg.15.1507025672422; Tue, 03 Oct 2017 03:14:32 -0700 (PDT) In-Reply-To: X-Original-Sender: E.H.Cliffe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18245 Archived-At: ------=_Part_11549_559591733.1507025671767 Content-Type: multipart/alternative; boundary="----=_Part_11550_611824056.1507025671767" ------=_Part_11550_611824056.1507025671767 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable And, in case it is useful, the MathML: =20 x x x x x =20 n This is rendered correctly by MathJax and by Firefox native rendering. If I= =20 transform that using pandoc to LaTeX, for instance, I get: \[\underset{n}{\underset{\}\ }{xxx\ldots xx}}\] This renders in the same unexpected manner as the Word rendering when going= =20 the other way.=20 Thanks, Emma On Tuesday, 3 October 2017 10:36:44 UTC+1, Emma Cliffe wrote: > > > Morning, > > I am having trouble getting pandoc to convert underbrace either into Word= =20 > or out of Word. I wondered if there is either something I am doing wrong,= =20 > whether this is a known problem (I can't find a report) or if there is a= =20 > work round for converting into Word.=20 > > If I try to convert: > \[ > \underbrace{xxx\ldots xx}_n > \] > for instance then what I get in Word (linear format) is: > ((xxx=E2=80=A6xx)=E2=94=AC=E2=8F=9F)=E2=94=ACn > which does not render as a stretched underbrace. > > I would expect to get: > =E2=8F=9F(xxx=E2=80=A6xx)=E2=94=ACn > which is typed directly into Word as \underbrace(xxx\ldots xx)_n (then=20 > space to trigger). You get the same linear interpretation if you use the= =20 > mouse to create the structure. > > The above is the direction I am interested in. I am actually converting= =20 > from MathML and see the same behaviour as in the cut down test of md or t= ex=20 > to docx I have explained above.=20 > > For completeness I tried to convert in the other direction. Starting from= =20 > the above structure in Word I end up with: > \[\underset{n}{}\] > which has not only lost the xxx...xx but underbrace has become underset= =20 > which is not the same thing.=20 > > Does anyone know anything more about this?=20 > > Many thanks, > Emma > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/3d9489bc-eb47-465f-8096-56fe82dde46e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_11550_611824056.1507025671767 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

And, in case it is useful, the MathML:
<math xml= ns=3D"http://www.w3.org/1998/Math/MathML" display=3D"block&q= uot;>
=C2=A0 <mrow>
=C2=A0=C2=A0=C2=A0 <munder class=3D&q= uot;msub">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <mrow>
=C2=A0= =C2=A0=C2=A0 <munder accentunder=3D"false">
=C2=A0=C2=A0= =C2=A0 =C2=A0 <mrow>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mi= >x</mi>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mi>x</m= i>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mi>x</mi>
= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mo class=3D"MathClass-op&quo= t;>&#x2026;</mo>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <= mi>x</mi>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mi>x<= /mi>
=C2=A0=C2=A0=C2=A0 =C2=A0 </mrow>
=C2=A0=C2=A0=C2=A0 = =C2=A0 <mo>&#xFE38;</mo>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = </munder>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </mrow>
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 <mrow>
=C2=A0=C2=A0=C2=A0 <mi>n<= /mi>
=C2=A0=C2=A0=C2=A0 </mrow>
=C2=A0=C2=A0=C2=A0 </mund= er>
=C2=A0 </mrow>
</math>

This is rendered cor= rectly by MathJax and by Firefox native rendering. If I transform that usin= g pandoc to LaTeX, for instance, I get:
\[\underset{n}{\underset{\}\ }{x= xx\ldots xx}}\]
This renders in the same unexpected manner as the Word r= endering when going the other way.

Thanks,
Emma

On Tuesda= y, 3 October 2017 10:36:44 UTC+1, Emma Cliffe wrote:

Morning,

I am having tro= uble getting pandoc to convert underbrace either into Word or out of Word. = I wondered if there is either something I am doing wrong, whether this is a= known problem (I can't find a report) or if there is a work round for = converting into Word.

If I try to convert:
\[
\underbrace{xxx= \ldots xx}_n
\]
for instance then what I get in Word (linear format) = is:
((xxx=E2=80=A6xx)=E2=94=AC=E2=8F=9F)=E2=94=ACn
which does not ren= der as a stretched underbrace.

I would expect to get:
=E2=8F=9F(x= xx=E2=80=A6xx)=E2=94=ACn
which is typed directly into Word as \underbrac= e(xxx\ldots xx)_n (then space to trigger). You get the same linear interpre= tation if you use the mouse to create the structure.

The above is th= e direction I am interested in. I am actually converting from MathML and se= e the same behaviour as in the cut down test of md or tex to docx I have ex= plained above.

For completeness I tried to convert in the other dir= ection. Starting from the above structure in Word I end up with:
\[\unde= rset{n}{}\]
which has not only lost the xxx...xx but underbrace has beco= me underset which is not the same thing.

Does anyone know anything = more about this?

Many thanks,
Emma

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/3d9489bc-eb47-465f-8096-56fe82dde46e%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_11550_611824056.1507025671767-- ------=_Part_11549_559591733.1507025671767--