Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding an image to the title page of ioslides presentation

Is it possible to add an image to the title page of ioslides presentation? I would like to add a big logo after the instead of xyz.

---
title: "Empowering Data-Driven Decisions at <br> xyz"
author: Omayma Said
date: Jan 11, 2017
output: ioslides_presentation
---

enter image description here

like image 549
OmaymaS Avatar asked Jan 10 '17 22:01

OmaymaS


1 Answers

Yes. There is a standard option to include a small logo included in the ioslides bookdown documentation as well as some code to make a custom size image using css. This css can go in a separate document or it can at the start of your document after the YAML header which is typically easier when you only have a few lines to add.

Here is an example of putting the css in the document using code snippets from the bookdown documentation.

---
output:
  ioslides_presentation:
    logo: logo.png
---

<script>

    .gdbar img {
        width: 300px !important;
        height: 150px !important;
        margin: 8px 8px;
    }

    .gdbar {
        width: 400px !important;
        height: 170px !important;
    }

    slides > slide:not(.nobackground):before {
        width: 150px;
        height: 75px;
        background-size: 150px 75px;
    }

</script>

# Transition slide

## First slide
like image 107
Will Hore-Lacy Avatar answered Sep 23 '22 01:09

Will Hore-Lacy