Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding logo to title slide

Tags:

xaringan

How do I properly add logos to the top of the title slide?

After some trial and error, I came up with this which I add to the css file.

.title-slide.remark-slide-content:before{
  position: absolute;
  content:url(logo.svg);
  height:60px;
}

enter image description here

This seems to work for one logo and it's positioned on the top right. I would like to add another logo on the top left too. Is there a better way to do this?

like image 713
rmf Avatar asked Apr 16 '18 20:04

rmf


People also ask

Where should a logo go on a slide?

Our tip: Include the logo at the beginning and at the end of your presentation and avoid placing it on every slide. The only exceptions to this are self-running presentations. In this case, your logo should be visible on every slide.

How do I insert a Picture into a header in PowerPoint?

Click the “Insert” tab along the top menu and then click the “Header & Footer” button to add a header to the slides if none is present.


1 Answers

One way would be to create a custom title slide using seal: false with some divs.

---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
date: "2016/12/12"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true 
      countIncrementalSlides: false
    seal: false
---

<div class="my-logo-left"></div>

<div class="my-logo-right"></div> 

# hello

---

CSS

.my-logo-left {
content: "";
    position: absolute;
    top: 15px;
    left:   20px;
    height: 40px;
    width: 120px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(https://www.r-project.org/logo/Rlogo.png);
}

.my-logo-right {
content: "";
    position: absolute;
    top: 15px;
    right:   8px;
    height: 40px;
    width: 120px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(https://www.r-project.org/logo/Rlogo.png);
}
like image 174
pat-s Avatar answered Oct 06 '22 09:10

pat-s