aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Ehlers <raymond.ehlers@gmail.com>2018-06-12 13:39:20 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2018-06-12 10:39:20 -0700
commit2c1a309c9f117f55acc4e8be32b037b273fd7732 (patch)
tree7e49e476a09b7e8d4515e20a002928fa92040d9e
parent07bce91f4f1614967dd6f3698238d51f5290aae7 (diff)
downloadpandoc-2c1a309c9f117f55acc4e8be32b037b273fd7732.tar.gz
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.
-rw-r--r--MANUAL.txt2
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs3
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]