From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25983 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 13:00:04 -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="2917"; mail-complaints-to="usenet@ciao.gmane.io" To: Thomas Chevrier , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBUNYSD5AKGQEXZK4BUI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 24 22:00:22 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f185.google.com ([209.85.215.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAIdi-0000ec-Fa for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 Aug 2020 22:00:22 +0200 Original-Received: by mail-pg1-f185.google.com with SMTP id 78sf972149pgf.5 for ; Mon, 24 Aug 2020 13:00:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598299221; cv=pass; d=google.com; s=arc-20160816; b=LveFXZ/n4PiXY1MI8LzFZShP6o96OA3zqAKULbDhbU45V1OdLNcQwOT62rOuRJZKPv whivLMl9c4yOhgW3VVS5alzkb0EoZ1QiT1ysNISXE9E9ltPW1mWPHolW/P0u1JFSkRED 02GbjXxUVMlNLmdRR6ek78Tw1GjIr249fN6Q2P8kByfNop6WoXBoKtOEXXKxjuzIWlxA MspToiMNYNBINx0goTrOz7RRsO6+l4auV5nrgqZ1OkxU2GE/moJzUB81/4jqV2RVmeRJ mpvefsecS0SXDhwCpc1JhdPO/7pmU/5wdupI6+atKxRqfH0FaoX3aBcPBhpWmC45Fy+X hawA== 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:to:from:sender:dkim-signature; bh=zWfcxb/SHFJZzcHNDwwKZu6kpL/bx7loSSHPIgAE3rk=; b=DHMiMc1RHEDZxxXqLV5LaAi1oc3DQmRHTFUNi7ry6TMLlaGMQ25PS46LGOcv0R4YqV QD1iOdl6sJ7LLHlywT68oQ4LKb8V/ryDILMAz6/dGZomdb/26VUoe29UJlFSbvJA6xEc f1x2NnPzNPKM3fgsKEv/9+oOHIXq/pKZWvfm3koQ6XcslBnxc8gX17UdEtAaCkZSCW2a hZxdk3Xw0QRmy1ymPUJ6dwdhkgyj6qu92swr7vzc9xDXDN6l/49mlvbuVLYLuXzx6D6k Kp/6pMo1DoELgIeziem+EdyZEhylhj1FP9tl2CM5U/wSRG0tGT6q/v4xzPHA/hhcOdgM +J8A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=rmOh86Hs; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 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: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=zWfcxb/SHFJZzcHNDwwKZu6kpL/bx7loSSHPIgAE3rk=; b=jYRlyZDuhMITLBbI5ZYyyzW6fJbY4wl/R3s6pXst1ojSZTjxqMdgOngBRv30/rWDIq ozqXoAQcxzMEx0ZreH4yZTvtnBn3uRY5jG3cgr5YXG/Iu7UvMPvBTl+KKnGfWpbAZwh2 Yf0QokZyK6ptNvw6fmzVI4giibnD+oQiEi2CChDpwpxtHf+gt0YKGqAiMv+tp9aVOWDC 2PrgAN30dpwMKMj04PU+JlY/zyLATanIteDWYo6IROxLQFoPrXZek5Cv1uAxMFlguubf 4OzjB19LdtFLkqq0CtceMei1LcB/NgF9iVYr9nifUGKqsmyJN0bxefqbIdY2olFnS9Xa 5ymg== 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: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=zWfcxb/SHFJZzcHNDwwKZu6kpL/bx7loSSHPIgAE3rk=; b=U9bIK6KYqd+1ktgsDol/5xRHhSzLqhp2+B0x8Fy97jVieW9dX6pIGlAYwjjEwVTGxt V5blFO95CCvydfV/qBJ/J8u7DDAIHrPlFX0JoQVzlEx+SDFIMNNkOG9YQtKoD/FxcVKL +87Uf3Iy/AM2xgcWJYVXa1IJBPvVfLRGlgfV1Fi7mv8f6NamY0V2Tbfsx1ShubNooznB ocE+ibkKIhu/lqMDNOXiolQsM1uxjFIqdTY39KqGXAS8SG/zJlEfxOKmMY1L+eBl7w5A GWIa0/ytnLzU8+X6kBFHUiyTRVaaNUKcAMrIFQYxwI3ZvB1+A/WN5mZcqQQ1ZStUTT4p IWBQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530UUSJ53Nb+WswQXATEmHpZcVN7zcvkabGpOsUr/OyuP9VLvCHv KdeA+3SaPsnuKUoAytjzDVA= X-Google-Smtp-Source: ABdhPJy+sgsXFHGjFYp4SzYjE+ho63l0OcDLTBraaVgRCKQkyBBMey+jSJow1W17WuIXu4XSo60isg== X-Received: by 2002:a63:b24b:: with SMTP id t11mr4385446pgo.233.1598299221209; Mon, 24 Aug 2020 13:00:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:1453:: with SMTP id 80ls534643pfu.7.gmail; Mon, 24 Aug 2020 13:00:17 -0700 (PDT) X-Received: by 2002:a63:1822:: with SMTP id y34mr4659168pgl.364.1598299217483; Mon, 24 Aug 2020 13:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598299217; cv=none; d=google.com; s=arc-20160816; b=ih+XB7W1Hf7Ui/EiR7z+4DqD6lGJHjvG7P4n6lJ+nQMPIGtGefeL/huflgnqdN7whF d0tMk3sXrAh53YGil86Ngas0Yo4N9iCH2CnZqE8bopSglxL+s1PMGDPOZaf1MCOcl9al JLlI2QEiyOASL3M1HMsZl32yOp0YtdIMrfB+a3dQUssbYR8HMejm+Wq26o+BvJQQPTni YFTrAkUsANAhZpvw74402QXKEqHspgt1ctCDfsQKMfcJk0ldWSumlJnt3xTuUlFPDMO2 ELqfwq+insC7wYT8vQRDKZSOeP1MIhWtlHNfSNbb5znLFQucQQ5xrdfz8uVvnEpfIcNO LN1Q== 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:to:from :dkim-signature; bh=Dgp7I5l+FQgnjGoyh9qxlj4ldPqR61lbOiyCto9i4QE=; b=jijHfn25bHdF82BAruW2sHRgT34yPNSch/R4hD4FLjZVedLwHiDCeopbEzx3aNn9tA EuNaG890l2jCrrvLDLr/DRK5gcspvXaDbNCWabztDtOKLCVl9IlnvDlNRgwN3PzO0wY7 ZAEYY2q+2pYQOETXs1ZV95lGZwF/k0Wi0+z+iJzLNftaBCvAmUI7reJ1kYjcxE1c1oOY gopDcprvk9uupiHyZAIkwwOjcY/YBs+2oTW7ktQeBHp7zB+vVWLjfZIno6Huv9x2ODrM IaDi33ZiLFk1YSHLzEH17RZmAd5TqR8Bg/VjwKf8QBatlKgqbFJQBA5nZ6x6Opzytluz +PhA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=rmOh86Hs; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com. [2607:f8b0:4864:20::1032]) by gmr-mx.google.com with ESMTPS id y9si573986pgv.0.2020.08.24.13.00.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Aug 2020 13:00:17 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 as permitted sender) client-ip=2607:f8b0:4864:20::1032; Original-Received: by mail-pj1-x1032.google.com with SMTP id 2so4873352pjx.5 for ; Mon, 24 Aug 2020 13:00:17 -0700 (PDT) X-Received: by 2002:a17:90b:198f:: with SMTP id mv15mr302493pjb.57.1598299216800; Mon, 24 Aug 2020 13:00:16 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id q16sm13105320pfg.153.2020.08.24.13.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 13:00:15 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 0FC6FA2A1; Mon, 24 Aug 2020 16:00:05 -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=rmOh86Hs; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1032 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:25983 Archived-At: 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.