mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
LaTeX writer: Allow fragile=singleslide attribute in beamer slides.
Closes #4169.
This commit is contained in:
@@ -398,10 +398,10 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
|
||||
hasCode _ = []
|
||||
let fragile = "fragile" `elem` classes ||
|
||||
not (null $ query hasCodeBlock elts ++ query hasCode elts)
|
||||
let frameoptions = ["allowdisplaybreaks", "allowframebreaks",
|
||||
let frameoptions = ["allowdisplaybreaks", "allowframebreaks", "fragile",
|
||||
"b", "c", "t", "environment",
|
||||
"label", "plain", "shrink", "standout"]
|
||||
let optionslist = ["fragile" | fragile] ++
|
||||
let optionslist = ["fragile" | fragile && lookup "fragile" kvs == Nothing] ++
|
||||
[k | k <- classes, k `elem` frameoptions] ++
|
||||
[k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
|
||||
let options = if null optionslist
|
||||
|
||||
Reference in New Issue
Block a user