From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30009 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: Wed, 19 Jan 2022 11:41:46 -0800 (PST) Message-ID: <21f774ba-292f-43ad-a886-92cfc1c146e3n@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> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4004_1524752397.1642621306835" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26784"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJ2VV4Y2UORB66SUGHQMGQEWQUVAKY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 19 20:41:51 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nAGq6-0006oM-Dg for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 19 Jan 2022 20:41:50 +0100 Original-Received: by mail-ot1-f58.google.com with SMTP id f49-20020a9d03b4000000b00593a275b40asf2110596otf.20 for ; Wed, 19 Jan 2022 11:41:50 -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=H7ZFl3Vh+gWnnvjSGx/RILhAqfIFHacZQ5mbYCBNpHk=; b=Gclbqoze+V2MtqFQMuNEzOk7ab6o68AvokopnY5PUxT5qb/9eXC+ux7+QMSJyWiiAh q3NZASk0lIPqZlqspeBeTGY8t01baoCxjmEih4NexBZ4kkKK8lML0RwUMj3PPkGasWAR ODK47TAXbf57+oW1igq9AHMVkJgBKxKfwtz+eWTQE+sMvcW7hYVa1TKrK5WCurWB0M6H L7+Vdt6w50RHjW0ueF7YgQv41cbrnwtNEmO3G131hoOhHtlCO+p8IqZtXg8wQVZXWv4t qAyIjuIaB/Xbj+fz2Uoc8WfBsg9jIz5ytD6IgUQAo78W01INzTQJIzoN2H0mUizh1Mey jBdw== 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=H7ZFl3Vh+gWnnvjSGx/RILhAqfIFHacZQ5mbYCBNpHk=; b=RfnIErh7FHQtxKEt4N7yHe66td6Pn38EcPx6hUytCqEKIQGfHubaVMYjHc9u+DxoJq SJEdyOf05y3s7VbaVl6hllZaaCwm3EhVxxIKA8hc5f+Jk5hshyOMwVSdgL/cTvHR7s91 qij3Ab9KDAqz69z60KSN8opFkjKrTyEtgD1+MVHkHj8t1AQ+DFBeRqrUvBxLZOqyu64/ 5wf1glnXJAzMEsFFX4RtxY6KEKv/RB/Kwdm8BNrOBeWbEO7e1xfxCiIDuhPxyzWH9sBw XDqDRg3XvPT6wIPQZSdxZoBD87xypsr1/vlOhd7tfwMCYyVeEDFCUk2OcjwjLfXrKO26 824w== 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=H7ZFl3Vh+gWnnvjSGx/RILhAqfIFHacZQ5mbYCBNpHk=; b=AlU2jVWQ57IJeTunpnedHrXf0nfdLDZy3+W8chmor6gY0cl7qiGIdiWZ/OwEDfr+NE VExq8mATQ7O+eC7tJaJFtUUFx/hNZPLZn9lz2bpergzUNPU/n2MSXMtFcMG1MENbO4P/ 8xZvlUB7dTGgdzW2x1nr2Ru+Y38hR5+jyZ9rW0pFlgCpVkzREjJXsn53u10KlU1Cka1U Wq3XxFf0otjAP71ZMkwHcpxYl42nZIRGjZODud5vEl8gDKoxvZw7ojZ/k9Gt8iN6YhAW ken77qXdqqGr40Zkde3tGgWRBhnJ9FbxsiXUbZw2ZMy91WZlAOZZUE/DV7MebasRAGmr 5Xpw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530VZlR7y3cHacwg+yS3ekff6Noel6EPzfaOBFr6cXB+Wc/XLW6d gkdzfqJQuQoS3JM9UqFDWN4= X-Google-Smtp-Source: ABdhPJzvgD9qgEcYgB/uKs8X0PNJB6xbRFNyLg9j9IfE52ny2rKPXm59M5t4sbz+WdNdLReDWCLiRg== X-Received: by 2002:a05:6830:20c3:: with SMTP id z3mr11753148otq.355.1642621309300; Wed, 19 Jan 2022 11:41:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1b29:: with SMTP id bx41ls972272oib.5.gmail; Wed, 19 Jan 2022 11:41:47 -0800 (PST) X-Received: by 2002:a05:6808:1442:: with SMTP id x2mr4629134oiv.25.1642621307388; Wed, 19 Jan 2022 11:41:47 -0800 (PST) In-Reply-To: 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:30009 Archived-At: ------=_Part_4004_1524752397.1642621306835 Content-Type: multipart/alternative; boundary="----=_Part_4005_1773651584.1642621306835" ------=_Part_4005_1773651584.1642621306835 Content-Type: text/plain; charset="UTF-8" Sorry John, I forgot to answer your last question! Yes, the ::: notes div does work with beamer. Pandoc simply translates it into \note{...} in the tex file (see the tex code in my tex.se question). So I think it is actually pandoc that is supporting it for beamer, not beamer itself. What you can do with beamer (see the beamer manual, chapter 22, specifically 22.2), is to have a second "set" of slides with your personal notes. Technically they are typeset next to each other in a double wide document. But then there are multiple pdf viewers that will split it across multiple screens. So then on one screen you have your slides (your projector or screen share) and then on the other screen (laptop) you have your notes along with a preview of the upcoming slide, etc. So I want some notes on the section slide to remind me of what to talk about, even on section slides. If I simply remove the \begin{frame} and \end{frame} from around the \note{...} and then re-compile with latex, it works as expected. Which means that beamer can handle the \note{...} command outside a frame (as expected, see ch 19 in the beamer documentation). So all I really need is a way to "bypass" pandoc creating a frame. I have tried all the ways of passing pure LaTeX that I can find in the pandoc manual, and they all create a frame. I understand wanting to keep it so that reveal.js and beamer "act" the same normally. However, this doesn't necessarily mean that there cannot be some option to bypass this normal way of working to pass pure LaTeX commands, right? I know it would mean extra development work (if it is not already possible), but it appears there are are at least 2 use cases for it. 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/21f774ba-292f-43ad-a886-92cfc1c146e3n%40googlegroups.com. ------=_Part_4005_1773651584.1642621306835 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry John, I forgot to answer your last question!

Yes, = the ::: notes div does work with beamer. Pandoc simply translates it into \= note{...} in the tex file (see the tex code in my tex.se question). So I th= ink it is actually pandoc that is supporting it for beamer, not beamer itse= lf.

What you can do with beamer (see the beamer ma= nual, chapter 22, specifically 22.2), is to have a second "set" of slides w= ith your personal notes. Technically they are typeset next to each other in= a double wide document. But then there are multiple pdf viewers that will = split it across multiple screens. So then on one screen you have your slide= s (your projector or screen share) and then on the other screen (laptop) yo= u have your notes along with a preview of the upcoming slide, etc.

So I want some notes on the section slide to remind me of = what to talk about, even on section slides.

If I s= imply remove the \begin{frame} and \end{frame} from around the \note{...} a= nd then re-compile with latex, it works as expected. Which means that beame= r can handle the \note{...} command outside a frame (as expected, see ch 19= in the beamer documentation). So all I really need is a way to "bypass" pa= ndoc creating a frame. I have tried all the ways of passing pure LaTeX that= I can find in the pandoc manual, and they all create a frame.
I understand wanting to keep it so that reveal.js and beamer "= act" the same normally. However, this doesn't necessarily mean that there c= annot be some option to bypass this normal way of working to pass pure LaTe= X commands, right? I know it would mean extra development work (if it is no= t already possible), but it appears there are are at least 2 use cases for = it.

Thanks
paul

On Wednesday, Janua= ry 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=3D2
# 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 wi= th
beamer.)

Actually, the manual says that "notes" divs are only supporte= d
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 <fol...@gmai= l.com> writes:

> I actually have a use case where I would like text under a section= title to=20
> be outside of a frame. See the question I posted here=20
> <https://t= ex.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 wa= nt a=20
> blank frame to be added for the note. I want the note on the secti= on 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 the change:
>>
>> A md like this:
>>
>> ```
>> # Foo
>>
>> Foo
>>
>> ## Bar
>>
>> Bar
>> ```
>>
>> The command: `$ pandoc --slide-level=3D2 -t beamer -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, doing $ pandoc --= slide-level=3D2=20
>> -t beamer -o test.pdf test.md` would give different results, i= .e., 'Foo'=20
>> would now be printed on a new slide after the section, rather = than not=20
>> 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=20
>>> written outside a frame, and that it should be ignored?
>>>
>>> I have checked the modified template with sections, and wi= th subsections,=20
>>> and without either.
>>>
>>> On Sunday, 13 September 2020 at 21:23:19 UTC+2 John MacFar= lane wrote:
>>>
>>>>
>>>> We used to ignore stuff outside of frames.=20
>>>> However, this changed with=20
>>>>
>>>> https://github.com/jgm/pandoc/commit/f431f67b2f2f5071345fa580065837= 5afaf44c1b=20
>>>> (somewhat controversially)=20
>>>>
>>>> It may be that after this commit, removing ignorenonfr= ametext=20
>>>> would be okay. Maybe someone can test that out (with a= lot of=20
>>>> different cases, please).=20
>>>>
>>>> Thomas Hodgson <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:=20
>>>>
>>>> > The default.latex template uses the 'ignoreno= nframetext' for Beamer.=20
>>>> Is=20
>>>> > there a good reason for this? If that was removed= from the template,=20
>>>> there=20
>>>> > would be no need to handle making titles differen= tly 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 themes that tre= at a title slide=20
>>>> differently=20
>>>> > from ordinary slides (such as Metropolis).=20
>>>> >=20
>>>> > --=20
>>>> > You received this message because you are subscri= bed to the Google=20
>>>> Groups "pandoc-discuss" group.=20
>>>> > To unsubscribe from this group and stop receiving= emails from it, send=20
>>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.=20
>>>> > To view this discussion on the web visit=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= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8133= 9d69-ff5e-4f9e-8ee5-1d7ba12a9d7dn%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/21f774ba-292f-43ad-a886-92cfc1c146e3n%40googlegroups.= com.
------=_Part_4005_1773651584.1642621306835-- ------=_Part_4004_1524752397.1642621306835--