From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25985 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Chevrier Newsgroups: gmane.text.pandoc Subject: Re: Pandoc #4317 side effect Date: Mon, 24 Aug 2020 20:54:56 -0700 (PDT) Message-ID: References: <6a083675-a292-4bad-9ff4-8d834c477239@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1014_580607568.1598327696186" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30157"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI5RYHTR4KRBEMXSL5AKGQEKMRIWMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 05:55:01 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f184.google.com ([209.85.167.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAQ32-0007fz-V6 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 05:55:01 +0200 Original-Received: by mail-oi1-f184.google.com with SMTP id v188sf1798759oie.6 for ; Mon, 24 Aug 2020 20:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=bYWD0DmmLN4zNf65Rn3b+qstKADrheFXBNqGZPqsBNg=; b=m8Czd7wNdMOKqZlib/hA40mjA0oRAd8e9Jttoau5LPXc/m2ex55/Df5Jzu9yyewyxp rwkL4uSEII4ltMfTescO+XmACq60ZUYGoE9ri/Hrc+gmwxzZJkO6dGlp+Q2VmwpOAifR V4pFBYtkM7fb0o31Ry4/kL08VwMi5mMd3czwymfc4d/+gHPU0rlBcD+NGvdLSvCNylLB l1hMM1+V1x1YxgK5ZnZgnCDBGCeb9876ESbgyo5Ztqm332UQqAYzt2gxuvsXKuq7PBnr BKBIS2I/ArrCyQHdmrBEnCj/IlnmV5bHP+nwwweEkntUveroUFfbARPC6wWGOcKtV9Wy dglw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=bYWD0DmmLN4zNf65Rn3b+qstKADrheFXBNqGZPqsBNg=; b=A8XblMo4QJi08lIwRMSRQqWZZRiFT/hyfihBE4dx+aI8BbJSjO1xVeZGDqM59w/ki5 Z+TaGBIhbguq+8luQh7gzByVGD9n/kwS1QeQ0Tx3oE2FFY1D+FarlPY2VI/CAZzP+KYG VR/Nfz3H3j92+LPKNH3eFGAd/tN3FQT/XFbh83fFmtZf0jMgHhsauxLvy28T7Woe3ngy z12ZvBAU4QTO2JvtEElFoupsBg96kXIs+xXG2FJNUltcpSiG1UWGSOfobgTpF2lRXNYl anQtFv9LIMBjLwM6eG+LHBhiz1hcZUmlj+mvcNy8UJHuoRvYIf/BQJC1x4NePvF7+GER MzeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=bYWD0DmmLN4zNf65Rn3b+qstKADrheFXBNqGZPqsBNg=; b=YNG+H6TEcswIQy7Lbx7dyGwKZwKToWfI8LVtpGIRvTk6QZ9KjIh/2Bi5L08cRlV86v b9YzBH25DjEG65Hyx1lzatQsMoTfQoobL8fF0CA26qxf0K3tB9FnmMd+LL2BzQcLRv1n DTERYSt1/t/UsVdabHdZZUTmp8ieW2whmwshRrU+rRTPxYwd8aZeo+bEQQ08/ZFvroYo qwzTlee+3byCECNZBoIRsAVE/uwXsY6nFWfvyrltAHHF9U92P8KD90tjqusk7brIf68j 1yyOmW/grEUZRUnzQcWgzdVXR2lWj5SCNBWbq9W3EgVhQOcWbHG0BI9MDcku4GZFrVCF MyKg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531wQpsfTqrp076+o0sIuK15NdOFv+Qk6tFCE2r1MRyn+MWqCDEM Y26A+y9RUB1gvmwoZpXHutw= X-Google-Smtp-Source: ABdhPJxMNtkVDP1mZ+b45RuHDg77NK29fIxAZCgeexN35o01bWtPdjikRQV5YKQjf/i9CxO0aU6ceA== X-Received: by 2002:aca:724c:: with SMTP id p73mr1506201oic.123.1598327699902; Mon, 24 Aug 2020 20:54:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:4a97:: with SMTP id i23ls2608331otf.7.gmail; Mon, 24 Aug 2020 20:54:57 -0700 (PDT) X-Received: by 2002:a9d:1905:: with SMTP id j5mr2875992ota.283.1598327697045; Mon, 24 Aug 2020 20:54:57 -0700 (PDT) In-Reply-To: X-Original-Sender: tchevri-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:25985 Archived-At: ------=_Part_1014_580607568.1598327696186 Content-Type: multipart/alternative; boundary="----=_Part_1015_1104162168.1598327696186" ------=_Part_1015_1104162168.1598327696186 Content-Type: text/plain; charset="UTF-8" First of all, thank you so much for taking the time to reply - really much appreciated, all the more given how busy I see you are, with so many awesome improvements. I love this "raw beamer" attribute, might make my document a lot more readable, yet to try it for other purposes. Unfortunately, this suggested solution does not help the issue at stake. The issue is for the content not to get forced slapped onto a slide. To create a new title page, I need the following piece of code: \mode { \title[\CourseName{} Lecture 1]{\CourseName{} \newline \, Lecture 1} \date{\DayOne{}\Yr{}} } ### \titlepage And this {...} code cannot sit inside a frame or a latex error is thrown (! Illegal parameter number in definition of \iterate.). After 2.7 - there is no more option for me to write content outside a frame - everything is forced into a frame. "raw beamer" attribute does not escape this behavior unfortunately. Hence my suggestion last night - i don't know if that would be acceptable or even useful? But i have been thinking that I am perfectly fine with level -2 content not being forced onto slides. >From what I read, it looks like reveal.js users only need level -1 content slapped onto slides? Of course, I'd be happy with any other solution you think is best. Many thank thomas On Tuesday, August 25, 2020 at 4:00:22 AM UTC+8 John MacFarlane wrote: > > If you use the raw attribute to mark up content as "raw beamer," > as suggested earlier in this thread, it will not appear in > reveal.js output. Demo here: > > > https://pandoc.org/try/?text=%23+Introduction%0A%0A%60%60%60%7B%3Dbeamer%7D%0AHey+this+is+raw+beamer!%0A%60%60%60%0A%0A%23%23+Slide+one%0A%0Acontent%0A%0A%23%23%23+Vertical+slide%0A%0Acontent+vertical%0A&from=markdown&to=revealjs&standalone=0 > > > Thomas Chevrier writes: > > > Hi folks, > > > > it's been exactly a year now and I am still not able to upgrade my > version > > of Pandoc - stuck pre 2.7, because of the adverse change. > > Indeed, the "upgrade" for reveal.js users caused my latex beamer code to > > break down. > > I have tried multiple things without luck - I also tried a lua filter, > but > > that did not work - no matter what, the content gets "slapped" onto a > slide. > > As JGM suggests (was great watching him talk about Pandoc at TUG 2020 > > keynote address), I'd love to be able to simply be able to have content > > escape being slapped onto a slide - I believe that's precisely the > spirit > > of Beamer, which uses heavily for that purpose. > > I also thought that was the spirit of pandoc - as you were setting in > the > > yaml header your level for displaying on slides, but i have been clearly > > proven wrong. :-( > > One option would be to recompile pandoc without that change, but because > of > > the bloomberg API, I am forced to be on windows, which would make this > > solution cumbersome at best (would be straightforward on linux though). > > > > FYI, I posted back then on SO, got only 2 upvotes and 2 bookmarks, but > no > > answer, not even a comment :-( > > > https://stackoverflow.com/questions/57614387/pandoc-4317-forces-content-under-title-slides-to-be-included-in-a-frame-in-pand > > > > > > Could anyone *please* help me? > > many thanks in advance > > thomas > > > > > > On Wednesday, August 28, 2019 at 12:23:15 AM UTC+8 John MacFarlane wrote: > > > >> > >> To summarize the issue here, which concerns a change to slide > >> show formats: > >> > >> Prior to 2.7, versions of pandoc only put material under the "slide > >> level" headings on slides. If you set slide level to 2, then > >> only material under level-2 headings would appear on slides, > >> and text under level-1 headings would not appear at all > >> (though level-1 headings would create "title slides" with > >> just the section title). > >> > >> Reveal.js users consistently complained (#4317, #5237) that > >> this made it hard to structure reveal.js 2D slide shows, in > >> which it is common to have the "top" slide on each column > >> contain both a title and some text. > >> > >> In response, I changed pandoc in 2.7 -- as the changelog says, > >> > >> > Slide show formats behavior change: content under headers less > >> > than slide level is no longer ignored, but included in the title > >> > slide (for HTML slide shows) or in a slide after the title slide > >> > (for beamer). This change makes possible 2D reveal.js slideshows > >> > with content in the top slide on each stack (#4317, #5237). > >> > >> The change to reveal.js has been welcomed by reveal.js users, > >> but the change to beamer is apparently not welcome by everyone. > >> The reason I made the change to both formats is because I want > >> slide shows to work the same no matter what output format you > >> use. (So you can switch from beamer to reveal.js, for example, > >> and the slides will look more or less the same.) > >> > >> I had thought the beamer change was innocuous, since it could > >> be worked around by people who wanted to include content under > >> top-level section headings but not in the slides, e.g. by using > >> a filter to strip out this content. > >> > >> Unfortunately, Thomas Chevrier's use case can't be handled that > >> way. He wants to insert raw tex commands that (a) can't be > >> stripped out but (b) only work if they're outside the > >> 'frame' environment created for a slide. I can't think of any > >> workaround for this. > >> > >> One possible course of action would be to revert the beamer > >> change while keeping the reveal.js change. This would potentially > >> have two bad consequences: > >> > >> 1) slide shows would render differently (in content, not just > >> form) in reveal.js and beamer. > >> > >> 2) this may break slide shows that were constructed using the > >> new behavior since 2.7 was released. > >> > >> A less radical change might be to introduce special Div whose > >> contents get moved outside the slide itself. Anyway, comments > >> welcome. > >> > >> > >> > > > > -- > > 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/c4db2ddc-b3b0-4c62-a8bb-8a601e37dc48n%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/aec295b6-4974-4d14-9a5e-6a3538683111n%40googlegroups.com. ------=_Part_1015_1104162168.1598327696186 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
First of all, thank you so much for taking the time t= o reply - really much appreciated, all the more given how busy I see you ar= e, with so many awesome improvements.
I love this "ra= w beamer" attribute, might make my document a lot more readable, yet t= o try it for other purposes.
Unfortunately, this suggested sol= ution does not help the issue at stake.

The is= sue is for the content not to get forced slapped onto a slide.
To= create a new title page, I need the following piece of code:
\mo= de<presentation>
  {
    \title[\CourseName{} Le= cture 1]{\CourseName{} \newline \, Lecture 1}
    \date{\DayOn= e{}\Yr{}}
  }
  ###
  \titlepage

=
And this {...} code cannot sit inside a frame or a latex error i= s thrown (! Illegal parameter number in definition of \iterate.).
After 2.7 - there is no more option for me to write content outside a fram= e - everything is forced into a frame.
"raw beamer" attribute doe= s not escape this behavior unfortunately.

Hence my= suggestion last night - i don't know if that would be acceptable or even u= seful?
But i have been thinking that I am perfectly fine with lev= el -2 content not being forced onto slides.
From what I read, it = looks like reveal.js users only need level -1 content slapped onto slides?<= /div>
Of course, I'd be happy with any other solution you think is best= .

Many thank
thomas

On Tuesday, Au= gust 25, 2020 at 4:00:22 AM UTC+8 John MacFarlane wrote:

If you use the raw attribute to mark up content as "raw beamer,&qu= ot;
as suggested earlier in this thread, it will not appear in
reveal.js output. Demo here:

https://pandoc.org/= try/?text=3D%23+Introduction%0A%0A%60%60%60%7B%3Dbeamer%7D%0AHey+this+is+ra= w+beamer!%0A%60%60%60%0A%0A%23%23+Slide+one%0A%0Acontent%0A%0A%23%23%23+Ver= tical+slide%0A%0Acontent+vertical%0A&from=3Dmarkdown&to=3Drevealjs&= amp;standalone=3D0


Thomas Chevrier <tch...@g= mail.com> writes:

> Hi folks,
>
> it's been exactly a year now and I am still not able to upgrad= e my version=20
> of Pandoc - stuck pre 2.7, because of the adverse change.
> Indeed, the "upgrade" for reveal.js users caused my late= x beamer code to=20
> break down.
> I have tried multiple things without luck - I also tried a lua fil= ter, but=20
> that did not work - no matter what, the content gets "slapped= " onto a slide.
> As JGM suggests (was great watching him talk about Pandoc at TUG 2= 020=20
> keynote address), I'd love to be able to simply be able to hav= e content=20
> escape being slapped onto a slide - I believe that's precisely= the spirit=20
> of Beamer, which uses <mode> heavily for that purpose.
> I also thought that was the spirit of pandoc - as you were setting= in the=20
> yaml header your level for displaying on slides, but i have been c= learly=20
> proven wrong. :-(
> One option would be to recompile pandoc without that change, but b= ecause of=20
> the bloomberg API, I am forced to be on windows, which would make = this=20
> solution cumbersome at best (would be straightforward on linux tho= ugh).
>
> FYI, I posted back then on SO, got only 2 upvotes and 2 bookmarks,= but no=20
> answer, not even a comment :-(
> https://stackoverflow.com/questions/57614387/pandoc-4317-for= ces-content-under-title-slides-to-be-included-in-a-frame-in-pand
> =20
>
> Could anyone *please* help me?
> many thanks in advance
> thomas
>
>
> On Wednesday, August 28, 2019 at 12:23:15 AM UTC+8 John MacFarlane= wrote:
>
>>
>> To summarize the issue here, which concerns a change to slide= =20
>> show formats:=20
>>
>> Prior to 2.7, versions of pandoc only put material under the &= quot;slide=20
>> level" headings on slides. If you set slide level to 2, t= hen=20
>> only material under level-2 headings would appear on slides,= =20
>> and text under level-1 headings would not appear at all=20
>> (though level-1 headings would create "title slides"= with=20
>> just the section title).=20
>>
>> Reveal.js users consistently complained (#4317, #5237) that=20
>> this made it hard to structure reveal.js 2D slide shows, in=20
>> which it is common to have the "top" slide on each c= olumn=20
>> contain both a title and some text.=20
>>
>> In response, I changed pandoc in 2.7 -- as the changelog says,= =20
>>
>> > Slide show formats behavior change: content under headers= less=20
>> > than slide level is no longer ignored, but included in th= e title=20
>> > slide (for HTML slide shows) or in a slide after the titl= e slide=20
>> > (for beamer). This change makes possible 2D reveal.js sli= deshows=20
>> > with content in the top slide on each stack (#4317, #5237= ).=20
>>
>> The change to reveal.js has been welcomed by reveal.js users,= =20
>> but the change to beamer is apparently not welcome by everyone= .=20
>> The reason I made the change to both formats is because I want= =20
>> slide shows to work the same no matter what output format you= =20
>> use. (So you can switch from beamer to reveal.js, for example,= =20
>> and the slides will look more or less the same.)=20
>>
>> I had thought the beamer change was innocuous, since it could= =20
>> be worked around by people who wanted to include content under= =20
>> top-level section headings but not in the slides, e.g. by usin= g=20
>> a filter to strip out this content.=20
>>
>> Unfortunately, Thomas Chevrier's use case can't be han= dled that=20
>> way. He wants to insert raw tex commands that (a) can't be= =20
>> stripped out but (b) only work if they're outside the=20
>> 'frame' environment created for a slide. I can't t= hink of any=20
>> workaround for this.=20
>>
>> One possible course of action would be to revert the beamer=20
>> change while keeping the reveal.js change. This would potentia= lly=20
>> have two bad consequences:=20
>>
>> 1) slide shows would render differently (in content, not just= =20
>> form) in reveal.js and beamer.=20
>>
>> 2) this may break slide shows that were constructed using the= =20
>> new behavior since 2.7 was released.=20
>>
>> A less radical change might be to introduce special Div whose= =20
>> contents get moved outside the slide itself. Anyway, comments= =20
>> welcome.=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/c4db= 2ddc-b3b0-4c62-a8bb-8a601e37dc48n%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/aec295b6-4974-4d14-9a5e-6a3538683111n%40googlegroups.= com.
------=_Part_1015_1104162168.1598327696186-- ------=_Part_1014_580607568.1598327696186--