git.iko.soy/typeable/pandoc
on master help sign in
Support all frame attributes in Beamer.
504bf3fJohn MacFarlane
README+8−2
@@ -64,6 +64,7 @@ Markdown can be expected to be lossy.
64[XHTML]: http://www.w3.org/TR/xhtml1/
64[XHTML]: http://www.w3.org/TR/xhtml1/
65[LaTeX]: http://latex-project.org
65[LaTeX]: http://latex-project.org
66[`beamer`]: https://ctan.org/pkg/beamer
66[`beamer`]: https://ctan.org/pkg/beamer
67+[Beamer User's Guide]: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf
67[ConTeXt]: http://pragma-ade.nl
68[ConTeXt]: http://pragma-ade.nl
68[RTF]: http://en.wikipedia.org/wiki/Rich_Text_Format
69[RTF]: http://en.wikipedia.org/wiki/Rich_Text_Format
69[DocBook]: http://docbook.org
70[DocBook]: http://docbook.org
@@ -3407,8 +3408,8 @@ To show the notes window, press `s` while viewing the presentation.
3407Notes are not yet supported for other slide formats, but the notes
3408Notes are not yet supported for other slide formats, but the notes
3408will not appear on the slides themselves.
3409will not appear on the slides themselves.
3409
3410
3410−Marking frames "fragile" in beamer
3411+Frame attributes in beamer
3411−----------------------------------
3412+--------------------------
3412
3413
3413Sometimes it is necessary to add the LaTeX `[fragile]` option to
3414Sometimes it is necessary to add the LaTeX `[fragile]` option to
3414a frame in beamer (for example, when using the `minted` environment).
3415a frame in beamer (for example, when using the `minted` environment).
@@ -3417,6 +3418,11 @@ introducing the slide:
3417
3418
3418 # Fragile slide {.fragile}
3419 # Fragile slide {.fragile}
3419
3420
3421+All of the other frame attributes described in Section 8.1 of
3422+the [Beamer User's Guide] may also be used: `allowdisplaybreaks`,
3423+`allowframebreaks`, `b`, `c`, `t`, `environment`, `label`, `plain`,
3424+`shrink`.
3425+
3420EPUB Metadata
3426EPUB Metadata
3421=============
3427=============
3422
3428
src/Text/Pandoc/Writers/LaTeX.hs+5−2
@@ -300,9 +300,12 @@ elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts)
300 if writerListings opts
300 if writerListings opts
301 then query hasCode elts
301 then query hasCode elts
302 else [])
302 else [])
303− let allowframebreaks = "allowframebreaks" `elem` classes
303+ let frameoptions = ["allowdisplaybreaks", "allowframebreaks",
304+ "b", "c", "t", "environment",
305+ "label", "plain", "shrink"]
304 let optionslist = ["fragile" | fragile] ++
306 let optionslist = ["fragile" | fragile] ++
305− ["allowframebreaks" | allowframebreaks]
307+ [k | k <- classes, k `elem` frameoptions] ++
308+ [k ++ "=" ++ v | (k,v) <- kvs, k `elem` frameoptions]
306 let options = if null optionslist
309 let options = if null optionslist
307 then ""
310 then ""
308 else "[" ++ intercalate "," optionslist ++ "]"
311 else "[" ++ intercalate "," optionslist ++ "]"