Insert a logo in upper right corner of R markdown pdf document

后端 未结 5 1487
挽巷
挽巷 2020-12-01 03:21

I am getting started with R markdown and I would like to create a new report having our company image logo.png in the upper right corner of each page.

I

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 03:55

    I have found a solution to make a logo only on the first page:

    \addtolength{\headheight}{1.0cm} % make more space for the header
    \fancypagestyle{plain}{} % this is to remove the default plain style for the first page
    \thispagestyle{fancy} % use fancy for all pages except chapter start
    \fancyhead[L]{\includegraphics[width = 100pt]{ManchesterLogo.png}}
    \renewcommand{\headrulewidth}{0pt} % remove rule below header
    

提交回复
热议问题