|
| 1 | +--- |
| 2 | +title: "test stretched" |
| 3 | +format: |
| 4 | + revealjs: |
| 5 | + auto-stretch: true |
| 6 | +--- |
| 7 | + |
| 8 | +## Insert an image {#simple-image} |
| 9 | + |
| 10 | +Without stretch feature |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +## Insert an image with code content below {#chunk-below} |
| 15 | + |
| 16 | +Without stretch feature |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +```{r, echo = TRUE} |
| 21 | +1 + 1 |
| 22 | +``` |
| 23 | + |
| 24 | +## Insert an image with no caption {#no-caption} |
| 25 | + |
| 26 | +Without stretch feature |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +## Insert an image with height defined {#height-defined} |
| 31 | + |
| 32 | +Without stretch feature |
| 33 | + |
| 34 | +{height=50%} |
| 35 | + |
| 36 | +## Insert an image with right alignment {#rigth-aligned} |
| 37 | + |
| 38 | +Without stretch feature |
| 39 | + |
| 40 | +{fig-align='right'} |
| 41 | + |
| 42 | +## Insert an image with caption text {#only-image} |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +## Column layout {#columns} |
| 47 | + |
| 48 | +:::: {.columns} |
| 49 | + |
| 50 | +::: {.column width="40%"} |
| 51 | +On the right a nice elephant |
| 52 | +::: |
| 53 | + |
| 54 | +::: {.column width="60%"} |
| 55 | + |
| 56 | +::: |
| 57 | + |
| 58 | +:::: |
| 59 | + |
| 60 | +## Insert an image with alt text {#alt-text} |
| 61 | + |
| 62 | +{fig-alt="A drawing of an elephant."} |
| 63 | + |
| 64 | +## Insert an image with alt text, caption and title {#caption-title} |
| 65 | + |
| 66 | +{fig-alt="A drawing of an elephant."} |
| 67 | + |
| 68 | +## Insert an image specifying `.strech` explicitly (no caption) {#with-class-no-caption} |
| 69 | + |
| 70 | +With adding stretch feature |
| 71 | + |
| 72 | +{.stretch} |
| 73 | + |
| 74 | +## Insert an image specifying `.strech` explicitly (with caption) {#with-class-caption} |
| 75 | + |
| 76 | +Using the `.strech` class |
| 77 | + |
| 78 | +{.stretch} |
| 79 | + |
| 80 | +## No strech when more than one image {#more-than-one} |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +And another |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +## No stretch when `.nostretch` is used at slide level {.nostretch #no-stretch-class} |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | +## Using knitr to create a plot {#knitr-plot} |
| 93 | + |
| 94 | +```{r, echo = TRUE, fig.cap = "Knitr figure"} |
| 95 | +plot(cars) |
| 96 | +``` |
| 97 | + |
| 98 | +## Using knitr to create a plot without echo {#knitr-plot-no-echo} |
| 99 | + |
| 100 | +```{r, echo = FALSE, fig.cap = "Knitr figure"} |
| 101 | +plot(cars) |
| 102 | +``` |
| 103 | + |
| 104 | +## Using knitr to create a plot with other text {#knitr-and-text} |
| 105 | + |
| 106 | +```{r, echo = FALSE, fig.cap = "Knitr figure"} |
| 107 | +plot(cars) |
| 108 | +``` |
| 109 | + |
| 110 | +On this plot, we have interesting informations. |
| 111 | + |
| 112 | +## Using knitr to specify alignement {#knitr-align} |
| 113 | + |
| 114 | +```{r, echo = FALSE, fig.cap = "Knitr figure", fig.align='right'} |
| 115 | +plot(cars) |
| 116 | +``` |
| 117 | + |
| 118 | +## Using knitr to specify height {#knitr-height} |
| 119 | + |
| 120 | +```{r, echo = FALSE, fig.cap = "Knitr figure", out.height="120px"} |
| 121 | +plot(cars) |
| 122 | +``` |
| 123 | + |
| 124 | +## Using knitr to specify height in % {#knitr-height-pct} |
| 125 | + |
| 126 | +```{r, echo = FALSE, fig.cap = "Knitr figure", out.height="50%"} |
| 127 | +plot(cars) |
| 128 | +``` |
| 129 | + |
| 130 | +## Using knitr without caption {#knitr-no-caption-and-content} |
| 131 | + |
| 132 | +```{r, echo = FALSE} |
| 133 | +plot(cars) |
| 134 | +``` |
| 135 | + |
| 136 | +```{r} |
| 137 | +1 + 1 |
| 138 | +``` |
| 139 | + |
| 140 | +## Inline images {#inline-image} |
| 141 | + |
| 142 | +And how does it works with inline images like  |
| 143 | + |
| 144 | +## Using block layout {#block-layout} |
| 145 | + |
| 146 | +::: {layout-ncol=2} |
| 147 | + |
| 148 | +- Item A |
| 149 | +- Item B |
| 150 | +- Item C |
| 151 | + |
| 152 | + |
| 153 | +::: |
| 154 | + |
| 155 | +## Using block layout 2 {#block-layout2} |
| 156 | + |
| 157 | +::: {layout-ncol=2} |
| 158 | +### List One |
| 159 | + |
| 160 | +- Item A |
| 161 | +- Item B |
| 162 | +- Item C |
| 163 | + |
| 164 | +### Image |
| 165 | + |
| 166 | + |
| 167 | +::: |
| 168 | + |
| 169 | +## Using figure table layout {#fig-tab-layout} |
| 170 | + |
| 171 | +```{r} |
| 172 | +#| layout-ncol: 2 |
| 173 | +
|
| 174 | +library(knitr) |
| 175 | +kable(head(cars), caption = "Cars") |
| 176 | +plot(cars) |
| 177 | +``` |
| 178 | + |
| 179 | +## {#no-content} |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | +## {#no-content-caption} |
| 184 | + |
| 185 | + |
0 commit comments