Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PDF上R标记的2个徽标_R_Latex_R Markdown - Fatal编程技术网

PDF上R标记的2个徽标

PDF上R标记的2个徽标,r,latex,r-markdown,R,Latex,R Markdown,我正在使用下面的代码在pdf版本的r markdown中添加公司徽标, 输出正常。 我需要在每页上添加两个徽标-一个用于我的客户,另一个用于我们的 公司。 可以使用r标记在pdf中添加2个徽标 --- title: "Complaints Text Model" author: "ANALYTICS TEAM" date: '`r format(Sys.Date(), "%B %d, %Y")`' output: pdf_document: toc: yes header-

我正在使用下面的代码在pdf版本的r markdown中添加公司徽标,
输出正常。
我需要在每页上添加两个徽标-一个用于我的客户,另一个用于我们的
公司。 可以使用r标记在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} 

一个可以位于页面的一侧,另一个可以位于页面的另一侧

您只需模仿左标题的语法即可:

\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}}
可能重复的