From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30023 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Gesting Newsgroups: gmane.text.pandoc Subject: Re: ignorenonframetext in default.latex Date: Thu, 20 Jan 2022 21:40:00 -0800 (PST) Message-ID: <4a30c413-8ce3-4269-afb9-848f328b8a2dn@googlegroups.com> References: <69361063-4c69-4403-85c7-31d943d138fdn@googlegroups.com> <2a37b9d4-8b50-4764-950b-d97f2701f8f4n@googlegroups.com> <8d3b5815-bc30-4113-9683-11c166866e32n@googlegroups.com> <81339d69-ff5e-4f9e-8ee5-1d7ba12a9d7dn@googlegroups.com> <5bfb6c9d-5237-4849-8dd8-26b6a81f7af9n@googlegroups.com> <34cc5349-a24d-494f-8abe-cd7cbf2994f0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_166_622289851.1642743600535" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3148"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJ2VV4Y2UORBMMOVGHQMGQERP5PEJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 21 06:40:05 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nAmea-0000fB-MX for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Jan 2022 06:40:04 +0100 Original-Received: by mail-ot1-f64.google.com with SMTP id h11-20020a056830400b00b00591920a8f96sf4826788ots.1 for ; Thu, 20 Jan 2022 21:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=VLbiKocKgqj94kyxbbzHKBXikxKZi05AyfBlGk0pJ4I=; b=dUH/zBHoI+22sH2k89dapsfUdO1JJ0L1lZx+nwx+dBjBcdXwsQxzkoI4mgnjrYdFs7 ItuyzVj8Gr5OC1lAoFcDmVahIOQZzU3UlXIcQYNi4L/4zXWY7kuE4ORxRqVxSJ0xqlZA mChcbOpQ7YhJ2K7jBQDFja5rx1qrS20PlQ7c4+gIGUKL1PKi0csVoefi4MbTNs3cs1An jaM2Rofo5KPWcRcHoRMqLCJhXUVbQnGvkbYPv2u5HDybEyatFOqNV4Klw2OlW+58ud73 sdP4K1YdZ/HoHfo/9I/AUD7EICY5mjy+9mmqvHY0HE5QaO6KAs7xz/VawtFIkFCn9snt EOJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=VLbiKocKgqj94kyxbbzHKBXikxKZi05AyfBlGk0pJ4I=; b=XrYTjS9I71O0XvlL/XZ2CT3lS4U1VDImVp9KohPmfxZEquw5Nt3HWDV49uL6/iLHZQ pxS62x+XwnsoOmO2fwccFrS4FzDnVnESSZia1I53KGZiX1CdDi/oGv3+byqbiXptuJvj wjsL7ZRpJ9uWUA2NDEDKYDQvRi/iXU9WZuUdgzVRd42okv6ik8l8MJrVu239DJjyagDZ 0SobuS3xQTZ90Cu8W2BOfV6PuxN/FDOlYRikCnAPJRIqvdmqbNiAUrGrCe95SuT+dWPV mX1h1wRF1C/qXnRXoWojbaUolUSsqjnScsEt7L2pRTWHmTkphsKPbqHP+Er7N5/6a64M fftw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=VLbiKocKgqj94kyxbbzHKBXikxKZi05AyfBlGk0pJ4I=; b=2DWWHaYe0Zz4tA98x4/wGXX9T99LVrZaCNkRM1eCdlSN1q/0/E+E5XsIglNazW2UW+ HSZoqgde5aR1WsrNM+LX1LA8BUagorQEMI6W2NxI9ajQrkHEEFL6LRZf+YuVTzCIvVs0 3QYDYkvUYkleMyhh5iDLvzDYis4waHY3NoBSezQYwVkKe2xl4oynobcKl0A4+3TS1f1g xnlqKviEUJ7zqeMfIvGQqR52OrxPs+ZaTbQfvPOiplpEYhgBHCS+aBrQ3w58geBF5jfc U/+iXLNS4PqEfXfn0X3DmxYwT3NYNrHzTjVAY5k1EQtazZHzdPaL00ySpXIb0f8XRws6 A6LA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532IveT1j/BONs82GKBFbGxU2vqdEwuavH8AJzAFiPi5qPFLmqTj C3by+ir7Q4eW3mfth9kvlUo= X-Google-Smtp-Source: ABdhPJyz9iFFuQBDw45Kan9JyzHK3NLPhxzM3lRXcrymCgdM1wQWp3Dxqgb1xKAuGA6/UY3XTIHu4w== X-Received: by 2002:a05:6808:3a3:: with SMTP id n3mr2024085oie.128.1642743603664; Thu, 20 Jan 2022 21:40:03 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:448e:: with SMTP id r14ls2274947otv.3.gmail; Thu, 20 Jan 2022 21:40:01 -0800 (PST) X-Received: by 2002:a05:6830:224e:: with SMTP id t14mr1718308otd.154.1642743601209; Thu, 20 Jan 2022 21:40:01 -0800 (PST) In-Reply-To: <34cc5349-a24d-494f-8abe-cd7cbf2994f0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: folofjc-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:30023 Archived-At: ------=_Part_166_622289851.1642743600535 Content-Type: multipart/alternative; boundary="----=_Part_167_631674616.1642743600535" ------=_Part_167_631674616.1642743600535 Content-Type: text/plain; charset="UTF-8" Hi John, Thanks so much for the quick fix, I really appreciate it! On Thursday, January 20, 2022 at 6:40:39 AM UTC+1 Paul Gesting wrote: > Hi John, > > I am using 2.11.2 on Ubuntu 20.04 LTS and it adds it, as you saw. I > created two issues: One for the feature request > and one for the documentation > . > > Thanks again for all your help and for how incredibly useful pandoc is! > > On Wednesday, January 19, 2022 at 8:54:00 PM UTC+1 John MacFarlane wrote: > >> >> Scratch that...I see now that it does create the extra >> slide. >> >> Well, I think we can fix that. If you submit an issue >> on our GitHub tracker, it will help me keep track. >> And mention in the issue that the manual needs to >> be updated to reflect that speaker notes work with >> beamer, too. >> >> John MacFarlane writes: >> >> > It didn't add a frame for me when I tried it... >> > Are you using an up-to-date pandoc? >> > >> > Paul Gesting writes: >> > >> >> Hi John, >> >> >> >> Thanks for the quick reply! That was one of the first things I tried. >> The >> >> ::: notes block does the exact same thing as simply \note{...}. Both >> of >> >> them add a frame. Sorry, I wasn't very clear in my tex.se question, >> but the >> >> reason I put both the ::: notes block and the \note{...} command was >> to >> >> show that both give the exact same result in the .text file that I >> showed. >> >> >> >> Thanks! >> >> paul >> >> >> >> On Wednesday, January 19, 2022 at 6:55:43 PM UTC+1 John MacFarlane >> wrote: >> >> >> >>> >> >>> What happens if you do this (with current pandoc)? >> >>> >> >>> % pandoc -t beamer -s -o my.pdf --slide-level=2 >> >>> # Hi >> >>> >> >>> ::: notes >> >>> note >> >>> ::: >> >>> >> >>> ## Slide >> >>> >> >>> ok >> >>> ^D >> >>> >> >>> When I tried this, I did not get an extra page after the section >> >>> heading "Hi". (But I'm not sure how to view the notes with >> >>> beamer.) >> >>> >> >>> Actually, the manual says that "notes" divs are only supported >> >>> for powerpoint and reveal.js. This seems wrong, because beamer >> >>> does now seem to support them. So perhaps the manual needs >> >>> updating? But how do you actually use the speaker notes with >> >>> beamer? >> >>> >> >>> >> >>> >> >>> Paul Gesting writes: >> >>> >> >>> > I actually have a use case where I would like text under a section >> title >> >>> to >> >>> > be outside of a frame. See the question I posted here >> >>> > < >> >>> >> https://tex.stackexchange.com/questions/630390/add-a-beamer-note-to-a-section-slide-using-pandoc-and-markdown >> >>> > >> >>> > . >> >>> > >> >>> > Basically, if I want to add a note to a section title, I do not >> want a >> >>> > blank frame to be added for the note. I want the note on the >> section >> >>> frame. >> >>> > Is this still possible after the change that is cited above? >> >>> > >> >>> > On Sunday, September 13, 2020 at 11:04:16 PM UTC+2 >> thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org >> >>> > wrote: >> >>> > >> >>> >> Here is something that would be different after the change: >> >>> >> >> >>> >> A md like this: >> >>> >> >> >>> >> ``` >> >>> >> # Foo >> >>> >> >> >>> >> Foo >> >>> >> >> >>> >> ## Bar >> >>> >> >> >>> >> Bar >> >>> >> ``` >> >>> >> >> >>> >> The command: `$ pandoc --slide-level=2 -t beamer -o test.tex >> test.md` >> >>> >> produces LaTeX where there is text ('Foo') outside of a frame. If >> >>> >> ignorefametext is removed from the template, doing $ pandoc >> >>> --slide-level=2 >> >>> >> -t beamer -o test.pdf test.md` would give different results, i.e., >> >>> 'Foo' >> >>> >> would now be printed on a new slide after the section, rather than >> not >> >>> >> appearing at all. >> >>> >> >> >>> >> On Sunday, 13 September 2020 at 22:26:02 UTC+2 Thomas Hodgson >> wrote: >> >>> >> >> >>> >>> Is there a case where it would be expected that something would >> be >> >>> >>> written outside a frame, and that it should be ignored? >> >>> >>> >> >>> >>> I have checked the modified template with sections, and with >> >>> subsections, >> >>> >>> and without either. >> >>> >>> >> >>> >>> On Sunday, 13 September 2020 at 21:23:19 UTC+2 John MacFarlane >> wrote: >> >>> >>> >> >>> >>>> >> >>> >>>> We used to ignore stuff outside of frames. >> >>> >>>> However, this changed with >> >>> >>>> >> >>> >>>> >> >>> >> https://github.com/jgm/pandoc/commit/f431f67b2f2f5071345fa5800658375afaf44c1b >> >>> >>>> (somewhat controversially) >> >>> >>>> >> >>> >>>> It may be that after this commit, removing ignorenonframetext >> >>> >>>> would be okay. Maybe someone can test that out (with a lot of >> >>> >>>> different cases, please). >> >>> >>>> >> >>> >>>> Thomas Hodgson writes: >> >>> >>>> >> >>> >>>> > The default.latex template uses the 'ignorenonframetext' for >> >>> Beamer. >> >>> >>>> Is >> >>> >>>> > there a good reason for this? If that was removed from the >> >>> template, >> >>> >>>> there >> >>> >>>> > would be no need to handle making titles differently for >> beamer and >> >>> >>>> other >> >>> >>>> > formats, i.e., it could be done with `\maketitle` in both >> cases. I >> >>> >>>> think >> >>> >>>> > that that's better when using themes that treat a title slide >> >>> >>>> differently >> >>> >>>> > from ordinary slides (such as Metropolis). >> >>> >>>> > >> >>> >>>> > -- >> >>> >>>> > 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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >>> >>>> > To view this discussion on the web visit >> >>> >>>> >> >>> >> https://groups.google.com/d/msgid/pandoc-discuss/69361063-4c69-4403-85c7-31d943d138fdn%40googlegroups.com. >> >> >>> >> >>> >>>> >> >>> >>>> >> >>> >>> >> >>> > >> >>> > -- >> >>> > 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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >>> > To view this discussion on the web visit >> >>> >> https://groups.google.com/d/msgid/pandoc-discuss/81339d69-ff5e-4f9e-8ee5-1d7ba12a9d7dn%40googlegroups.com >> >>> . >> >>> >> >> >> >> -- >> >> 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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/5bfb6c9d-5237-4849-8dd8-26b6a81f7af9n%40googlegroups.com >> . >> > -- 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 email 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/4a30c413-8ce3-4269-afb9-848f328b8a2dn%40googlegroups.com. ------=_Part_167_631674616.1642743600535 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi John,

Thanks so much for the quick fix, I really appr= eciate it! 

On Thursday, January 20, 2022 at 6:40:39 AM UTC+1 Paul= Gesting wrote:
Hi John,

I am using 2.11.2 on Ubuntu 20.04 LTS and it= adds it, as you saw. I created two issues: One for=C2=A0the feature request=C2= =A0and one for=C2=A0the documentation.

Thanks again for = all your help and for how incredibly useful pandoc is!

On Wednesday, Ja= nuary 19, 2022 at 8:54:00 PM UTC+1 John MacFarlane wrote:

Scratch that...I see now that it does create the extra
slide.

Well, I think we can fix that. If you submit an issue
on our GitHub tracker, it will help me keep track.
And mention in the issue that the manual needs to
be updated to reflect that speaker notes work with
beamer, too.

John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> write= s:

> It didn't add a frame for me when I tried it...
> Are you using an up-to-date pandoc?
>
> Paul Gesting <fol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writ= es:
>
>> Hi John,
>>
>> Thanks for the quick reply! That was one of the first things I= tried. The=20
>> ::: notes block does the exact same thing as simply \note{...}= . Both of=20
>> them add a frame. Sorry, I wasn't very clear in my tex.se question, but the=20
>> reason I put both the ::: notes block and the \note{...} comma= nd was to=20
>> show that both give the exact same result in the .text file th= at I showed.
>>
>> Thanks!
>> paul
>>
>> On Wednesday, January 19, 2022 at 6:55:43 PM UTC+1 John MacFar= lane wrote:
>>
>>>
>>> What happens if you do this (with current pandoc)?
>>>
>>> % pandoc -t beamer -s -o my.pdf --slide-level=3D2
>>> # Hi
>>>
>>> ::: notes
>>> note
>>> :::
>>>
>>> ## Slide
>>>
>>> ok
>>> ^D
>>>
>>> When I tried this, I did not get an extra page after the s= ection
>>> heading "Hi". (But I'm not sure how to view = the notes with
>>> beamer.)
>>>
>>> Actually, the manual says that "notes" divs are = only supported
>>> for powerpoint and reveal.js. This seems wrong, because be= amer
>>> does now seem to support them. So perhaps the manual needs
>>> updating? But how do you actually use the speaker notes wi= th
>>> beamer?
>>>
>>>
>>>
>>> Paul Gesting <fol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&= gt; writes:
>>>
>>> > I actually have a use case where I would like text un= der a section title=20
>>> to=20
>>> > be outside of a frame. See the question I posted here= =20
>>> > <
>>> https:/= /tex.stackexchange.com/questions/630390/add-a-beamer-note-to-a-section-slid= e-using-pandoc-and-markdown
>>> >
>>> > .
>>> >
>>> > Basically, if I want to add a note to a section title= , I do not want a=20
>>> > blank frame to be added for the note. I want the note= on the section=20
>>> frame.=20
>>> > Is this still possible after the change that is cited= above?
>>> >
>>> > On Sunday, September 13, 2020 at 11:04:16 PM UTC+2 thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org=20
>>> > wrote:
>>> >
>>> >> Here is something that would be different after t= he change:
>>> >>
>>> >> A md like this:
>>> >>
>>> >> ```
>>> >> # Foo
>>> >>
>>> >> Foo
>>> >>
>>> >> ## Bar
>>> >>
>>> >> Bar
>>> >> ```
>>> >>
>>> >> The command: `$ pandoc --slide-level=3D2 -t beame= r -o test.tex test.md`=20
>>> >> produces LaTeX where there is text ('Foo'= ) outside of a frame. If=20
>>> >> ignorefametext is removed from the template, doin= g $ pandoc=20
>>> --slide-level=3D2=20
>>> >> -t beamer -o test.pdf test.md` would give differe= nt results, i.e.,=20
>>> 'Foo'=20
>>> >> would now be printed on a new slide after the sec= tion, rather than not=20
>>> >> appearing at all.
>>> >>
>>> >> On Sunday, 13 September 2020 at 22:26:02 UTC+2 Th= omas Hodgson wrote:
>>> >>
>>> >>> Is there a case where it would be expected th= at something would be=20
>>> >>> written outside a frame, and that it should b= e ignored?
>>> >>>
>>> >>> I have checked the modified template with sec= tions, and with=20
>>> subsections,=20
>>> >>> and without either.
>>> >>>
>>> >>> On Sunday, 13 September 2020 at 21:23:19 UTC+= 2 John MacFarlane wrote:
>>> >>>
>>> >>>>
>>> >>>> We used to ignore stuff outside of frames= .=20
>>> >>>> However, this changed with=20
>>> >>>>
>>> >>>>=20
>>> https://github.com/jgm/pandoc/commit/f431f67b2f2f5071345fa5800658375afa= f44c1b=20
>>> >>>> (somewhat controversially)=20
>>> >>>>
>>> >>>> It may be that after this commit, removin= g ignorenonframetext=20
>>> >>>> would be okay. Maybe someone can test tha= t out (with a lot of=20
>>> >>>> different cases, please).=20
>>> >>>>
>>> >>>> Thomas Hodgson <th= omas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:=20
>>> >>>>
>>> >>>> > The default.latex template uses the = 'ignorenonframetext' for=20
>>> Beamer.=20
>>> >>>> Is=20
>>> >>>> > there a good reason for this? If tha= t was removed from the=20
>>> template,=20
>>> >>>> there=20
>>> >>>> > would be no need to handle making ti= tles differently for beamer and=20
>>> >>>> other=20
>>> >>>> > formats, i.e., it could be done with= `\maketitle` in both cases. I=20
>>> >>>> think=20
>>> >>>> > that that's better when using th= emes that treat a title slide=20
>>> >>>> differently=20
>>> >>>> > from ordinary slides (such as Metrop= olis).=20
>>> >>>> >=20
>>> >>>> > --=20
>>> >>>> > You received this message because yo= u are subscribed to the Google=20
>>> >>>> Groups "pandoc-discuss" group.= =20
>>> >>>> > To unsubscribe from this group and s= top receiving emails from it,=20
>>> send=20
>>> >>>> an email to pandoc-di= scus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.=20
>>> >>>> > To view this discussion on the web v= isit=20
>>> >>>>=20
>>> https://g= roups.google.com/d/msgid/pandoc-discuss/69361063-4c69-4403-85c7-31d943d138f= dn%40googlegroups.com.=20
>>>
>>> >>>>
>>> >>>>
>>> >>>
>>> >
>>> > --=20
>>> > You received this message because you are subscribed = to the Google=20
>>> Groups "pandoc-discuss" group.
>>> > To unsubscribe from this group and stop receiving ema= ils from it, send=20
>>> an email to pandoc-discus...@googlegro= ups.com.
>>> > To view this discussion on the web visit=20
>>> https://g= roups.google.com/d/msgid/pandoc-discuss/81339d69-ff5e-4f9e-8ee5-1d7ba12a9d7= dn%40googlegroups.com
>>> .
>>>
>>
>> --=20
>> You received this message because you are subscribed to the Go= ogle Groups "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from = it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<= /a>.
>> To view this discussion on the web visit
https://groups.google.com/d/msgid/pandoc-discuss/5b= fb6c9d-5237-4849-8dd8-26b6a81f7af9n%40googlegroups.com.

--
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/4a30c413-8ce3-4269-afb9-848f328b8a2dn%40googlegroups.= com.
------=_Part_167_631674616.1642743600535-- ------=_Part_166_622289851.1642743600535--