From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33028 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Kelleher Newsgroups: gmane.text.pandoc Subject: Re: Pandoc-Latex-Environment to docx does not work Date: Fri, 4 Aug 2023 07:36:10 -0700 (PDT) Message-ID: <87d4342c-ecd0-4ff2-9323-e124280b8da7n@googlegroups.com> References: <75bf54f4-42e5-4f7e-954b-87a69d8d9057n@googlegroups.com> <6893cb2b-681e-4ed8-ae92-b4ce13dd4d4an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_17158_602568711.1691159770438" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35675"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYKNHHAVIJBBW4ZWSTAMGQEENYJZFY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 04 16:36:14 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f58.google.com ([209.85.160.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qRvuY-00094T-SD for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Aug 2023 16:36:14 +0200 Original-Received: by mail-oa1-f58.google.com with SMTP id 586e51a60fabf-1bb445ef8d7sf3114180fac.3 for ; Fri, 04 Aug 2023 07:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691159773; x=1691764573; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=IDmVsOeeeYLzc5pq90OVwYAfwiWKuOVlKwa7P2Dxtvk=; b=i8FbJ63Oa9FCAFrrzQs20tqzb3EKCpqckefgVSGbW4FOqoXab0gUOrFN+zxyf5mxb+ cgFCrHFzCysZ+4s35ahuSTv3t1STUw/r6Gkl2jaA2RwwLyLEk2e/ZWHzjMVyPnb4HeUJ zqzflvMt/IWod6hhc5aUbqPBZLuX2rqXlsZylnEJ0ejO8sGO8WAlR9+azL8o4yfWA0N4 PwQgZeyc/5IqC4idnNJHzSy6JjVVyUhlp6mZvstlisjDFTTITrfndIPx5FVQJ97aCWH7 zlyUd4Y3bAi4VfuMxwwq/EH/VIsvR+IVxfr6VzfZlncIgwHB7tResd1iJ+AplPvI5Hy/ XuHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulkelleher-net.20221208.gappssmtp.com; s=20221208; t=1691159773; x=1691764573; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=IDmVsOeeeYLzc5pq90OVwYAfwiWKuOVlKwa7P2Dxtvk=; b=YsBpD/6tNzLoD+cBpjj0dugL2g51La0RNAzP5LiFnWaWHculdk09jxvXIUHsIp5OmK 0XZZJjlj5lyA7iU/noPjaAsSKYb+uuVesb50avnK1jUu0mY7b71XStPhqj0pv35oUuLj /mV/RvOWibnK97TLr8DoPPlrV2TeQnx4Y8HsuYiHfgeojKSU63I62Ecz8vnv3uogVjm8 A1GnREL2IoxHglzoL1GnANLrXZ94wgAGLDx2rLiEBZtjhCSreYGHHUPuTpyMICJq8nUt 1jPyQ6a8bADNSDDZnE7Yiunu764dknm2X27J6ckAoAR2UjLnmUXu5EuPNW+9feBrXPoA 2nGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691159774; x=1691764574; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=IDmVsOeeeYLzc5pq90OVwYAfwiWKuOVlKwa7P2Dxtvk=; b=Y+sGVXCMAHiGq1/BDo3JuhkhDwlj0FqYkOv/WMOEJ5AYYAObvQID0/Yy1ZBuXTDREq l46fYj8uwzpEgrVPEJUVHZ8wx3oZ8aZYMpoLpAszr+DF8tpieziN4gEbQ2Kxv+xI4hFt MiP08tGFF9e7ygvBA0USVri9Yd5NvZP+FILeM39fizLNg06jRbGh3InCWhTSqVFnVsXW LBKBbiplDdDgRrMqsAjM4+eRe0vB/VH8H8RhCMGY75d5A9kBCGVI3Q0Nv/4zg2wEje+x XainPxdQiLhgn1rNkCAc2MvgIyr1TWseRUMhF/jVCQigTjT+np Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yw7r79u6I7w/8GdKN8zBKXsGIrjPBMZWZksGrOcf7cYGLyyIw15 eMs1/H4c0/XBP6OlTxXRS1c= X-Google-Smtp-Source: AGHT+IFYAHLB7uhKTs850JTIHixhGwJ2AMEKUmfax+dZEEnNMb5JtZqFuIZX5j+GIpP2iFjazS68tQ== X-Received: by 2002:a05:6870:a453:b0:1b0:5290:c95e with SMTP id n19-20020a056870a45300b001b05290c95emr2187418oal.42.1691159773788; Fri, 04 Aug 2023 07:36:13 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:d251:b0:1bb:b22e:a027 with SMTP id h17-20020a056870d25100b001bbb22ea027ls129890oac.2.-pod-prod-05-us; Fri, 04 Aug 2023 07:36:11 -0700 (PDT) X-Received: by 2002:a9d:6e83:0:b0:6b9:91bb:e49e with SMTP id a3-20020a9d6e83000000b006b991bbe49emr1700721otr.7.1691159770909; Fri, 04 Aug 2023 07:36:10 -0700 (PDT) In-Reply-To: <6893cb2b-681e-4ed8-ae92-b4ce13dd4d4an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: paul-JZTKsBFbLNkkm2bSNb+QWw@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.io gmane.text.pandoc:33028 Archived-At: ------=_Part_17158_602568711.1691159770438 Content-Type: multipart/alternative; boundary="----=_Part_17159_1449895278.1691159770438" ------=_Part_17159_1449895278.1691159770438 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oops, except: I'm not sure how best to handle the desired {.definition}=20 environment when converting to docx. I suspect you'll have to set up a=20 style in a reference docx file. Look for "--reference-doc=3D" here=20 for=20 more about that.=20 On Friday, August 4, 2023 at 9:33:19=E2=80=AFAM UTC-5 Paul Kelleher wrote: > Omit the "pandoc-latex-environment" arguments in the YAML and I think the= =20 > conversion to docx should work just fine. For cross-referencing equations= I=20 > highly recommend the pandoc-crossref filter.=20 > > On Friday, August 4, 2023 at 9:20:31=E2=80=AFAM UTC-5 Christophe Demko wr= ote: > >> Hi, I'm the creator of the pandoc-latex-environment. This filter is for= =20 >> pdf output using LaTeX (or beamer). For docx, you have to use another wa= y. >> >> Le vendredi 4 ao=C3=BBt 2023 =C3=A0 13:34:46 UTC+2, Enrico Mattia Saloni= a a =C3=A9crit : >> >>> When converting markdown to docx latex environments disappear and only= =20 >>> the text inside them is retained. Conversion from markdown to pdf works= =20 >>> fine. >>> >>> I am using --filter pandoc-latex-environment. The following is an=20 >>> extract of the .md >>> >>> --- >>> title: Hi >>> author: Brover >>> pandoc-latex-environment: >>> df: [definition] >>> prop: [proposition] >>> proof: [proof] >>> --- >>> >>> ::: {.definition} >>> >>> A profile of actions $a \in A$ constitute a **Nash Equilibrium** if >>> >>> $$u_i \left( r_i \left(a_i, a_{-i} \right) \right) \geq u_i \left( r_i= =20 >>> \left(a^{\prime}_i, a_{-i} \right) \right)$$ >>> >>> for all agents $i \in N$ and actions $a_i, a_i^{\prime} \in A_i$. >>> >>> ::: >>> >>> Should I use a different syntax or the filter is not enough? >>> >> --=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 view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/87d4342c-ecd0-4ff2-9323-e124280b8da7n%40googlegroups.com. ------=_Part_17159_1449895278.1691159770438 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oops, except: I'm not sure how best to handle the desired {.definition} env= ironment when converting to docx. I suspect you'll have to set up a style i= n a reference docx file. Look for "--reference-doc=3D"=C2=A0here=C2=A0for more about tha= t.=C2=A0

On Friday, August 4, 2023 at 9:33:19=E2=80=AFAM UTC-5 Paul Kelle= her wrote:
Om= it the "pandoc-latex-environment" arguments in the YAML and I thi= nk the conversion to docx should work just fine. For cross-referencing equa= tions I highly recommend the pandoc-crossref filter.=C2=A0

On Friday, August = 4, 2023 at 9:20:31=E2=80=AFAM UTC-5 Christophe Demko wrote:
Hi, I'm the creator of the pandoc= -latex-environment. This filter is for pdf output using LaTeX (or beamer). = For docx, you have to use another way.

Le vendredi 4 ao=C3=BBt 2023 =C3=A0 13= :34:46 UTC+2, Enrico Mattia Salonia a =C3=A9crit=C2=A0:
When converting markdown to docx latex en= vironments disappear and only the text inside them is retained. Conversion = from markdown to pdf works fine.

I am using --filter pan= doc-latex-environment. The following is an extract of the .md

---title: Hi
author: Brover
pandoc-latex-environment:
=C2=A0 df: [de= finition]
=C2=A0 prop: [proposition]
=C2=A0 proof: [proof]
---
=
::: {.definition}

A profile of actions $a \in A$ constitute a **= Nash Equilibrium** if

$$u_i \left( r_i \left(a_i, a_{-i} \right) \ri= ght) \geq u_i \left( r_i \left(a^{\prime}_i, a_{-i} \right) \right)$$
for all agents $i \in N$ and actions $a_i, a_i^{\prime} \in A_i$.

= :::

Should I use a different syntax or the fil= ter is not enough?
=

--
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://groups.google.com/d= /msgid/pandoc-discuss/87d4342c-ecd0-4ff2-9323-e124280b8da7n%40googlegroups.= com.
------=_Part_17159_1449895278.1691159770438-- ------=_Part_17158_602568711.1691159770438--