From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33034 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Enrico Mattia Salonia Newsgroups: gmane.text.pandoc Subject: Re: Pandoc-Latex-Environment to docx does not work Date: Mon, 7 Aug 2023 03:27:19 -0700 (PDT) Message-ID: <89746b58-348c-408b-9c06-37074cad444an@googlegroups.com> References: <75bf54f4-42e5-4f7e-954b-87a69d8d9057n@googlegroups.com> <6893cb2b-681e-4ed8-ae92-b4ce13dd4d4an@googlegroups.com> <87d4342c-ecd0-4ff2-9323-e124280b8da7n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_53740_709928972.1691404039596" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="342"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCG5FCHTSEOBBCEOYOTAMGQEF3C4TKY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 07 12:27:24 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f192.google.com ([209.85.167.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qSxSO-000AQs-Bo for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Aug 2023 12:27:24 +0200 Original-Received: by mail-oi1-f192.google.com with SMTP id 5614622812f47-3a71ea1f049sf6549519b6e.1 for ; Mon, 07 Aug 2023 03:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1691404043; x=1692008843; 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=MG9QQoE+xp6v/FS0lwzD9orIUnfhmyMhzDJ7RgXR7vY=; b=KOiPebwKRqDhNvd9T/ygkFnybq7sJY5I3smtaSRSd20qgAqsh5STrcFKJPFE5JKEYU GR2iQKWkCDApCQ0ze6oMWoI67NMJubkBhHBK2SxZjz8QFOIPku9W+93pY6iODpBpOYjl O/yGqqArsNERKLwXpJnPEDItZbXoBRTIhIgTu6ErhhKX1c+yjpe8Bir6lKPlVjGSxOSK i4uwH6Q3zTHBUj/WMFS5OrAVz0ipKimPCIaXeZ0t43YDZ44BRnNYDrrVJq88D+3OJo1P FnsP1JX6rvd2mKAsVOysvlImZopjFeyIsbM0u9G7H8JBCQvUGGiIf3Tm5HBhU8vX2f+D 0slQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691404043; x=1692008843; 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=MG9QQoE+xp6v/FS0lwzD9orIUnfhmyMhzDJ7RgXR7vY=; b=PbIyhHlyt96kpQLbs7jeFDYEM+ZT8j6PVmpOLEKSK2/0isRq6t88TQ/KsOZqO4D+iT K8qRTnsNI6g4dBUUn0yZBSa/WiYW0TojiOUSbVQmlDq7jh5WCqhekOZbMSE5FAa+sgi2 a6e2/4qhlzywfG4PUSHkdPk7TJVc5I+WXsovhAyaNg1mHYsCtkSqGAaMro2mxRnSmW57 WheoxP6R/NTKM26JjYavXqp9mfn6QCA6otcCH7s73pIlHE/C/oL3FJODnuqp/g754mvT WPNIFTVtMveTW0Oy1P0riEev45r+pcbrTfP+gYie8V36DzFgOjZizJCzPNnBtR67oY/6 IsBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691404043; x=1692008843; 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=MG9QQoE+xp6v/FS0lwzD9orIUnfhmyMhzDJ7RgXR7vY=; b=RAmL9IEeTvgd8tj4o61f1aRAIpbqRnRncdUn5izTFG7MLGLsF2lG+UaqZjJ0+g0wGI FIJNbZiED+cAixFi0vRGAc2vSzPCpUT0o5IFZ9XW3lWsEqO9fVaXX/MmBwy4Vjlk76tO jkAyO+tyZNgEKv2U50d1em+pmVjUTr00ZvzaM7gOzRVy5lxzflUjOBfd0PPMVlbkwFv2 m2pzkkMfmSeOERXG5MAk6WMx3ap2LNBm3KLKEcNXHq/t4TMrDtPsulohz5coyIyiqR3y nvpPrCjNXNL5qJVUIe2mZgJTm1J9SFQTB17KpTMorHCAOIRukJ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yy1kQyqB8Av32bzzLOE+6EUenF7KZYiam28xeqsxYNS0yfMMjr/ 3unBLVDltnbHxF1eDu3v2as= X-Google-Smtp-Source: AGHT+IFPcTDX97rV2Q2w+1zsNLNb/2lbOeU+9LDJt+GHb421i7v7hhUa2wKRm/KH81vUt+tAYJUeJw== X-Received: by 2002:a05:6808:5c1:b0:3a4:1189:f2a1 with SMTP id d1-20020a05680805c100b003a41189f2a1mr4177388oij.25.1691404043224; Mon, 07 Aug 2023 03:27:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:33d8:0:b0:56d:362b:fc0e with SMTP id q207-20020a4a33d8000000b0056d362bfc0els1887254ooq.0.-pod-prod-05-us; Mon, 07 Aug 2023 03:27:20 -0700 (PDT) X-Received: by 2002:a05:6808:1927:b0:3a7:45f6:4b3f with SMTP id bf39-20020a056808192700b003a745f64b3fmr16051487oib.3.1691404040198; Mon, 07 Aug 2023 03:27:20 -0700 (PDT) In-Reply-To: <87d4342c-ecd0-4ff2-9323-e124280b8da7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: mattia.salonia1-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.io gmane.text.pandoc:33034 Archived-At: ------=_Part_53740_709928972.1691404039596 Content-Type: multipart/alternative; boundary="----=_Part_53741_460678804.1691404039597" ------=_Part_53741_460678804.1691404039597 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote= : > >> Omit the "pandoc-latex-environment" arguments in the YAML and I think th= e=20 >> conversion to docx should work just fine. For cross-referencing equation= s 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 w= rote: >> >>> 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 w= ay. >>> >>> Le vendredi 4 ao=C3=BBt 2023 =C3=A0 13:34:46 UTC+2, Enrico Mattia Salon= ia 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 work= s=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/89746b58-348c-408b-9c06-37074cad444an%40googlegroups.com. ------=_Part_53741_460678804.1691404039597 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your help! I tried removing the pandoc-latex-environment argu= ments in the YAML but still it does not get the environment, it just reprod= uces the text inside it. Are you suggesting that I can format a reference d= ocx such that the syntax

::: {.definition}

My definit= ion.

:::

is processed by pandoc as a "Definition" env= ironment?


On Saturday, 5 August 2023 at 00:36:10 UTC+10 Paul Kelleh= er wrote:
Oop= s, except: I'm not sure how best to handle the desired {.definition} en= vironment when converting to docx. I suspect you'll have to set up a st= yle in a reference docx file. Look for "--reference= -doc=3D"=C2=A0here=C2= =A0for more about that.=C2=A0

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 a= nd I think the conversion to docx should work just fine. For cross-referenc= ing equations I highly recommend the pandoc-crossref filter.=C2=A0

<= div class=3D"gmail_quote">
On Friday,= August 4, 2023 at 9:20:31=E2=80=AFAM UTC-5 Christophe Demko wrote:
Hi, I'm the creator of th= e pandoc-latex-environment. This filter is for pdf output using LaTeX (or b= eamer). 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:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex">When converting markdown to docx= latex environments disappear and only the text inside them is retained. Co= nversion from markdown to pdf works fine.

I am using --f= ilter pandoc-latex-environment. The following is an extract of the .md
<= br>---
title: Hi
author: Brover
pandoc-latex-environment:
=C2= =A0 df: [definition]
=C2=A0 prop: [proposition]
=C2=A0 proof: [proof]=
---

::: {.definition}

A profile of actions $a \in A$ cons= titute 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) \rig= ht)$$

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/89746b58-348c-408b-9c06-37074cad444an%40googlegroups.= com.
------=_Part_53741_460678804.1691404039597-- ------=_Part_53740_709928972.1691404039596--