From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33038 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: Tue, 8 Aug 2023 07:06:34 -0700 (PDT) Message-ID: <629a3b14-2dbd-41b2-bca1-da3bed43bf67n@googlegroups.com> References: <75bf54f4-42e5-4f7e-954b-87a69d8d9057n@googlegroups.com> <6893cb2b-681e-4ed8-ae92-b4ce13dd4d4an@googlegroups.com> <87d4342c-ecd0-4ff2-9323-e124280b8da7n@googlegroups.com> <89746b58-348c-408b-9c06-37074cad444an@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_72364_678084468.1691503594917" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8217"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDYKNHHAVIJBB3EXZGTAMGQEZKAREYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 08 16:06:41 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qTNM8-0001uH-H0 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Aug 2023 16:06:40 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id 006d021491bc7-56d2636c132sf9181937eaf.3 for ; Tue, 08 Aug 2023 07:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691503599; x=1692108399; 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=BhPvcfk6CxkUVJmZlADpifdh7FR3Ci1AI77f9mWc5Gc=; b=O+LXra/QSKpnRc4kh3qOCzgQku7aLkveDlqVRXJKo0U+4146VWFn+1YEKdX/Z338BR 57Ivab1M0kdBd8kjG/xdqPQQNQL33YZdzDNJ/gT/T7dNSS7p7Ar5oBVDxwirSHdXXUHJ Tk/LxYfzxsHJTzUlFvKUHi4lJKoZ80qtyxbW1R76JwcTlm+UV7LcwO6N/QqPciZOdNmC NGhWNKd2iuGvFysELLu3KokntB4GA8HVvB3f1GTDSeFSLmI0D1Gypa4k274lLzRYkl0b jDc6qJowa0XZe32FQReWxKEjlseF64PsqthgU9gJMsQHRS9wAsVOnBi28J1hgyu1VogB yCyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulkelleher-net.20221208.gappssmtp.com; s=20221208; t=1691503599; x=1692108399; 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=BhPvcfk6CxkUVJmZlADpifdh7FR3Ci1AI77f9mWc5Gc=; b=Jk8XENwGH5NuRy58EX1cx+a+JffhhlTEQ9OxNN8R0znlSMBAXe2I2yns78lH+g6Dd6 k2L3QnCLhWIST1rLmBV1jeN3hJunmCit3PAUJOEKB8fKxJJ60PWKttS9+y2A4mqRq4p4 P0jmINuqxRP6jVOfpMF8umNqRCF5n/f2zN0PZi+2XS0EVSP8BF/wuCjJZTUY47hpqHIG ZTXSdwDCzTRFR8fWHF/1Avf3E3mtjktNO0wuy0DWC7I1akaEjtZSLG8d3zwJlhudxhrw /V3hRAFZrj0JSUQLtcYoKBUh1ys2n8G9jtgskWcOHZgJkmAg/r4y+iTy1wtEw7xj0zmo uhVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691503599; x=1692108399; 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=BhPvcfk6CxkUVJmZlADpifdh7FR3Ci1AI77f9mWc5Gc=; b=Wgv+c+2cms3o9/ZR/nRou2Fw6PQ0IZ4JykMpz7Bp9+gDlUrHOrcfLHhmsRuAoApaHw qylaOHrnTj5iZTQlgkedHIWC9EJjSAKpOqtNpz3TqRmxuMJ6o5C3kGIcVLsWobUtEyfe tLmKTwoO6V+dPUWoptYDz81BZbbvdCRSwOAwjnQ7d0ogjGPTQi2trQLRr8n4tMvgPuDE tH8PuxdnWsMoCWonKO7QppA2BmL9h690T1MbWYXfiDNxoUqJtcdB6ZmVARvlmiTtDMhi t+u4+rgNCz9RQTZ/EIZ7Doi/VmMEi58RC1AmFcE/CGkm6K2kJi Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwziRXUiKx8qNukh5/Tr+kpdYcTFK1pX1/L13MULjPgYW9h5FEw UIQFtO3iAYdMetuYH2xhnXI= X-Google-Smtp-Source: AGHT+IGHck0zGEc1YzWmZq+9TpUvYlqtTQcN6DkgP2sT+oFt1pusPfHCcJcOqhFBjgj9Wjvcb7h9zg== X-Received: by 2002:a4a:d2dc:0:b0:56c:43cd:7267 with SMTP id j28-20020a4ad2dc000000b0056c43cd7267mr10941941oos.8.1691503599267; Tue, 08 Aug 2023 07:06:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:41d5:0:b0:56c:94b1:6854 with SMTP id x204-20020a4a41d5000000b0056c94b16854ls3464609ooa.1.-pod-prod-07-us; Tue, 08 Aug 2023 07:06:35 -0700 (PDT) X-Received: by 2002:a05:6808:1490:b0:3a4:88e1:de37 with SMTP id e16-20020a056808149000b003a488e1de37mr24915625oiw.1.1691503595661; Tue, 08 Aug 2023 07:06:35 -0700 (PDT) In-Reply-To: <89746b58-348c-408b-9c06-37074cad444an-/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:33038 Archived-At: ------=_Part_72364_678084468.1691503594917 Content-Type: multipart/alternative; boundary="----=_Part_72365_1000143232.1691503594918" ------=_Part_72365_1000143232.1691503594918 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Any docx environment is limited by what can be done with the reference doc= =20 styles. I believe the 'Definition' environment in the stock docx reference= =20 doc is just a bold title and then maybe an indented definition. I'm not=20 sure. I myself am not well versed on what can be done with docx styles, but= =20 that's what you'll have to play around with. On Monday, August 7, 2023 at 5:27:19=E2=80=AFAM UTC-5 Enrico Mattia Salonia= wrote: > Thank you for your help! I tried removing the pandoc-latex-environment=20 > arguments in the YAML but still it does not get the environment, it just= =20 > reproduces the text inside it. Are you suggesting that I can format a=20 > reference docx such that the syntax > > ::: {.definition} > > My definition. > > ::: > > is processed by pandoc as a "Definition" environment? > > > On Saturday, 5 August 2023 at 00:36:10 UTC+10 Paul Kelleher wrote: > >> 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 wrot= e: >> >>> Omit the "pandoc-latex-environment" arguments in the YAML and I think= =20 >>> the conversion to docx should work just fine. For cross-referencing=20 >>> equations I highly recommend the pandoc-crossref filter.=20 >>> >>> 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 fo= r=20 >>>> 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 Salo= nia a=20 >>>> =C3=A9crit : >>>> >>>>> When converting markdown to docx latex environments disappear and onl= y=20 >>>>> the text inside them is retained. Conversion from markdown to pdf wor= ks=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/629a3b14-2dbd-41b2-bca1-da3bed43bf67n%40googlegroups.com. ------=_Part_72365_1000143232.1691503594918 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Any docx environment is limited by what can be done with the reference doc = styles. I believe the 'Definition' environment in the stock docx reference = doc is just a bold title and then maybe an indented definition. I'm not sur= e. I myself am not well versed on what can be done with docx styles, but th= at's what you'll have to play around with.

On Monday, August 7, 2023= at 5:27:19=E2=80=AFAM UTC-5 Enrico Mattia Salonia wrote:
Thank you for your help! I tri= ed removing the pandoc-latex-environment arguments in the YAML but still it= does not get the environment, it just reproduces the text inside it. Are y= ou suggesting that I can format a reference docx such that the syntax
::: {.definition}

My definition.

:::

is processed by= pandoc as a "Definition" environment?


On Saturday, 5 August 20= 23 at 00:36:10 UTC+10 Paul Kelleher wrote:
Oops, except: I'm not sure how best to handle the = desired {.definition} environment when converting to docx. I suspect you= 9;ll have to set up a style in a reference docx file. Look for "--reference-doc=3D"=C2=A0here=C2=A0for more about that.=C2=A0

On Friday, August 4, 2023 a= t 9:33:19=E2=80=AFAM UTC-5 Paul Kelleher wrote:
Omit the "pandoc-latex-environment" ar= guments in the YAML and I think the conversion to docx should work just fin= e. For cross-referencing equations I highly recommend the pandoc-crossref f= ilter.=C2=A0

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

=
Le vendre= di 4 ao=C3=BBt 2023 =C3=A0 13:34:46 UTC+2, Enrico Mattia Salonia a =C3=A9cr= it=C2=A0:
When convert= ing markdown to docx latex environments disappear and only the text inside = them is retained. Conversion from markdown to pdf works fine.

I am using --filter pandoc-latex-environment. The following is an ext= ract of the .md

---
title: Hi
author: Brover
pandoc-latex-e= nvironment:
=C2=A0 df: [definition]
=C2=A0 prop: [proposition]
=C2= =A0 proof: [proof]
---

::: {.definition}

A profile of acti= ons $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 \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?

--
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/629a3b14-2dbd-41b2-bca1-da3bed43bf67n%40googlegroups.= com.
------=_Part_72365_1000143232.1691503594918-- ------=_Part_72364_678084468.1691503594917--