LaTeX writer: allow arbitrary frameoptions to be passed...
to a beamer frame, using the frameoptions attribute. Updated manual. See #7869.
This commit is contained in:
parent
4fa042f847
commit
7fbce82f2f
2 changed files with 18 additions and 10 deletions
25
MANUAL.txt
25
MANUAL.txt
|
@ -5987,13 +5987,10 @@ To style beamer slides, you can specify a `theme`, `colortheme`,
|
||||||
|
|
||||||
Note that heading attributes will turn into slide attributes
|
Note that heading attributes will turn into slide attributes
|
||||||
(on a `<div>` or `<section>`) in HTML slide formats, allowing you
|
(on a `<div>` or `<section>`) in HTML slide formats, allowing you
|
||||||
to style individual slides. In beamer, the only heading attribute
|
to style individual slides. In beamer, a number of heading
|
||||||
that affects slides is the `allowframebreaks` class, which sets the
|
classes and attributes are recognized as frame options and
|
||||||
`allowframebreaks` option, causing multiple slides to be created
|
will be passed through as options to the frame: see
|
||||||
if the content overfills the frame. This is recommended especially for
|
[Frame attributes in beamer], below.
|
||||||
bibliographies:
|
|
||||||
|
|
||||||
# References {.allowframebreaks}
|
|
||||||
|
|
||||||
## Speaker notes
|
## Speaker notes
|
||||||
|
|
||||||
|
@ -6077,8 +6074,18 @@ introducing the slide:
|
||||||
|
|
||||||
All of the other frame attributes described in Section 8.1 of
|
All of the other frame attributes described in Section 8.1 of
|
||||||
the [Beamer User's Guide] may also be used: `allowdisplaybreaks`,
|
the [Beamer User's Guide] may also be used: `allowdisplaybreaks`,
|
||||||
`allowframebreaks`, `b`, `c`, `t`, `environment`, `label`, `plain`,
|
`allowframebreaks`, `b`, `c`, `s`, `t`, `environment`, `label`, `plain`,
|
||||||
`shrink`, `standout`, `noframenumbering`.
|
`shrink`, `standout`, `noframenumbering`, `squeeze`.
|
||||||
|
`allowframebreaks` is recommended especially for bibliographies, as
|
||||||
|
it allows multiple slides to be created if the content overfills the
|
||||||
|
frame:
|
||||||
|
|
||||||
|
# References {.allowframebreaks}
|
||||||
|
|
||||||
|
In addition, the `frameoptions` attribute may be used to
|
||||||
|
pass arbitrary frame options to a beamer slide:
|
||||||
|
|
||||||
|
# Heading {frameoptions="squeeze,shrink,customoption=foobar"}
|
||||||
|
|
||||||
## Background in reveal.js, beamer, and pptx
|
## Background in reveal.js, beamer, and pptx
|
||||||
|
|
||||||
|
|
|
@ -291,7 +291,8 @@ blockToLaTeX (Div (identifier,"slide":dclasses,dkvs)
|
||||||
, isNothing (lookup "fragile" kvs)
|
, isNothing (lookup "fragile" kvs)
|
||||||
, "fragile" `notElem` classes] ++
|
, "fragile" `notElem` classes] ++
|
||||||
[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] ++
|
||||||
|
[v | ("frameoptions", v) <- kvs]
|
||||||
let options = if null optionslist
|
let options = if null optionslist
|
||||||
then empty
|
then empty
|
||||||
else brackets (literal (T.intercalate "," optionslist))
|
else brackets (literal (T.intercalate "," optionslist))
|
||||||
|
|
Loading…
Add table
Reference in a new issue