From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25989 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: Tue, 25 Aug 2020 10:06:38 -0700 (PDT) Message-ID: <73f0ad6f-f17d-424a-abe6-e8e29e9c7f2en@googlegroups.com> 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_586_183882242.1598375198894" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33547"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCI5RYHTR4KRBIEKSX5AKGQE25WVT2Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 19:06:44 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f186.google.com ([209.85.167.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAcPD-0008bu-Tq for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 19:06:44 +0200 Original-Received: by mail-oi1-f186.google.com with SMTP id c189sf6232269oib.2 for ; Tue, 25 Aug 2020 10:06:43 -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=UD5Guwc56UJ7ZeKUR6qPa3Jc1gKQl3EbG4etz0Un0p8=; b=OvU67WC/ZbPUwA9GvCSVEHxmo7xMK2OTGjQBW/4rPyPGSJRm3G/D/wMcG8aYbJDalm VhggFEYVGjx8qFrXWViJT3fjSgWYhScNPnTXkTMtsjLCAe+FzRm/1ie8/pXtqLrqYsPt 1zqQ2xUaHfwi8LXNUf5683hFgevzKD9a7/iOc5c7l9RwLDl4EuE7cJBZfe578qwrPJPv 2LRRDMym+SYc5mmUNsHdokc+4Hcn5HTtMgfm/GBWxtlGvAY9Zpxa2yl/VBzB0jMhL1Rc sqbh59Z64qvi+xeIrjvtMpGcHxHFHXc2YnK36VI7QYYowqCYeHIn3bpU5PaZLczTBd46 Xq5g== 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=UD5Guwc56UJ7ZeKUR6qPa3Jc1gKQl3EbG4etz0Un0p8=; b=Lv8oYttTil3EWGkN/72KpAj43pUI8vswD4EhBbA+0Zv/AE5pZ7umyHUpTBzl9oVp3g L9wRWvL2RQDaCG2bA/Hc9XAkMJvR4qJJuTk5q2Twlp4i/4dPJ8lN/vIdVb4KxeRmw77O ZUPT/EeKgIecp4jsN7A0413nEmICoaNPh8somkYprhvGgVyVcSDbYqVm1IwEwpt+VK2B gTP2FcEkZXr8u7TBh5SY87UabfRA3D782xdPDpXD7LfUeKua6Dv8djqN1Xl4OXKrhKmE smXQGGyIfkvV/Qv/7y9bmOn49nq+GgYHsac5pRtl3JozvY3F1znzigGw99KVfffpDq7s 2FIA== 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=UD5Guwc56UJ7ZeKUR6qPa3Jc1gKQl3EbG4etz0Un0p8=; b=VD4SVvhqQhJCnAEgC8b6UDTZ83eaTtcWrwYg6IWJdvVYzOMZL7IiOy0L2OWe1f6+HB Xiln6LWhLDpUrXAFQOWWZCtZqprAqgknyBSYY0lTUc53Pi9w2svEkpKyUBMmcQQu1VtA Gubgr/IVGfdhrx6YzMvpDFfPyW8pU2d3EyNut3fc6VzGpT9kaKWVuVbrDNuWK3/zneg6 goO2parKeqsCWxIrGmnlxVSNe+ViB/33J8qUGeFfxvtqOG9WX0zabzDOdhFkLv9dYNSj eMw12kXyleTpT1iZPTUyHAgeJntZ1mVuMekuYYJDG6ADsXVelQz7fPI0yEcrvfVTlBV8 NOAA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532qdFL4Uhh42ZdOUBNB/ihT1P7BIM+35M0qXWF8YWBqEMXS9bTC 74VWSkMrCGWmHoWyDljtA6k= X-Google-Smtp-Source: ABdhPJyrYFR/nSy/jNCPEEA/+qrC4iyKEIZ/GxVhghS2jkI37ONJT+0UEM8OJADeF9ci38FfxjB2nA== X-Received: by 2002:aca:7512:: with SMTP id q18mr1482903oic.116.1598375202825; Tue, 25 Aug 2020 10:06:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:5f98:: with SMTP id g24ls1301275oti.10.gmail; Tue, 25 Aug 2020 10:06:39 -0700 (PDT) X-Received: by 2002:a9d:b8c:: with SMTP id 12mr6714137oth.332.1598375199629; Tue, 25 Aug 2020 10:06:39 -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:25989 Archived-At: ------=_Part_586_183882242.1598375198894 Content-Type: multipart/alternative; boundary="----=_Part_587_1008236083.1598375198894" ------=_Part_587_1008236083.1598375198894 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you again John for taking the time again and again to respond -=20 totally appreciated, it's amazing. As a consequence, I took the entire day to try your solution, google=20 frantically, but I failed miserably. I will spare you the details of everything I tried, but here is what i=20 think is my best attempt: .1. =20 Read carefully: https://bookdown.org/yihui/rmarkdown/template-pandoc.html .2.=20 Download default.latex from your website:=20 https://github.com/jgm/pandoc-templates .3.=20 Rename the file to my-template.tex and, as per your email, line 460 just=20 before $body$, add: $if(dayone)$ \mode { \title[\CourseName{} Lecture $lecture-number$]{\CourseName{} \newline= =20 \, Lecture $lecture-number$} \date{\DayOne{}\Yr{}} } ### \titlepage $endif$ .4.=20 In my bookdown, add the $dayone$ custom Pandoc variable # Notations {#notations} ## Mathematics $dayone$ ```{r Lecture1Outline, eval =3D (out_type=3D=3D"beamer"), echo=3DFALSE,=20 results=3D'asis'} ``` ```{r Lecture1Slide1, eval =3D (out_type=3D=3D"beamer"), echo=3DFALSE,=20 results=3D'asis'} ``` `r if (out_type=3D=3D"beamer") "- "` $h =3D \left(h_{1}, h_{2}, \ldots,=20 h_{n}\right)$ denotes a vector (lowercase) etc. etc... .5. add "template: my-template.tex" to my YAML so that "--template=20 my-template.tex" is being correctly added as an option to Pandoc. OUTCOME: I still get the undesired slide... "... Mathematics =F0=9D=91=91=F0=9D=91=8E=F0=9D=91=A6=F0=9D=91=9C=F0=9D=91=9B=F0=9D=91=92 ..." I check the .rmd file. It has=20 # Notations {#notations} ## Mathematics $dayone$ etc. etc... the .tex file has: \hypertarget{mathematics}{% \subsection{Mathematics}\label{mathematics}} \begin{frame}{Mathematics} \(dayone\) \end{frame} I am so sorry - I feel crummy I could not figure this one out after so many= =20 hours and I Thank you in advance for any further help on this issue that=20 has drawn me for nearly 18 months. Many thanks thomas PS: note that I have=20 before_body: beamer_prefix.tex and that works well for setting the initial cover page (syllabus) - the=20 issue is really after, as I used this mode to redefine the=20 elements of the title slide on the fly (day 1, 2, etc of the course) On Tuesday, August 25, 2020 at 12:22:26 PM UTC+8 John MacFarlane wrote: > > If that's what you need, then a custom template could provide it. > Just add this stuff to a custom template, with variables in the > varying parts: > > \mode > { > \title[\CourseName{} Lecture $lecture-number$]{\CourseName{} \newline \,= =20 > Lecture $lecture-number$} > \date{\DayOne{}\Yr{}} > } > ### > \titlepage > > $body$ > > "Chevrier, Thomas" writes: > > > First of all, thank you so much for taking the time to reply - really= =20 > 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 throw= n=20 > (! > > Illegal parameter number in definition of \iterate.). > > After 2.7 - there is no more option for me to write content outside a= =20 > 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 acceptab= le > > or even useful? > > But i have been thinking that I am perfectly fine with level -2 content= =20 > not > > being forced onto slides. > > From what I read, it looks like reveal.js users only need level -1=20 > content > > slapped onto slides? > > Of course, I'd be happy with any other solution you think is best. > > > > Many thank > > thomas > > > > > > On Tue, Aug 25, 2020 at 4:00 AM John MacFarlane =20 > 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: > >> > >> > >>=20 > https://pandoc.org/try/?text=3D%23+Introduction%0A%0A%60%60%60%7B%3Dbeame= r%7D%0AHey+this+is+raw+beamer!%0A%60%60%60%0A%0A%23%23+Slide+one%0A%0Aconte= nt%0A%0A%23%23%23+Vertical+slide%0A%0Acontent+vertical%0A&from=3Dmarkdown&t= o=3Drevealjs&standalone=3D0 > >> > >> > >> 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 cod= e=20 > to > >> > break down. > >> > I have tried multiple things without luck - I also tried a lua filte= r, > >> 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 202= 0 > >> > keynote address), I'd love to be able to simply be able to have=20 > 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 i= n > >> the > >> > yaml header your level for displaying on slides, but i have been=20 > clearly > >> > proven wrong. :-( > >> > One option would be to recompile pandoc without that change, but=20 > because > >> of > >> > the bloomberg API, I am forced to be on windows, which would make th= is > >> > solution cumbersome at best (would be straightforward on linux=20 > though). > >> > > >> > FYI, I posted back then on SO, got only 2 upvotes and 2 bookmarks, b= ut > >> no > >> > answer, not even a comment :-( > >> > > >>=20 > https://stackoverflow.com/questions/57614387/pandoc-4317-forces-content-u= nder-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= =20 > 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, se= nd > >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To view this discussion on the web visit > >>=20 > https://groups.google.com/d/msgid/pandoc-discuss/c4db2ddc-b3b0-4c62-a8bb-= 8a601e37dc48n%40googlegroups.com > >> . > >> > --=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/73f0ad6f-f17d-424a-abe6-e8e29e9c7f2en%40googlegroups.com. ------=_Part_587_1008236083.1598375198894 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thank you again John for taking the time again and again to = respond - totally appreciated, it's amazing.

As a conseq= uence, I took the entire day to try your solution, google frantically, but = I failed miserably.
I will spare you the details of everything I = tried, but here is what i think is my best attempt:

.1.  

.2. 
Download default.latex from your website: https://github.com/jgm/pandoc-templates<= div>
.3. 
Rename the file to my-template.tex a= nd, as per your email, line 460 just before $body$, add:
$if= (dayone)$
\mode<presentation>
   {
     \title[\CourseName{} Lecture $lecture-number$]{\C= ourseName{} \newline \, Lecture $lecture-number$}
    &= nbsp;\date{\DayOne{}\Yr{}}
   }
   = ###
   \titlepage
$endif$
.4. 
In my bookdown,  add the $dayone$ cust= om Pandoc variable
# Notations {#notations}
## Mat= hematics
$dayone$
```{r Lecture1Outline, eval =3D (= out_type=3D=3D"beamer"), echo=3DFALSE, results=3D'asis'}
```
```{r Lecture1Slide1, eval =3D (out_type=3D=3D"beamer"), e= cho=3DFALSE, results=3D'asis'}
```
`r if (out_type=3D= =3D"beamer") "- "` $h =3D \left(h_{1}, h_{2}, \ldots, h_{n}\right)$ denotes= a vector (lowercase)

etc. etc...
=
.5.
add "template: my-template.tex" to my YAML so = that "--template my-template.tex" is being correctly added as an option to = Pandoc.

OUTCOME:

I still = get the undesired slide...
"...
Mathematics
<= div>=F0=9D=91=91=F0=9D=91=8E=F0=9D=91=A6=F0=9D=91=9C=F0=9D=91=9B=F0=9D=91= =92
..."

I check the .rmd file.
It has 
<!--chapter:end:index.Rmd-->
<= /div>
# Notations {#notations}
## Mathematics
$dayone$
etc. etc...

the .t= ex file has:

\hypertarget{mathematics}{%
\subsection{Mathematics}\label{mathematics}}
\begin{frame}{= Mathematics}
\(dayone\)
\end{frame}
I am so sorry - I feel crummy I could not figure this one out a= fter so many hours and I Thank you in advance for any further help on this = issue that has drawn me for nearly 18 months.
Many thanks
thomas

PS: note that I have 
before_body: beamer_prefix.tex
and that works well for setti= ng the initial cover page (syllabus) - the issue is really after, as I used= this mode<presentation> to redefine the elements of the title slide = on the fly (day 1, 2, etc of the course)

On Tuesday, August 25, = 2020 at 12:22:26 PM UTC+8 John MacFarlane wrote:

If that's what you need, then a custom template could provide it.
Just add this stuff to a custom template, with variables in the
varying parts:

\mode<presentation>
{
\title[\CourseName{} Lecture $lecture-number$]{\CourseName{} \newl= ine \, Lecture $lecture-number$}
\date{\DayOne{}\Yr{}}
}
###
\titlepage

$body$

"Chevrier, Thomas" <t...-ACPurvaskuAAcGGWjIcM5Q@public.gmane.org> writes:

> First of all, thank you so much for taking the time to reply - rea= lly much
> appreciated, all the more given how busy I see you are, with so ma= ny
> awesome improvements.
> I love this "raw beamer" attribute, might make my docume= nt 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 slid= e.
> To create a new title page, I need the following piece of code:
> \mode<presentation>
> {
> \title[\CourseName{} Lecture 1]{\CourseName{} \newline \, Lect= ure 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 outsid= e a frame
> - everything is forced into a frame.
> "raw beamer" attribute does not escape this behavior unf= ortunately.
>
> 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 co= ntent 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 b= est.
>
> Many thank
> thomas
>
>
> On Tue, Aug 25, 2020 at 4:00 AM John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
>
>>
>> If you use the raw attribute to mark up content as "raw b= eamer,"
>> as suggested earlier in this thread, it will not appear in
>> reveal.js output. Demo here:
>>
>>
>> https://p= andoc.org/try/?text=3D%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=3Dmarkdown&to= =3Drevealjs&standalone=3D0
>>
>>
>> Thomas Chevrier <tch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 cause= d 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 &quo= t;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 ab= le to have content
>> > escape being slapped onto a slide - I believe that's = precisely the
>> spirit
>> > of Beamer, which uses <mode> heavily for that purpo= se.
>> > I also thought that was the spirit of pandoc - as you wer= e setting in
>> the
>> > yaml header your level for displaying on slides, but i ha= ve been clearly
>> > proven wrong. :-(
>> > One option would be to recompile pandoc without that chan= ge, but because
>> of
>> > the bloomberg API, I am forced to be on windows, which wo= uld 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 b= ookmarks, 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 M= acFarlane wrote:
>> >
>> >>
>> >> To summarize the issue here, which concerns a change = to slide
>> >> show formats:
>> >>
>> >> Prior to 2.7, versions of pandoc only put material un= der the "slide
>> >> level" headings on slides. If you set slide leve= l to 2, then
>> >> only material under level-2 headings would appear on = slides,
>> >> and text under level-1 headings would not appear at a= ll
>> >> (though level-1 headings would create "title sli= des" with
>> >> just the section title).
>> >>
>> >> Reveal.js users consistently complained (#4317, #5237= ) that
>> >> this made it hard to structure reveal.js 2D slide sho= ws, 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 change= log says,
>> >>
>> >> > Slide show formats behavior change: content unde= r headers less
>> >> > than slide level is no longer ignored, but inclu= ded in the title
>> >> > slide (for HTML slide shows) or in a slide after= the title slide
>> >> > (for beamer). This change makes possible 2D reve= al.js slideshows
>> >> > with content in the top slide on each stack (#43= 17, #5237).
>> >>
>> >> The change to reveal.js has been welcomed by reveal.j= s users,
>> >> but the change to beamer is apparently not welcome by= everyone.
>> >> The reason I made the change to both formats is becau= se I want
>> >> slide shows to work the same no matter what output fo= rmat 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 cont= ent 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 ca= n'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 u= sing the
>> >> new behavior since 2.7 was released.
>> >>
>> >> A less radical change might be to introduce special D= iv whose
>> >> contents get moved outside the slide itself. Anyway, = comments
>> >> welcome.
>> >>
>> >>
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to t= he Google
>> 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.
>> > To view this discussion on the web visit
>> https://groups.go= ogle.com/d/msgid/pandoc-discuss/c4db2ddc-b3b0-4c62-a8bb-8a601e37dc48n%40goo= glegroups.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/73f0ad6f-f17d-424a-abe6-e8e29e9c7f2en%40googlegroups.= com.
------=_Part_587_1008236083.1598375198894-- ------=_Part_586_183882242.1598375198894--