From 2c1a309c9f117f55acc4e8be32b037b273fd7732 Mon Sep 17 00:00:00 2001 From: Raymond Ehlers Date: Tue, 12 Jun 2018 13:39:20 -0400 Subject: Beamer: Allow "noframenumbering" option (#4696) As noted [here](https://tex.stackexchange.com/a/49805) ([beamer commit here](https://github.com/josephwright/beamer/commit/ff70090f36b631667b472cfe675fc3514fe46f7e)), `noframenumbering` is an undocumented, but long existing option to disable frame numbering for a particular slide. This is useful to avoid numbering backup slides. --- MANUAL.txt | 2 +- src/Text/Pandoc/Writers/LaTeX.hs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANUAL.txt b/MANUAL.txt index 03da6b0bf..e08d3cdf2 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -4438,7 +4438,7 @@ introducing the slide: All of the other frame attributes described in Section 8.1 of the [Beamer User's Guide] may also be used: `allowdisplaybreaks`, `allowframebreaks`, `b`, `c`, `t`, `environment`, `label`, `plain`, -`shrink`. +`shrink`, `standout`, `noframenumbering`. Background in reveal.js ----------------------- diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index dde4fe86d..a3be5ecb7 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -402,7 +402,8 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts) not (null $ query hasCodeBlock elts ++ query hasCode elts) let frameoptions = ["allowdisplaybreaks", "allowframebreaks", "fragile", "b", "c", "t", "environment", - "label", "plain", "shrink", "standout"] + "label", "plain", "shrink", "standout", + "noframenumbering"] let optionslist = ["fragile" | fragile && isNothing (lookup "fragile" kvs)] ++ [k | k <- classes, k `elem` frameoptions] ++ [k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions] -- cgit v1.2.3