From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25986 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc #4317 side effect Date: Mon, 24 Aug 2020 21:22:09 -0700 Message-ID: References: <6a083675-a292-4bad-9ff4-8d834c477239@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thomas Chevrier , pandoc-discuss To: "Chevrier\, Thomas" Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB75DSL5AKGQEOKEKRJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 06:22:27 2020 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 1kAQTa-0005RV-5T for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 06:22:26 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id h6sf4356316otq.21 for ; Mon, 24 Aug 2020 21:22:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598329345; cv=pass; d=google.com; s=arc-20160816; b=DJLCtDga66b2FTEjQkUI7WFGbwqdQ+DAd8j/bBzL2hhEt7bnRvuoRg22mUAvr4kFmY pwXGYuo0mBloDk9RMcNXRM5lZ6cwpzZbg9aO8FR1jhdU1NRro3MZQfgbjlMhfkExmVI6 vreP0DkKG0NXn7arfVwos1gn1z6e3ma5powb2wZ5q/U793eqdULJ3jUjyv252VbjJuYO HCqu7AbL0GuMaw1+GkcIpeqBv45YtX0l4Odq8aucJyZffiWMCJLKSOeVxyQ4/g1ObH3b EjfXI0r8moeGqrVle7OcbVXZhQkLSXLFfhRK7yjQ2/25V4KkTGq8YAzRsT5lN2K8CHxK bJeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:cc:to:from:sender :dkim-signature; bh=suqZLFHRJOuARAX7UZSsjU2M4OA3ziMd8aafPT8+vqQ=; b=hrmQGuSej2ty5KgCTMqQYLOall9bR+7THr/TwN/xh5iR0x/CpLFz/iY3fa26GnAd12 i72iWxQOt/rvw0NT3ZJjVEqMusKomQvONLEDKQkeQE8fWQVCvSkQWNrJQr39g16Qh9jT RsnV41TJHPyOy6WJeicRVj6R+pDtgnns2uyjn7DHDrPRaoGl3z0yV3w+LiwyPkW9ZJOh zGlfHBZwQb5+yK+mbbzNd5q9viWzXYfqNqhyrfREjYooiGbszefrzzxATglTXZ6yMxdF 4gYL0zXNod8/WMZ0G4egrhiaGjrLu6oW7yWTZI8rrEWkSH5LpCHiHwHGGKs5DJzC1R7P ucEQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=m+RH5Xw6; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=suqZLFHRJOuARAX7UZSsjU2M4OA3ziMd8aafPT8+vqQ=; b=nPciT3wZj3p2ECs5fl5BVZACq5uNTvoR+0mHOuHSniDsZ0lrnPPLnE7Z0kUOBZLs6+ /oluqpyR16qc5scjBgY9oX4P+BG6yF6+a1JvHxxEslWNziqEcPEiuqr4bH+Wa0CvjTJo ixKQMccuiP+cFtbZHLUA4j0akwguAe8so8aFJ+ivB6I3AqyBgy0glJjA1LwLuQOoeo6p yIFtYo+n74wtjlRMnHD7/PeWoolK2MGYODUhVaYABL4khihWIWjDZfW6aJ+089q+oHcU 8RoId6C4j6Z1uxw1DUujgPsv1e8NOVDarI+0SROYrVWibWVZyXgDmSS3bLIwRW3w3ch+ GQMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=suqZLFHRJOuARAX7UZSsjU2M4OA3ziMd8aafPT8+vqQ=; b=oYMPoB/HiF7LXhvTEPvT9rW9XaeiytOUvmsB4tWajC8Vq3yWL/wQmauEe0ghY+0a/1 YXVEEdyXgI5Z1OLdDpKBYptWGvUAedy3xeVPjyPgWVV564DMVLKzE3ltWi23qLVQI5rG ojQbBsIGKkjpp/X/Ogm8NC/gZZdHREja+HJVa8CtmRMnO+N8llHxF9BbhrMfhyGO3k/T YokeLtXGsk3dFTFfJqiNo9gJNTCGHMDmS01Xj3yfXc1QnpYFLQsfo5J1OnGVMeNi6Mj2 vH5johWgYYXWgN1UdDbJHV8CAw8FIeA26rgHFq5N2WHjPYtcobabTIuyT69A/RIi4cvH h/Rg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530IBtmZ5Rlo9xv4ocTG7c2S0kFg9vr47jvx16p3DFtNKH4XT05f VKDSeN8ywHvgVRiX3Llw3jo= X-Google-Smtp-Source: ABdhPJxwPvOGCckL35Pgg/x8MAfA+4KKwl4d3jUDLizl+EIdnjeWN3hyzKHIJWeCZGgIhbVMdqQMkQ== X-Received: by 2002:aca:aa13:: with SMTP id t19mr28210oie.59.1598329345046; Mon, 24 Aug 2020 21:22:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:e715:: with SMTP id y21ls76751oou.5.gmail; Mon, 24 Aug 2020 21:22:23 -0700 (PDT) X-Received: by 2002:a4a:da04:: with SMTP id e4mr5827037oou.91.1598329342976; Mon, 24 Aug 2020 21:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598329342; cv=none; d=google.com; s=arc-20160816; b=lPPrUABJLB0phnakvKsa/B+uie/hpxWS2Rf6vbbaZMzCvt3R3jhFTQjblU/o8R/ROO Kk2CN+9Qr3JV8SIPyaV5J6/j6RBdg+RC9qMyLsf5ajhNDxiqsLudtOYCr8t3/Sn8jVfE hUqUYoHNPF2VW/dBDR6YP2VmrKj7C59YSfKaOoYxlUoj8dvOPSuaCNJhWe6pU5Yb8R+Z j8+XjI4YeLPGjpB9wPudvCAKAt6puwvBsU0B89TGH+4wRyZU4gGRCQW5R2iPB3B7Y+Zi MdVz/YH9q5pZ2Nl1QdGUCSZqDBbDIgua1Ad7ghYPSyTG9tO2aKyjQM08Y1JatVLhq5ev jkKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=K9kkKRqZK+0CI25sXGLUa3ifC/H6IftAru6udPB816Q=; b=LUs3aTVm3MdDEc9fD8Gbu/lqkawTZHWwcTCst8Mewk3D90zZ8e3aXZs/Bpw5iJ38aY vZ/H04Lp0WEZDJUw3j7rEzm8ROq8V+iUeQAlV4swhbzmXAMEMSgPVq0y7401CPr4Ava/ HjT40qpa+w+TD/Sa5t6Elhvdv+Jch1Tenql0513FizGx79Z8vrI2n1gctaYycrbAGK8U jizw0fZWGFpsTbfb9Pr19Yc7EPiS8F4xi45wP30fyItQVvcZAMeKDnecrFbeSyKBGLLp o4tF/lI+UVuVPOCLLes6qql5mR6gqN5EQ9CDHTGTx46hAcLCi/xLoR6Sab1ytiF0tblQ KqfA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=m+RH5Xw6; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com. [2607:f8b0:4864:20::531]) by gmr-mx.google.com with ESMTPS id t21si11980oif.4.2020.08.24.21.22.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2020 21:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::531 as permitted sender) client-ip=2607:f8b0:4864:20::531; Original-Received: by mail-pg1-x531.google.com with SMTP id m34so5908058pgl.11 for ; Mon, 24 Aug 2020 21:22:22 -0700 (PDT) X-Received: by 2002:a63:d410:: with SMTP id a16mr5485008pgh.133.1598329341913; Mon, 24 Aug 2020 21:22:21 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id q2sm11711865pgs.90.2020.08.24.21.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 21:22:20 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id C1C17A2A1; Tue, 25 Aug 2020 00:22:09 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=m+RH5Xw6; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::531 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:25986 Archived-At: 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 \, 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 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 Tue, Aug 25, 2020 at 4:00 AM 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-discuss+unsubscribe-/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 >> . >>