From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31345 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Explorer Newsgroups: gmane.text.pandoc Subject: Re: Converting html containing latex math to docx or epub Date: Fri, 9 Sep 2022 13:09:40 +0530 Message-ID: References: <0C55983B-4301-4456-9354-066A2D714B52@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c1861c05e839a691" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26126"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBC5PNSH6YMIBBSO35OMAMGQECHXXBOI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 09 09:39:58 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f63.google.com ([209.85.216.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oWYcH-0006eI-KM for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 09 Sep 2022 09:39:57 +0200 Original-Received: by mail-pj1-f63.google.com with SMTP id x1-20020a17090a8a8100b00200a805fba9sf2804059pjn.7 for ; Fri, 09 Sep 2022 00:39:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662709196; cv=pass; d=google.com; s=arc-20160816; b=B+WrfP5SFZKI/+q9A2FRrA2qjz++X0N7xlVxm6hoBu6EIjEnUiCuQGTur6eLbOt947 edSv/2ivY0NvoYaBq1vGhWZQEyGzG/bLVk/n5W1k3blDVAVz1SigqGiiBauU7ZFnXFpG t6GYvts4BuwDAD4KfY9BzVg4DWSpbgRGuCudteR9wNXj8adZ83Fkm433+JSaj4uzAuwS gR7s8arnmZgcTIRAw+bV/l6UHAyg3zPi/QpWOsiOCh+RZJ+3FW8afY0mL52dsP5xce0S aq89K1qJdovg4N26/q7nH0ukC8foitJG+h/AM3vaLuZN6KU+AJ8hJ+TWRODwGmdHPKdW oYJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=0m/qzvPyL1Vf61lB4GGb8skRxNGeubtrwoPBlL/+3t8=; b=KMJFRIuPESBX+EsN4XAdglg0PC/b+Ws/V1pdQYqR4HF8zabFJHcd5hMdTZnBcwJ0ih PseSLXzDRUCOe2a1llRJ/FEjNJ1Slg9T+JUsLfix3OoKQEdugN64BGnJBo+0CdeS8mWa TWK/dv/NLe7cUIt/CsKFqA0Ay4DlTV6S8/b1idtmkfhXjuDuN0eGb/7ZYvaRfSU+3JG/ UZ24ZmArGMolAU0tbyN9Z6OQ81+t6UYFWiMXgIX7IOJ+oNDH5K0rY0qwMB4g3Aqd/ad2 PNrWBcOvBJ4d+5+Zej40x8BKnBfVW0OArtNxRTHungW15xsFcmjtXSMiAQ7mVDrhOKIh wu1Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PASSVah8; spf=pass (google.com: domain of kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::935 as permitted sender) smtp.mailfrom=kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date; bh=0m/qzvPyL1Vf61lB4GGb8skRxNGeubtrwoPBlL/+3t8=; b=LqIt4SckHZNZj6ZhDK9sMFcWGAysJNzMA90vzuCh5BbTYFiOyAvEC0l+3HHN6a68Gw ib/skAjjRocbN676mqPRjGCSf1gGEk73BHnJWIUmfxbn9qD21niWeHWx/iS5+0o3ncra wf4W2hLV16n8jPhlMd7dATZk/bzteknvcnvD8l9u3b8igXedSVEI0Up/L985MVwFGgpv U/qJhWHghVUGSCpiyt1duF+JrEv0btl7ruN7wlf1xUt18h/bZhZQ9wEdtqNJ6vY8Z1Yj 11VhwuV+s3jnVctnlhiilyad/eWqqompgR1sy+3Q1yEataZZElF72z7N5VLcDkOLyqXY 8a7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date; bh=0m/qzvPyL1Vf61lB4GGb8skRxNGeubtrwoPBlL/+3t8=; b=fUjhjaPFodhoptQ5tByfAzh/tAGCSzHpNiSbvdAqdy3bd36YwetHQ9gYA5CqEMjNx6 JJ+q+s7jFZUsVaSNfilS/xTjPZFVFGj2Xwj2fu5aMH7WwymHXPXasid42nE+XD0HGPjF suFA0CErRa5N4JQsO6ub5YsH9qFXYbh4F5PtFw01+dPMOwY6wUqZoaCVD7yuxzc9t8yq V1x11CRNBcyI5oCr6IlKn3J01nxuWYdPvzJ0P1OdVyS5nZrsnnueUnTYhhQXIHPRh7ka tfe+206xZeJCcF8deixIgi9EzoxUU3O4OOtdUl4UK4HRkg9XzCsRZ70RChUglNI4aS2s /qVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date; bh=0m/qzvPyL1Vf61lB4GGb8skRxNGeubtrwoPBlL/+3t8=; b=1Ae7SvgfUWJkSOSpM7SE0cIDnntNap8Z35qNlTcTYNkaSn7DYevISbeLQ2oQHwGKhG M37kCiOZJcU3EGDk9y4RumXgckunpCpTJPz6cfybEBwBjMg1K2uk5EuuyEftZM9U7kK1 y6Wiv5Pg2KVJglR9NpcHgThIy6x1znOICzT6a8OuOK7mZ/7DU433Vaj6p3/57VoxL9G+ qOWAb4LTxLe1pkEVejlv4UoWsR6zwse6w2Wtd13PvVtF/6Fygji1t33PaPJDhQDvWhrs GrPQJGcjRNPZ+YfjEK3F5koSTSlTcdIMjKVSCUDagjgWeL3J1qYQ28NZcpta7/Gy0YQB Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo2Q+ocqAYwoluwckTKOwUe882nivhVC8z4IXpxxV2mPKsJXkpGj hqIGe38qA0FPk2Cdjr3O2AM= X-Google-Smtp-Source: AA6agR5+ZuLisV5lFTt+l8uFErwICIH5jj2snrKcfSM1olLeUC/BAVot4WmuJM8LOyUiSS1HtRL8Uw== X-Received: by 2002:a17:90a:70c7:b0:200:8b98:9afc with SMTP id a7-20020a17090a70c700b002008b989afcmr8351100pjm.236.1662709196371; Fri, 09 Sep 2022 00:39:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:9d03:0:b0:53e:4d42:a19f with SMTP id k3-20020aa79d03000000b0053e4d42a19fls2245663pfp.10.-pod-prod-gmail; Fri, 09 Sep 2022 00:39:53 -0700 (PDT) X-Received: by 2002:a63:1cd:0:b0:430:6b9b:df37 with SMTP id 196-20020a6301cd000000b004306b9bdf37mr11572054pgb.154.1662709192985; Fri, 09 Sep 2022 00:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662709192; cv=none; d=google.com; s=arc-20160816; b=dGkSio04/vg5g8xVcxhDlPjJIQItW+z8uyuZVhrjO+qrEJ3gzZM6hwqdSFOPw3IWSZ z5S2kqTwiRYIFAvscciILpaNynkh7r02Zmqkp1rGOKv8ciUR1jp3s6RA8z+YGkPwvgR6 DCo/bewKUubvogebQ/SqE6gh3lvNLJqdkFc//XMHVUUy03FsCC4+M4gbmkJIGDScP/xU mLrhwwPxX+fKV0IcJz9lC+oldMm5eyNC9uk9efXvfDVOGbCcyFDdYQxK4SxPaoiOQEOU YgbPHF29oHCtvybN8H9smaFFaQ6NHO+sstbrmyj/KMTdIxaOT/K7gag7qQPI1oIpy4Vl CbNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Pju7YumMWHPWJnhkpHcXWvd1XrNHdqwVbtDKJga6pFU=; b=Ze6bf7X3P9HiAW/5H+n8LRNHL+pPApLRA0BRd3dmkLBp3CBKfC3P19ZUd/2/ZF3/j/ ZrQJnluf8ZwnhZ9Ljh042zm5DP6MwvwtxEGoyCOsoGtGFy+7ePpg20lokDr1zBxWsgGH HVx6uWzQeknJ0OCUeH/M0GhP6kblrYPs73Rdz0Uyj1OWtfUoyuO03fWHmrwEsHEed+pv ltbLI0AIINx51C66zTqG7NTG3a2ADA8019LMzaQsUN3hArcV04hJi8o2vuebybddkLwO gj/dmS7455Fek1u6LnzHax4tKpZ9pVHJ1v9SP9yfBX6ElTHS0Ap7uSgdLjnr/jqI+Im5 EJWQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PASSVah8; spf=pass (google.com: domain of kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::935 as permitted sender) smtp.mailfrom=kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com. [2607:f8b0:4864:20::935]) by gmr-mx.google.com with ESMTPS id a7-20020a170902ecc700b0016bf0148e25si25627plh.9.2022.09.09.00.39.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Sep 2022 00:39:52 -0700 (PDT) Received-SPF: pass (google.com: domain of kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::935 as permitted sender) client-ip=2607:f8b0:4864:20::935; Original-Received: by mail-ua1-x935.google.com with SMTP id s5so353150uar.1 for ; Fri, 09 Sep 2022 00:39:52 -0700 (PDT) X-Received: by 2002:a05:6130:1021:b0:3a0:d2d8:a6fd with SMTP id bs33-20020a056130102100b003a0d2d8a6fdmr4403532uab.9.1662709192032; Fri, 09 Sep 2022 00:39:52 -0700 (PDT) In-Reply-To: <0C55983B-4301-4456-9354-066A2D714B52-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PASSVah8; spf=pass (google.com: domain of kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::935 as permitted sender) smtp.mailfrom=kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:31345 Archived-At: --000000000000c1861c05e839a691 Content-Type: text/plain; charset="UTF-8" Thanks a lot, this is helpful. They are being converted fine now. On Fri, Sep 9, 2022 at 10:01 AM John MacFarlane wrote: > Use -f html+tex_math_single_backslash > > That tells it to try to parse things in the form \(..\) or \[..\] as LaTeX > math. > > > > On Sep 8, 2022, at 7:15 PM, Explorer wrote: > > > > Hello > > I'm trying to convert html file containing mathematical expression in > latex using the following command: > > > > pandoc -i integrals.html -o integrals_doc.docx > > > > But the output contains latex as it is. I also tried --mathml flag, > but no luck. > > > > But if the source html file contains expression in mathml, it works fine > while converting to docx. > > > > Similarly, I want to convert it to epub containing mathml expression, > because the epub-reader we are targeting only support mathml expression. > > Any leads in this conversion from html containing latex to docx or epub > with mathml will be very helpful. > > > > Thanks in anticipation > > > > > > -- > > 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 email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN_uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com > . > > > > -- > 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 > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/0C55983B-4301-4456-9354-066A2D714B52%40gmail.com > . > -- 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 email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAOYNTAwmBQ8Z9KmKY15Jfr3R1Ts-SeXa-%3DjiLJDHOay%3DLeJoRQ%40mail.gmail.com. --000000000000c1861c05e839a691 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot, this is helpful. They are being converted fi= ne now.

On Fri, Sep 9, 2022 at 10:01 AM John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Use -f html+tex_math_single= _backslash

That tells it to try to parse things in the form \(..\) or \[..\] as LaTeX = math.


> On Sep 8, 2022, at 7:15 PM, Explorer <kumarsunil1996ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote= :
>
> Hello
>=C2=A0 =C2=A0 I'm trying to convert html file containing mathematic= al expression in latex using the following command:
>
> pandoc -i integrals.html -o integrals_doc.docx
>
>=C2=A0 =C2=A0 But the output contains latex as=C2=A0 it is. I also trie= d --mathml flag, but no luck.
>
> But if the source html file contains expression in mathml, it works fi= ne while converting to docx.
>
> Similarly, I want to convert it to epub containing mathml expression, = because the epub-reader we are targeting only support mathml expression. > Any leads in this conversion from html containing latex to docx or epu= b with mathml will be very helpful.
>
> Thanks in anticipation
>
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://= groups.google.com/d/msgid/pandoc-discuss/CAOYNTAxtO81qpu4dW--4p%3Da%3D-WBqN= _uNWV06JMO0Rt7hs67G3Q%40mail.gmail.com.
> <integrals.html><integral_doc.docx>

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/0C55983B-4301-4456-9354-066A2D714B52%40gmail.com.

--
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 view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CAOYNTAwmBQ8Z9KmKY15Jfr3R1Ts-SeXa-%3D= jiLJDHOay%3DLeJoRQ%40mail.gmail.com.
--000000000000c1861c05e839a691--