From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26136 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Hodgson Newsgroups: gmane.text.pandoc Subject: Re: ignorenonframetext in default.latex Date: Sun, 13 Sep 2020 15:42:22 -0700 (PDT) Message-ID: <3b55a8cd-2098-4484-871b-4984b76bd9f0n@googlegroups.com> References: <69361063-4c69-4403-85c7-31d943d138fdn@googlegroups.com> <2a37b9d4-8b50-4764-950b-d97f2701f8f4n@googlegroups.com> <8d3b5815-bc30-4113-9683-11c166866e32n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_882_602795573.1600036942735" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31906"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBT6A7L5AKGQE4CKLQRY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 14 00:42:27 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kHahX-0008D1-68 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 14 Sep 2020 00:42:27 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id h20sf7723989oou.8 for ; Sun, 13 Sep 2020 15:42:27 -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=O+r38GshYtcsHhitH5nhbQSe2N5eCx7xkVQ9Q96dh6E=; b=sirb3LnA3/ctbVzNVfOl1Ldn2a/PQMr8jPsujXraEQhei1RCuk6qrnjH/F4j9hT/LS aiSjH1z3JdbeLRUDA2loXo3IPs5CoY3aqacqLCyNoPD6dLLI4Q3pZtUs+xRkEl5slPdf +gcsMOIgrGFzgk8/TfLiz95le8kwp8p4FKuOF1a69zeIPGr+oPLUteTPf6vmyZCdsmqP +detJF6Ewg+n8Q6RFtSj2LKPm9eYbH3oL4tueHXQwH+eROKzhYP09Cn7I2W7jhAlsjS9 fndCf+aTmqWrqSNoqebPPgGcPH7TIzzVKw5QWU+eeMADOFVqjo9WYa4ILn3SPaM5bWbR m2dw== 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=O+r38GshYtcsHhitH5nhbQSe2N5eCx7xkVQ9Q96dh6E=; b=oEcESeilOu0t+aCCSVcKMxbwXT/pOshqPB6YZx/n8YSxT4fDGpkC0waD5b56h7HEYH LroCf2Sl8/pvVcAZZTuFvSQYPb/TXroVv74LfHphjVPkVXBAEQFWAw2OWgJqAhn3Cx3z dDC8ZiUUA/A7Xai7zmaWxE3JJ9BkZANkSP6ouEUCAhasx1QU0Wx2lje5X2IDWGrdqh59 2164PLs9kXFmZG3zAOuVSwPLzt12kmd7uix0DcczTKEvLwkSN+Hqu6LuEIdUVfA2Lkfh Le4+CQ9l1cjUqDB5SSDoSKJGJEZakop2ddd5GiEprjhHSS1aVCmoU8tMlPxGLxVFz6b7 DUGQ== 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=O+r38GshYtcsHhitH5nhbQSe2N5eCx7xkVQ9Q96dh6E=; b=jWUCrwfbAN0y3Hy3wOnQG9sgP+wnXGN3s8Q9DmY1ZnhP8LXk1dA8HfxzFbChJo9d3t ES3qdLTlrx8GQSINvxn5fZvXGYUU2mEFWtNZMkmRtWJVsuY6yL+ZSP510iRBtgT0Ze5y WIvnctmCaAQ4vLEqvxLmt2fDrsImgYOh1paUenUT6srA1uw1/nySutLIAzGxDH8hH2TX sXnyHqh4eWegmvQkcB5GIt3kLF+s4t5VTTZIUOacakkhETJo461g5eV6ijHQYF64hbsr M/tUXQ6AUn3C8zUZ6mivwy0r8+eI+zohAGrSTMvobrr3WZYOs3BNr1roUe+LHr3m0E7Z JFRA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5312kYXzXV+Y4HOxWoIcrjlVt1Fv6HIpgevGppfT44Rze/u3pHgH GWjMpevDfIdLkK3HWKC1lAw= X-Google-Smtp-Source: ABdhPJwCrdtTCiVSnnWDIh2JwZJvT69+cNyuL7E/KexL6zeLGe09o7xKvaXXWXzeBfpyK0XSAXFBSg== X-Received: by 2002:a9d:18d:: with SMTP id e13mr7582965ote.165.1600036946194; Sun, 13 Sep 2020 15:42:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:ca86:: with SMTP id x6ls430188ooq.5.gmail; Sun, 13 Sep 2020 15:42:23 -0700 (PDT) X-Received: by 2002:a4a:988c:: with SMTP id a12mr8438221ooj.46.1600036943572; Sun, 13 Sep 2020 15:42:23 -0700 (PDT) In-Reply-To: X-Original-Sender: thomas.hodgson-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:26136 Archived-At: ------=_Part_882_602795573.1600036942735 Content-Type: multipart/alternative; boundary="----=_Part_883_129045432.1600036942735" ------=_Part_883_129045432.1600036942735 Content-Type: text/plain; charset="UTF-8" I'm using 2.5, the one that Ubuntu 20.04 has. Sorry, I should have realised that there might be a difference between that and the latest version. On Sunday, 13 September 2020 at 23:36:19 UTC+2 John MacFarlane wrote: > > What version of pandoc are you using? > > With recent pandoc, you do get a slide with Foo > with this input. > > Thomas Hodgson writes: > > > 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/8d3b5815-bc30-4113-9683-11c166866e32n%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/3b55a8cd-2098-4484-871b-4984b76bd9f0n%40googlegroups.com. ------=_Part_883_129045432.1600036942735 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm using 2.5, the one that Ubuntu 20.04 has. Sorry, I should have realised= that there might be a difference between that and the latest version.
<= br>
On Sun= day, 13 September 2020 at 23:36:19 UTC+2 John MacFarlane wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left:= 1px solid rgb(204, 204, 204); padding-left: 1ex;">
What version of pandoc are you using?

With recent pandoc, you do get a slide with Foo
with this input.

Thomas Hodgson <thomas...= .@gmail.com> writes:

> 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 tes= t.md`=20
> produces LaTeX where there is text ('Foo') outside of a fr= ame. If=20
> ignorefametext is removed from the template, doing $ pandoc --slid= e-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 wrot= e:
>
>> Is there a case where it would be expected that something woul= d be written=20
>> outside a frame, and that it should be ignored?
>>
>> I have checked the modified template with sections, and with s= ubsections,=20
>> 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/f431f67b2f2f5071345fa5800658375= afaf44c1b
>>> (somewhat controversially)
>>>
>>> It may be that after this commit, removing ignorenonframet= ext
>>> would be okay. Maybe someone can test that out (with a lot= of
>>> different cases, please).
>>>
>>> Thomas Hodgson <thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>>
>>> > The default.latex template uses the 'ignorenonfra= metext' for Beamer. Is=20
>>> > there a good reason for this? If that was removed fro= m the template,=20
>>> there=20
>>> > would be no need to handle making titles differently = 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 treat a= title slide=20
>>> differently=20
>>> > from ordinary slides (such as Metropolis).
>>> >
>>> > --=20
>>> > You received this message because you are subscribed = to the Google=20
>>> Groups "pandoc-discuss" group.
>>> > To unsubscribe from this group and stop receiving ema= ils from it, send=20
>>> an email to pan= doc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>>> > To view this discussion on the web visit=20
>>> https://= groups.google.com/d/msgid/pandoc-discuss/69361063-4c69-4403-85c7-31d943d138= fdn%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 email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8= d3b5815-bc30-4113-9683-11c166866e32n%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/3b55a8cd-2098-4484-871b-4984b76bd9f0n%40googlegroups.= com.
------=_Part_883_129045432.1600036942735-- ------=_Part_882_602795573.1600036942735--