Actions
An action consists of a name, a set of possible arguments, and an effect. This page describes all possible actions.
Inserting an action in the presentation is done by adding an attribute with the name of the action.
Some content.
{center}
Some other content.
The effect might be different when the attribute is attached to an element.
Some content.
{center}
Some other content.
Arguments can be added to an action. In this case, the attribute is a key-value attribute, the key being the name of the action, and the value containing the arguments.
{#one}
Some content.
{center=one}
Some other content.
An action can have two kinds of arguments: named arguments, and positional ones. Named arguments are of the form ~argument-name:value and positional arguments consist of only their value, not their names. The list of arguments is space-separated.
{#one}
Some content.
{center="~duration:2 ~margin:10 one"}
Some other content.
It is possible to combine multiple actions in a single attribute, and they will be executed in the same step.
{#one}
Some content.
{center="~duration:2 ~margin:10 one" reveal="two three"}
{#two .unrevealed}
Some other content.
{#three .unrevealed}
Some more content.
Actions are executed in “reading order”, from top left to bottom right. The presenter needs to press the “next” key to trigger the next action.
{#one}
Some content.
{center="~duration:2 ~margin:10 one" reveal="two three"}
The action above is executed first.
{#two .unrevealed unreveal="three"}
The action above is executed second.
{#three .unrevealed}
Some more content.
When the auto-continue attribute is included in the attribute set, the next
action is executed without requiring the user to press the “next” key.
{reveal="two" auto-continue}
The action above is executed first.
{#two .unrevealed center}
The action above is executed directly after the first one.
Pause attributes
pause
The pause attribute tells the Slipshow engine to pause the text rendering here. This element, and every element after it (but inside the “pause block”) in the document, will be hidden.
When a
pauseaction is executed, the initially hidden text is displayed.
pause-blockThe
pause-blockattribute tells the Slipshow engine that pauses inside it should not hide content outside of it.Example:
A {pause-block} > B > > {pause} > > C > > {pause} > > D Ewill initially display
A,BandE, then going a step further will additionally displayC, and another step will displayD.stepIntroduces a no-op step in the slip it’s in. Takes an optional
~duration:FLOATargument, whose default value is0, and which defines the time spent before the action is completed. Useful to exit entered slips, and in conjunction withauto-continue.
Moving the window
downMoves the screen vertically until the element is at the bottom of the screen.
Accepts
~duration:FLOATandmargin:INT.upMoves the screen vertically until the element is at the top of the screen.
Accepts
~duration:FLOATandmargin:INT.centerMoves the screen vertically until the element is centered.
Accepts
~duration:FLOATandmargin:INT.scrollMoves the screen vertically until the element is entirely visible on screen, if possible.
Accepts
~duration:FLOATandmargin:INT.focusFocus on the element by zooming on it. It’s possible to specify multiple ids.
Accepts
~duration:FLOATandmargin:INT.unfocusUnfocus by going back to the last position before a focus.
Changing visibility
staticMake the element
static. By “static” we mean the css stylingposition:static; visibility:visiblewill be applied. It’s possible to specify multiple ids.unstaticMake the element
unstatic. By “unstatic” we mean the css stylingposition:absolute; visibility:hiddenwill be applied. It’s possible to specify multiple ids.revealReveal the element. By “revealing” we mean the css styling
opacity:1will be applied. It’s possible to specify multiple ids.unrevealHide the element. By “unrevealing” we mean the css styling
opacity:0will be applied. It’s possible to specify multiple ids.
Drawing actions
drawReplay the drawing. It’s possible to specify multiple ids. See the how-to Record and replay drawings and the tutorial Drawing your presentation.
clearClear the drawing. It’s possible to specify multiple ids.
Carousels
change-pageChanges the current page of a carousel or PDF. Takes the id of the carousel/PDF as input.
It can also takes a
~n:"<pages>"argument, which allows specifying a list of page changes to do, by absolute number (e.g.4), relative number (e.g.+1,-2), range (3-10or5-3), orallwhich displays the pages one-by-one until completion. Default for~nis+1.For instance,
{change-page='~n:"2-4 6-4 7 -1 +2 all"'}will change pages to2,3,4,6,5,4,7,6,8and then all further pages that the carousel/PDF contains. It will always initially start with page 1.
Speaker notes
speaker-noteHides the targeted element (either with given ID, or self). When the action is executed, sends the targeted element to the “Notes” section of the speaker notes (that you can open with s).
Media playback
play-mediaPlay the media (audio or video). The associated element/target id(s) need to be a video element: a
where the path is recognized as a video or audio file. It’s possible to specify multiple ids.Be aware that browsers may prevent playback if they consider that the user has not “interacted” with the page yet, in an effort to forbid spam “autoplay” of media. Interact with the page (e.g. by clicking anywhere on it) to make sure it’ll work.
Custom script
execExecute the slipscript. It’s possible to specify multiple ids.