Beamer writer: mark frame as fragile when it contains verbatim.
Closes #1613.
This commit is contained in:
parent
b20ecbedc4
commit
2633dc2f5e
1 changed files with 1 additions and 5 deletions
|
@ -329,12 +329,8 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
|
|||
hasCodeBlock _ = []
|
||||
let hasCode (Code _ _) = [True]
|
||||
hasCode _ = []
|
||||
opts <- gets stOptions
|
||||
let fragile = "fragile" `elem` classes ||
|
||||
not (null $ query hasCodeBlock elts ++
|
||||
if writerListings opts
|
||||
then query hasCode elts
|
||||
else [])
|
||||
not (null $ query hasCodeBlock elts ++ query hasCode elts)
|
||||
let frameoptions = ["allowdisplaybreaks", "allowframebreaks",
|
||||
"b", "c", "t", "environment",
|
||||
"label", "plain", "shrink"]
|
||||
|
|
Loading…
Add table
Reference in a new issue