繁体   English   中英

在 Quarto PDF 文件的右上角插入徽标

[英]Insert a logo at the top right of a Quarto PDF file

我正在尝试创建一份学术文件。 我使用四开本来包含代码和公式。 如何在文档的左上角包含我所在大学的徽标?

目前,这是我设法做到的:

---
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
---

只有我可以控制我的徽标的宽度和长度,但不能控制它的 position。

您可以尝试quarto titlepages扩展:

---
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
---

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM