From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33056 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, 14 Aug 2023 20:43:58 -0700 (PDT) Message-ID: 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> <629a3b14-2dbd-41b2-bca1-da3bed43bf67n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_47884_589841591.1692071038786" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11257"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCG5FCHTSEOBBAHJ5OTAMGQE34LUURA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 15 05:44:07 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f187.google.com ([209.85.215.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qVkyU-0002lu-Qg for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 15 Aug 2023 05:44:06 +0200 Original-Received: by mail-pg1-f187.google.com with SMTP id 41be03b00d2f7-56385c43eaesf5020429a12.1 for ; Mon, 14 Aug 2023 20:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1692071045; x=1692675845; 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=uVML0ycp3q0uVa/e/wWThj/9XC2tQP2vG0vpangaqUk=; b=PccA3u1nWSXBMnqxdLMa615/YgP0T+4MOzCg61JVKDhA9mMRFq029h42VWNeJYOPUp kgU+BIS94Cfi8Z17Yi66utqVkO7mwsNkhwWtv60tCt6sDPO/+fghKyo7OOFgazSinSKD bbL9LImfVIShuMsnXlTw8ZDNPz2phCXrhfmTj4/0kwdbcQfeTdhuwRbLlRq0ErppshgI umUavwNzfNKm2kxETV4P+eDRi3xgjRktWSei4wBn30r3CH/sfzD1rttpmqePmv0dc7S7 DSPazOJwqV02D5a87d4FA1Br4eo3Tp1s6FpGDDlqEIgJuXBOZzLlp3zLUnee37cl9VsT JPqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692071045; x=1692675845; 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=uVML0ycp3q0uVa/e/wWThj/9XC2tQP2vG0vpangaqUk=; b=BBa7tuPKYtPBQ3taxiDA2p/hnoEZA7HOGGi1BR1dBfXbz8OBpVklH0V26Civq798V1 mjpkomJ00or7Azg+lDosIym56PQsbhPt8tF/xcf5cfchvlBPpvsLYmkWeHaExWyK5ibI f46hCZsO/QgkZuEhORNRR00bg0HoZaMxOHQTCqgn56YLf9L0E+LSisnVHSWo3PIpwOaf e+nnScSZYTTkMLwXImy84FStzHZJMr9wQc3XAWEEdTDfS2c8ZHkfo8/RSYuC3pu/Wylu LrZVptpZDMLOz0flkPIbmwGkuWUWZ+gqcBTFzZFYSQkhfJ6bWEGSZu2qz2vNxrjsbNwJ 3CIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692071045; x=1692675845; 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=uVML0ycp3q0uVa/e/wWThj/9XC2tQP2vG0vpangaqUk=; b=bEoQ0ZZv1nW6bxmmLxy3EfPYV1IHY5IrpCYowGseKa3auL8NQaE68tq9uSJV12/ycM 8QgNloDuXyG2Lw8hykgJeLkZmeTVOE4B1Z5faLfnoMNNuLjwQVCC771XBE+VMFini6fT hdIEDft2MfK9fFVB5jGP/nSPXMDpkiyfrUNvw+xQBuT5AKrPuVJQ8NywOrru2f0uOObO P2Tt3cUVEivCy8tNogHh64m5dZPqBPsjLM0B6DtNrVQNUIWvuNb+zs51y3UlvaKXT3E7 ZHZbYi5nelB9x0YYWRzQmsV81G0kSj9v+jCbeETiWb2KCgSqQB Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YwXeJTPMvofDjTn6Sy+ChVfsgvWP+KhNBq//mSazaglfeukL5S1 KYxIlPaCqebQ7oZs2sfEmyM= X-Google-Smtp-Source: AGHT+IHA667d49wAvAx0PuOUxKFw3toqK/0F9XIT/o3V0PSdf6QQctyYrPaH0XArSMnuhEH8AdXPmw== X-Received: by 2002:a17:90b:1b11:b0:261:2824:6b8c with SMTP id nu17-20020a17090b1b1100b0026128246b8cmr1145162pjb.13.1692071045323; Mon, 14 Aug 2023 20:44:05 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:650a:b0:1bc:2c63:becf with SMTP id b10-20020a170902650a00b001bc2c63becfls3743055plk.1.-pod-prod-09-us; Mon, 14 Aug 2023 20:44:00 -0700 (PDT) X-Received: by 2002:a17:902:e841:b0:1b2:4b45:91ca with SMTP id t1-20020a170902e84100b001b24b4591camr4880940plg.2.1692071039708; Mon, 14 Aug 2023 20:43:59 -0700 (PDT) In-Reply-To: <629a3b14-2dbd-41b2-bca1-da3bed43bf67n-/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:33056 Archived-At: ------=_Part_47884_589841591.1692071038786 Content-Type: multipart/alternative; boundary="----=_Part_47885_1410333992.1692071038786" ------=_Part_47885_1410333992.1692071038786 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For whom might be interested, I managed to preserve theorem like=20 environments from markdown to docx using the statement=20 filter. Just employ the syntax Definition. : This is a brover. More instructions in the page of the filter. On Wednesday, 9 August 2023 at 00:06:35 UTC+10 Paul Kelleher wrote: > Any docx environment is limited by what can be done with the reference do= c=20 > styles. I believe the 'Definition' environment in the stock docx referenc= e=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, b= ut=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 Salon= ia 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 wro= te: >>> >>>> 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= =20 >>>>> for pdf output using LaTeX (or beamer). For docx, you have to use ano= ther=20 >>>>> way. >>>>> >>>>> Le vendredi 4 ao=C3=BBt 2023 =C3=A0 13:34:46 UTC+2, Enrico Mattia Sal= onia a=20 >>>>> =C3=A9crit : >>>>> >>>>>> When converting markdown to docx latex environments disappear and=20 >>>>>> only the text inside them is retained. Conversion from markdown to p= df=20 >>>>>> works 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(= =20 >>>>>> 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? >>>>>> >>>>> --=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/a52de802-1083-43e0-a302-42af9079779fn%40googlegroups.com. ------=_Part_47885_1410333992.1692071038786 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable For whom might be interested, I managed to preserve theorem like environmen= ts from markdown to docx using the=C2=A0statement=C2=A0filter. Just employ the syntax

D= efinition.

: This is a brover.

More instruc= tions in the page of the filter.

On Wednesday, 9 August 2023 at 00:= 06:35 UTC+10 Paul Kelleher wrote:
Any docx environment is limited by what can be done wi= th the reference doc styles. I believe the 'Definition' environment= in the stock docx reference doc is just a bold title and then maybe an ind= ented definition. I'm not sure. I myself am not well versed on what can= be done with docx styles, but that's what you'll have to play arou= nd with.

On Monday, August 7, 2023 at 5:27:19=E2=80=AFAM UTC-5 Enric= o Mattia Salonia wrote:
On Saturday, 5 August 2023 at 00:36:10 UTC+10 Paul Kelleher wrote:<= br>
Oops, except: I'm = not sure how best to handle the desired {.definition} environment when conv= erting to docx. I suspect you'll have to set up a style in a reference = docx file. Look for "--reference-doc=3D"=C2=A0here=C2=A0for more about th= at.=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 and I think the conve= rsion to docx should work just fine. For cross-referencing equations I high= ly 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-envi= ronment. This filter is for pdf output using LaTeX (or beamer). For docx, y= ou 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 environments = disappear and only the text inside them is retained. Conversion from markdo= wn to pdf works fine.

I am using --filter pandoc-latex-e= nvironment. The following is an extract of the .md

---
title: Hi<= br>author: Brover
pandoc-latex-environment:
=C2=A0 df: [definition]=C2=A0 prop: [proposition]
=C2=A0 proof: [proof]
---

::: {.d= efinition}

A profile of actions $a \in A$ constitute a **Nash Equili= brium** 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 a= gents $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/a52de802-1083-43e0-a302-42af9079779fn%40googlegroups.= com.
------=_Part_47885_1410333992.1692071038786-- ------=_Part_47884_589841591.1692071038786--