【问题标题】:2 Logo in R Markdown on PDF2 PDF 上 R Markdown 中的徽标
【发布时间】:2018-06-05 16:10:19
【问题描述】:

我正在使用以下代码在 pdf 版本的 r markdown 中添加公司徽标,并且
输出很好。
我需要在每个页面上添加 2 个徽标 - 一个用于我的客户,另一个用于我们的
公司。 可以使用 r markdown 在 pdf 中添加 2 个徽标。

    ---
title: "Complaints Text Model"
author: "ANALYTICS TEAM"
date: '`r format(Sys.Date(), "%B %d, %Y")`'
output:
  pdf_document:
    toc: yes 
header-includes:
    - \usepackage{fancyhdr}
always_allow_html: yes
---
\addtolength{\headheight}{1.0cm} 
\pagestyle{fancyplain} 
\rhead{\includegraphics[height=1.2cm]{D:/D Drive Data/Shivi/R Project/my company.png}} 
\renewcommand{\headrulewidth}{0pt} 

一个可以在页面的一侧,另一个徽标在另一侧。

【问题讨论】:

标签: r latex r-markdown


【解决方案1】:

您需要做的就是模仿左侧标题的语法:

\rhead{\includegraphics[height=1.2cm]{D:/D Drive Data/Shivi/R Project/my company.png}}
\lhead{\includegraphics[height=1.2cm]{D:/D Drive Data/Shivi/R Project/client.png}}

【讨论】:

    猜你喜欢
    • 2019-12-31
    • 2021-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-15
    • 2018-08-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多