summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-01-27 14:07:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2022-01-27 14:07:51 -0800
commit7fbce82f2f7b69e88b23cf138ea6cd3a86786b91 (patch)
tree546507564ce6140727df541838ee9ea631b65556 /src
parent4fa042f8472bd841f8a995d9aadc825b820afe07 (diff)
LaTeX writer: allow arbitrary frameoptions to be passed...
to a beamer frame, using the frameoptions attribute. Updated manual. See #7869.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 8c8bd50de..3756b8b75 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -291,7 +291,8 @@ blockToLaTeX (Div (identifier,"slide":dclasses,dkvs)
, isNothing (lookup "fragile" kvs)
, "fragile" `notElem` classes] ++
[k | k <- classes, k `elem` frameoptions] ++
- [k <> "=" <> v | (k,v) <- kvs, k `elem` frameoptions]
+ [k <> "=" <> v | (k,v) <- kvs, k `elem` frameoptions] ++
+ [v | ("frameoptions", v) <- kvs]
let options = if null optionslist
then empty
else brackets (literal (T.intercalate "," optionslist))