From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32364 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Julien Dutant Newsgroups: gmane.text.pandoc Subject: Re: Is there this option to convert to slide and document? Date: Mon, 20 Mar 2023 14:17:04 -0700 (PDT) Message-ID: <24f8d8a6-381b-4854-a6a1-14f2bd885686n@googlegroups.com> References: <0f00a9f9-fd1a-4534-8152-3e810f22da2fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_354_632293927.1679347024397" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6223"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5Y3356IYINDGXDUADBUBHXX7RC4-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 20 22:17:09 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1peMsO-0001LQ-LC for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 20 Mar 2023 22:17:08 +0100 Original-Received: by mail-ot1-f56.google.com with SMTP id a11-20020a05683012cb00b0068bdd21c8d7sf6205364otq.2 for ; Mon, 20 Mar 2023 14:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679347027; 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=PPVqp2f5QOKQgXra9jc9qplRmOqqJADZE3ltjFgCSaM=; b=GnNfg/3BEgiqVGc+qPbMJHPVjTkILTjRbeP+vuNNs20qrdXnNNl5Ttx51BXrLi6iw3 LG1XfAiwk0YRNj+Fk/h2C9utKn56PBgvH8pCs0iNRtSt1ZVznT6DQ7ThsEgJ3+rneYoE sf8YdWFpteuApQ6k1LJPIE8+PqIzxpt6JT2YdmevrQOS4e0tBEEIfcHUmm5gsIp4FT17 y4YhAVcz3mnnz0HRWMIZiQ2Mwd3FNqWYkMYS3CDTpVrWJMAUFewgDA7lS1gzWBMsBETY NhctU6IlMV7NWv8Bjqg6NaWNllguHROc8lx36fb280aZ1mfAo7k/TpDmODTt4wRyZ9Di R97Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679347027; 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=PPVqp2f5QOKQgXra9jc9qplRmOqqJADZE3ltjFgCSaM=; b=dIM9aTx5SS4j1lVN2Apx6NlMsFIeX3JNuTfZtLMhRi9eFaV9whB8bIHgI2KtMJRd0e m6V+MtsLfPxJFVeVGGMaq/nN0rJd20I7TtKVxU+Rio0UpHy8plDasHeat9dhQ5I0ejfT frgqJPF7L1t+r1wSaWydm1Bq9f9AW0eH/qxnCJ+/sZqymQsEwEoEbt9wOQkmQ4JOvtv/ 7kY/LZWc2zPajbtYC4L3fcihQKo+E8cBL35paOlw4eS2xICfBPjz1e6bvjJiMvpxXVX/ ehQPpbXj8PkKUk52aHov0gDHEL/73l5/2P6FU+jx2iSlde07G+GubEf9zOykr5BKlCU1 1Ndg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679347027; 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-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=PPVqp2f5QOKQgXra9jc9qplRmOqqJADZE3ltjFgCSaM=; b=0PAjWBa28pLi1ebqbp8kdn+BN1zb6uq+0KjdYodnrKakL1MMq3c22ccB0CFCMQXc+Q 0yf6D4G0j0ML8ZU1yBG7hw0/weeNzKPXoIYnvOPYyvk+SjblPj0IzHej+U45IEfMkhVU z7bkI68iX1i0YB5G1gQrBo31cX09+G3INbkZp46jCqg4Y5/TJnlgmKCj/aTxDqUmisfN 7Lv4DhRbl3/FY5We4nnrSdDV+iYpwI380GuiRaQqSZ1rtFAY/o5HY4jVDbkNTzkNIz6e PcJzptr9efGuxD2O+psDxwREMMkkyKQTtUZfGjbCwuZhONmAtMNvtSS4vXsWfmlYlUnc Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKWH7DWbTr+E5u0cE0wOk964a12orwQ+zGGTYItWcCc/mq/C51PF NgemyRok39EVIK9OXnQHgYw= X-Google-Smtp-Source: AK7set+Fmsy3NpQoPIEvLA8A4J/jvYwefU4/V/hkxe56Yoe4+LCIlUIB6EtFRx8MfFxsauUDay+6+A== X-Received: by 2002:a05:6830:1383:b0:690:daac:e823 with SMTP id d3-20020a056830138300b00690daace823mr44191otq.2.1679347027573; Mon, 20 Mar 2023 14:17:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:9f13:b0:17c:b13:a1b6 with SMTP id xl19-20020a0568709f1300b0017c0b13a1b6ls2522318oab.3.-pod-prod-gmail; Mon, 20 Mar 2023 14:17:05 -0700 (PDT) X-Received: by 2002:a05:6870:cb92:b0:177:b9c0:bcba with SMTP id ov18-20020a056870cb9200b00177b9c0bcbamr3852405oab.3.1679347025032; Mon, 20 Mar 2023 14:17:05 -0700 (PDT) In-Reply-To: <0f00a9f9-fd1a-4534-8152-3e810f22da2fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: julien.dutant-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:32364 Archived-At: ------=_Part_354_632293927.1679347024397 Content-Type: multipart/alternative; boundary="----=_Part_355_1534864326.1679347024397" ------=_Part_355_1534864326.1679347024397 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Indeed, it exists already for Divs:=20 https://github.com/pandoc/lua-filters/tree/master/not-in-format . Shouldn't= =20 be too difficult to adapt it to Spans, though the markdown will become=20 heavy:=20 This text [but not this comment]{.not-in-format .revealjs} appears on the= =20 slide. Best, On Monday, March 20, 2023 at 7:13:23=E2=80=AFPM UTC Amy de Buitl=C3=A9ir wr= ote: > One idea that might help, would be to put any conditional output in a div= =20 > or span, and assign it a special class, e.g. "pdf-only". > > Then all you need is a pandoc filter that removes all divs or spans with= =20 > that class. That would be a generic filter that I think a lot of people= =20 > could find a use for, and it's just a few lines of code. > > On Monday, 20 March 2023 at 16:49:41 UTC Julien Dutant wrote: > >> If I understand well, the idea is to convert the following into two=20 >> different outputs, depending on whether the output format is revealjs/pp= tx=20 >> vs pdf? >> =20 >> ``` markdown >> =20 >> Text text !!important claim here!! text text text text text >> text text text text text text text text text text >> text text text text text >> =20 >> * Point 1 text text text text >> * Point 2 text text text text >> =20 >> ``` >> =20 >> Would remain the same in pdf (or other document format) output, except= =20 >> that the `!! ... !!` content would be highlighted, while in slide output= =20 >> formats it would be converted to the following: >> =20 >> Would be converted to the following in slide ouputs: >> =20 >> ``` markdown >> important claim here >> =20 >> * Point 1 text text text text >> * Point 2 text text text text >> =20 >> ::: notes >> Text text important claim here text text text text text >> text text text text text text text text text text >> text text text text text >> ::: >> ``` >> =20 >> You'd have to write a Pandoc filter to do that (=20 >> https://pandoc.org/lua-filters.html ). It would make your work easier to= =20 >> use Span and Div markup rather than !! ... !!: >> =20 >> Text text [important claim here]{.imp} text text text text text >> text text text text text text text text text text >> text text text text text >> =20 >> For the document, there's only highlighting to be done, that's fairly=20 >> easy. For the slides, you need some restructuring of content, that's les= s=20 >> trivial (replace the paragraphs with their important bits, saving the=20 >> paragraphs along, and placing them at the end of the slide in a notes Di= v)=20 >> but it can be done. >> =20 >> What's not clear to me is whether many people would use it. It seems=20 >> pretty rigid: keep all the lists, remove all the paragraphs unless marke= d,=20 >> the slide text must be verbatim in the document text (instead of=20 >> summarizing it, for instance. >> =20 >> Best,=20 >> >> Julien >> >> On Monday, March 20, 2023 at 1:08:28=E2=80=AFPM UTC Amy de Buitl=C3=A9ir= wrote: >> >>> Pandoc supports speaker's notes, if that's what you're looking for. See= =20 >>> https://pandoc.org/MANUAL.html#speaker-notes >>> >>> On Sunday, 19 March 2023 at 13:19:57 UTC Aldo =E2=80=9CScias=E2=80=9D w= rote: >>> >>>> =C2=BFExiste esta opci=C3=B3n para convertir a diapositiva y documento= ? >>>> >>>> *Markdown with markup for relevant parts within a paragraph. !!Text!!* >>>> Markdown con marcado para partes relevantes dentro de un p=C3=A1rrafo.= =20 >>>> !!Texto!! >>>> [image: import.png] >>>> >>>> Slide with the important parts and the containing paragraph as speaker= =20 >>>> notes. >>>> Diapositiva con las partes importantes y el p=C3=A1rrafo contenedor co= mo=20 >>>> notas del orador.[image: presentation.png] >>>> Text document with the document and the important parts without=20 >>>> modifications. >>>> Documento de texto con el documento y las partes importantes sin=20 >>>> modificaciones. >>>> [image: document.png] >>>> Benefit: >>>> One markdown for two documents. >>>> Another option is to create options to convert the entire document or= =20 >>>> for the summary or important parts of the content. >>>> >>>> Beneficio: >>>> Un markdown para dos documentos. >>>> Otra opcion es crear opciones para convertir el documento entero o par= a=20 >>>> el resumen o partes importantes del contenido.=20 >>>> >>>> --=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/24f8d8a6-381b-4854-a6a1-14f2bd885686n%40googlegroups.com. ------=_Part_355_1534864326.1679347024397 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Indeed, it exists already for Divs: https://github.com/pandoc/lua-filt= ers/tree/master/not-in-format . Shouldn't be too difficult to adapt it to S= pans, though the markdown will become heavy:

<= div>This text [but not this comment]{.not-in-format .revealjs} appears on t= he slide.

Best,

On Monday, March 2= 0, 2023 at 7:13:23=E2=80=AFPM UTC Amy de Buitl=C3=A9ir wrote:
One idea that might h= elp, would be to put any conditional output in a div or span, and assign it= a special class, e.g. "pdf-only".

T= hen all you need is a pandoc filter that removes all divs or spans with tha= t class. That would be a generic filter that I think a lot of people could = find a use for, and it's just a few lines of code.

On Monday, 20 Ma= rch 2023 at 16:49:41 UTC Julien Dutant wrote:
If I understand well, the idea is to convert the fo= llowing into two different outputs, depending on whether the output format = is revealjs/pptx vs pdf?
=C2=A0
``` markdown
=C2=A0
Text text != !important claim here!! text text text text text
text text text text tex= t text text text text text
text text text text text
=C2=A0
* Point= 1 text text text text
* Point 2 text text text text
=C2=A0
```=C2=A0
Would remain the same in pdf (or other document format) output, = except that the `!! ... !!` content would be highlighted, while in slide ou= tput formats it would be converted to the following:
=C2=A0
Would be = converted to the following in slide ouputs:
=C2=A0
``` markdown
im= portant claim here
=C2=A0
* Point 1 text text text text
* Point 2 = text text text text
=C2=A0
::: notes
Text text important claim her= e text text text text text
text text text text text text text text text = text
text text text text text
:::
```
=C2=A0
You'd have = to write a Pandoc filter to do that ( https://pandoc.org/lua-filters.html ). It would make your wor= k easier to use Span and Div markup rather than !! ... !!:
=C2=A0
Tex= t text [important claim here]{.imp} text text text text text
text text t= ext text text text text text text text
text text text text text
=C2= =A0
For the document, there's only highlighting to be done, that'= ;s fairly easy. For the slides, you need some restructuring of content, tha= t's less trivial (replace the paragraphs with their important bits, sav= ing the paragraphs along, and placing them at the end of the slide in a not= es Div) but it can be done.
=C2=A0
What's not clear to me is whet= her many people would use it. It seems pretty rigid: keep all the lists, re= move all the paragraphs unless marked, the slide text must be verbatim in t= he document text (instead of summarizing it, for instance.
=C2=A0
Best,

Julien

On Monday, March 20, 2023 = at 1:08:28=E2=80=AFPM UTC Amy de Buitl=C3=A9ir wrote:
Pandoc supports speaker's notes, if tha= t's what you're looking for. See https://pandoc.org/MANUAL.html#speaker-not= es

On Sunday, 19 March 2023 at 13:19:57 UTC Aldo =E2=80=9CScias=E2=80=9D = wrote:
=C2=BFExiste es= ta opci=C3=B3n para convertir a diapositiva y documento?

Markdown with markup for relevant parts with= in a paragraph. !!Text!!
Markdown con marcado para partes rel= evantes dentro de un p=C3=A1rrafo. !!Texto!!
3D"import.png"

Sl= ide with the important parts and the containing paragraph as speaker notes.=
Diapositiva con las partes importantes y el p=C3=A1rrafo con= tenedor como notas del orador.3D"presentation.png"
= Text document with the document and the important parts without modificatio= ns.
Documento de texto con el documento y las partes importan= tes sin modificaciones.
3D"document.png"
Benefit:
One markdown for two documents.
Another option i= s to create options to convert the entire document or for the summary or im= portant parts of the content.

Beneficio:
Un= markdown para dos documentos.
Otra opcion es crear opciones para conver= tir el documento entero o para el resumen o partes importantes del contenid= o.=C2=A0

--
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/24f8d8a6-381b-4854-a6a1-14f2bd885686n%40googlegroups.= com.
------=_Part_355_1534864326.1679347024397-- ------=_Part_354_632293927.1679347024397--