* You can specify a background image (or multiple images) at the start of your slide. Ps footnotes are created using `.footnote` ] Knitr::include_graphics("img/camera-green.jpg") * you can add images using Rmarkdown (scale depends on image size and it's not very customizable) * In case you wer wondering, the red text was created using `.red` Also, now that we have space for the text to run the entire width of the slide, it is not expanding to do so.red. For instance, the start of this paragraph gets pushed to the top of the side. As you can see here, if I continue typing we have some weird functionality. Note that unlike before these columns are meant to be used for the entire slide. like the things of that nature that appear in textbooks. I'm guessing this is because the left columns are meant for "Asides" or "Tips" or "Warnings", etc. Notice how the Left and Right columns are not aligned at the top. The right column is 75% textwidth and uses regular font. This panel is created using the syntax `.left-column`. The left column is 20% slide-width and lighter colour. # How sweet it is to be columned by xargingan! (to be columned by xargingan) This is a `.pull-right` within a `.pull-right` This is a `.pull-left` within a `.pull-right` This is a `.pull-right` within a `.pull-left` ![]() ![]() This is a `.pull-left` within a `.pull-left` See how this can go back to taking up the entire width? They don't have to take up the entire slide. Velit aliquet sagittis id consectetur purus ut faucibus pulvinar. At consectetur lorem donec massa sapien faucibus et molestie ac. Rutrum quisque non tellus orci ac auctor augue mauris augue. Mi sit amet mauris commodo quis imperdiet massa tincidunt. A pellentesque sit amet porttitor eget dolor. Ipsum dolor sit amet consectetur adipiscing elit ut aliquam. Eget gravida cum sociis natoque penatibus. Vestibulum lorem sed risus ultricies tristique nulla. Tincidunt vitae semper quis lectus nulla. Ultrices gravida dictum fusce ut placerat orci nulla pellentesque. Sed tempus urna et pharetra pharetra massa massa ultricies mi. Ipsum a arcu cursus vitae congue mauris rhoncus. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Įnim neque volutpat ac tincidunt vitae semper quis lectus. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. You can layout content to the left or right use the syntax `.pull-left` and `.pull-right`, respectively. Horizontal alignment: `bottom`, `center`, `top`, Vertical alignment: `left`, `middle`, `right` `inverse` for dark background, light font for example presenter notes might look like this: `h` will show you a help menu of useful keyboard shortcuts (again press `h` to exit) presenter mode can be accessed by pressing `p` (press `p` to exit) * This will only be viewable to the presenter in presenter mode * Presenter notes can be created using `?` N.B, you can't use this within `.pull-left`/`.pull-right`. * A new slide begins with `-`, pauses created using `-`. eg `rmarkdown::metadata$title` gives our title: "Learning xaringan Presentations" * The first slide was a title page that was population using the meta-data from our YAML * Notice that slide content starts immediately after the YAML (i.e it will be missing the `-` in this case) You can change the meta data to what is appropriate. * Your Rmd file will begin with a YAML, followed by an R setup chunk. bypassing the need to knit to see your changes) within the RStudio window as opposed to a separate pop-up window) and it automatically generates the slides as you type! (i.e. * I prefer to use the second option since it allows you to view the slides in the Viewer panel (i.e. (Go to the `Addins` dropdown menu at the top of the RStudio window and select `Infinite Moon Reader`) _knitting_ the document by clicking the !(img/knit.png) button or on your keyboard using or `Shift` + `Command` + `K`Ģ. * You can convert your `.Rmd` file to `html` slides by either:ġ. * This will create a R markdown file that begins with a YAML containing some meta data > `File -> New File -> R Markdown -> From Template -> `. * Next create a presentation from a template using: If you forget to do this, you can always follow the steps () * To begin, start a new RProject (this will make life easier if you want to deploy your slides to github). * I will be working through these and summarizing what I've learned here. At the above link, they provide a two-day intro to xaringan using their template: ![]() Documentation in book form can be found in Chapter 7 of the () Documentation in slide form can be found () * These slides are created using the package ()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |