LaTeX writer: Allow fragile=singleslide attribute in beamer slides.
Closes #4169.
This commit is contained in:
parent
b5ae537321
commit
b52cbb71c2
1 changed files with 2 additions and 2 deletions
|
@ -398,10 +398,10 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
|
||||||
hasCode _ = []
|
hasCode _ = []
|
||||||
let fragile = "fragile" `elem` classes ||
|
let fragile = "fragile" `elem` classes ||
|
||||||
not (null $ query hasCodeBlock elts ++ query hasCode elts)
|
not (null $ query hasCodeBlock elts ++ query hasCode elts)
|
||||||
let frameoptions = ["allowdisplaybreaks", "allowframebreaks",
|
let frameoptions = ["allowdisplaybreaks", "allowframebreaks", "fragile",
|
||||||
"b", "c", "t", "environment",
|
"b", "c", "t", "environment",
|
||||||
"label", "plain", "shrink", "standout"]
|
"label", "plain", "shrink", "standout"]
|
||||||
let optionslist = ["fragile" | fragile] ++
|
let optionslist = ["fragile" | fragile && lookup "fragile" kvs == Nothing] ++
|
||||||
[k | k <- classes, k `elem` frameoptions] ++
|
[k | k <- classes, k `elem` frameoptions] ++
|
||||||
[k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
|
[k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
|
||||||
let options = if null optionslist
|
let options = if null optionslist
|
||||||
|
|
Loading…
Reference in a new issue