knitr::opts_chunk$set(echo = FALSE)
IOSlides plus (iosp
) extends ioslides_presentation
and allows to create columns or boxes as level 3 headers.
Test 1
This box has again a width of 6 col and wraps to a new line.
%end%
We are able to exit the box using the keyword %end%
.
A box can have a title
Or not...
%end%
A smaller box
A bigger box
An intermediate one...
%end%
You can use the stretch
class to tretch the height to the row height.
A smaller box
A bigger box
An intermediate one...
You can also use the bottom
class
A smaller box
A bigger box
An intermediate one...
%end%
Or the middle
class
A smaller box
A bigger box
An intermediate one...
You can also mix the classes
You can add an offset on the left side of a box using the offset-x
class where $1 \leq x \leq 11$
Test
Test
Test
Test
A
B
You can specify the author of a citation using |
This is a citation | author
It is possible to change the background colour by using a box colour class
This is a citation with a red background | author{.bg-red}
Blockquotes accept width and offset settings
This is a citation with a yellow background | author{.bg-yellow .col-4 .offset-4}
plot(cars)
Images in a column are adjusted to the column width (or height). On the right side, when using the nofit
class, the image is not resized and might not fit in the column.
plot(cars)
x <- 1:10 x * 2 x * 3
With eval = FALSE
x <- 1:10 x * 2 x * 3
With echo = FALSE
x <- 1:10 x * 2 x * 3
You can use the row
chunk option to display the source and results side by side. Set row = TRUE
:
x <- 1:10 x * 2 x * 3
You can also set the width of each columns in a vector (sum < 12)
x <- 1:10 x * 2 x * 3
Setting the collapse = TRUE
option will merge the rows:
x <- 1:10 x * 2 x * 3
# This is a comment plot(cars)
# This is a comment plot(cars)
This is a red box
x <- 1:10 x * 2 x * 3
%end%
Code chunks can be placed in a column to restrict the width. Alternatively, the width chunk option can be adjusted.
x <- 1:10 x * 2 x * 3
plot(cars)
Instead of populating boxes and columns by row, it is possible to arrange them by columns using the column
class in the level 2 header.
This is a first box containing multiple elements
Smaller box which will appear in a new column as soon as the first is full.
...
This box will appear in the middle of the slide.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.