From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26133 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 14:04:16 -0700 (PDT) Message-ID: <8d3b5815-bc30-4113-9683-11c166866e32n@googlegroups.com> References: <69361063-4c69-4403-85c7-31d943d138fdn@googlegroups.com> <2a37b9d4-8b50-4764-950b-d97f2701f8f4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1832_1126482925.1600031056675" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31226"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCEYTH5K2IARBUUS7L5AKGQEVS3OW7Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Sep 13 23:04:21 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 1kHZAb-00080C-4r for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 13 Sep 2020 23:04:21 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id i1sf7652819ood.9 for ; Sun, 13 Sep 2020 14:04:21 -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=0Vi9PGWFXaWAUDXMBvffp6keDEIr8xOlICKLw0HLAvg=; b=FSQHP9K8pkrM+NJUiZWcnDDDeiUa6w+pwDxpoajEJoOVa9S3C9FqRvc6seEHqCSMvi e81yIuXTe4eVWFtOaMaB3IDGaFFpWGXtRX4QXbeiPMwiZehq1pKYriz7TMScsy0YVOUD 9YE0grgfqoCwhwezvRt7H0sLYcfQDcrxZDc59dwAsinqgAzSEaymi/J31jh7jTyFNMct AC+MawL2lAqBnCIVg2gsgSOYp5izto2Wp8oql9jpkiaV0QNAWN7Jb4DEdvPMXGtOJ6SP tYt7lNrp6vrNER6GbqWytdAFNYhhs+C7bZmx1dccjCLE/G1Y8X9OpXaZGjmN6GrcqPjD bSig== 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=0Vi9PGWFXaWAUDXMBvffp6keDEIr8xOlICKLw0HLAvg=; b=HtvknKjGVetmGyPTGUIXazZXLaBAI8/hkabuedHudGMRpjOSMEUtrigmi5uZBDchOz PHWJZbt0zcRDQoiA9ScsZM4ab+OGNZJkFum7eBJHf0qP81ZjL32/UXN0sJ6Vgd23+GXi dXAghZLCjScHmtEImJM6WiNnlzDMihiJJfoiZTnjYYlOSbrizTVg7H65PJ3tfU1q0kYb o3D84zC9xIdUx+nYn3p2Pqylbi0phWVc/YQkZgRt/u5VaY03ovaIbJvlVzf0HSfqDgxQ Wkr0B3jzDHEb5vP/L+h9F1kmzThj5v8As0qW3cJuZYHbTq1E+KblsDCF5Batbw45qalc T5bA== 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=0Vi9PGWFXaWAUDXMBvffp6keDEIr8xOlICKLw0HLAvg=; b=m5BQ+O3geXKXfJFOUXTHXGKOXrejbci8yXeRNB6hHZxQXcdZ/tF6yJuVjD1iJ9hizQ LvOKYyFCNf3uQjfWpGua+UDBRpifdLBvah9oAIV3aT1NmJb4Z4d+DwHPh+fr2QJRRLxG xRUvTBGZxzKJYe1oo3271ptMWqhycFQFXbLd4N0ZXfJERSNKPMt+9JJvYaJYnV0S3Hpd jRncY5Wx7xI5H091M/Q8xoBT28WPArGhZjoZVg1K/p82VLfpBlsV8sbXpoGBktwgooe5 29ovZPrsCVDB6BU3E8vbLEk23HRRLOBtSU8JZub/MZVtakqVUhB5xQn3Bk7xlh+COnwI X8og== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530YZ38/RvSw5uz94TRnnoovmRFbJe7Wn30zjvnZTuVCggx+K+m9 7uOi4qv6z9FfEq1pOhV2clM= X-Google-Smtp-Source: ABdhPJzyTRuWtyZTiyaFOa1CkHyJ9PVlCcAN8fP6etRqb4O4NqEZndgTyR0tGC5ZmL7UKxJSwOVvdA== X-Received: by 2002:aca:4e84:: with SMTP id c126mr1932264oib.94.1600031060162; Sun, 13 Sep 2020 14:04:20 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:2231:: with SMTP id o46ls1559190ota.11.gmail; Sun, 13 Sep 2020 14:04:17 -0700 (PDT) X-Received: by 2002:a9d:5a8c:: with SMTP id w12mr7372033oth.332.1600031057636; Sun, 13 Sep 2020 14:04:17 -0700 (PDT) In-Reply-To: <2a37b9d4-8b50-4764-950b-d97f2701f8f4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:26133 Archived-At: ------=_Part_1832_1126482925.1600031056675 Content-Type: multipart/alternative; boundary="----=_Part_1833_1733012450.1600031056675" ------=_Part_1833_1733012450.1600031056675 Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/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. ------=_Part_1833_1733012450.1600031056675 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is something that would be different after the change:
=
A md like this:

```
# Foo=

Foo

## Bar
Bar
```

The command: `$ pand= oc --slide-level=3D2 -t beamer -o test.tex test.md` produces LaTeX where th= ere is text ('Foo') outside of a frame. If ignorefametext is removed from t= he template, doing $ pandoc --slide-level=3D2 -t beamer -o test.pdf test.md= ` would give different results, i.e., 'Foo' would now be printed on a new s= lide 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 wo= uld be expected that something would be written outside a frame, and that i= t should be ignored?

I have checked the modified t= emplate with sections, and with subsections, and without either.
<= br>
On Sun= day, 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 <
thomas....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wri= tes:

> The default.latex template uses the 'ignorenonframetext' f= or Beamer. Is=20
> there a good reason for this? If that was removed from the templat= e, there=20
> would be no need to handle making titles differently for beamer an= d other=20
> formats, i.e., it could be done with `\maketitle` in both cases. I= think=20
> that that's better when using themes that treat a title slide = differently=20
> from ordinary slides (such as Metropolis).
>
> --=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...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6= 9361063-4c69-4403-85c7-31d943d138fdn%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/8d3b5815-bc30-4113-9683-11c166866e32n%40googlegroups.= com.
------=_Part_1833_1733012450.1600031056675-- ------=_Part_1832_1126482925.1600031056675--