NonoVoyou
NonoVoyou

Reputation: 41

Insert a logo at the top right of a Quarto PDF file

I am trying to create an academic document. I use quarto to be able to include code and formulas. How can I include my university's logo in the top left corner of my document?

For the moment here is what I have managed to do:

---
title: "test"
header-includes:
- \usepackage{titling}
- \pretitle{\begin{center}\LARGE\includegraphics[width=12cm]{nantesuniv.png}\\[\bigskipamount]}
- \posttitle{\end{center}}
output: 
  pdf_document:
    toc: true
format: pdf
documentclass: report
papersize: letter
---

Only I can control the width and length of my logo but not its position.

Upvotes: 4

Views: 1867

Answers (1)

Julian
Julian

Reputation: 9250

You could try the quarto titlepages extension:

---
title: "test"
author: "Example Author"
format: 
  titlepage-pdf:
    titlepage-logo: "nantesuniv.png"
    logo-align: left
    logo-size: 1.5
    
titlepage-theme: 
      elements: ["\\logoblock",  "\\vfill", "\\authorblock", "\\titleblock"] 
documentclass: report
papersize: letter
---

Upvotes: 3

Related Questions