如何将图片放置在脚尺上方

如何将图片放置在脚尺上方

如何将图像放置在脚尺上方,请参阅以下代码

\renewcommand{\footrule}{\hbox to\headwidth{%xxxxxxxxxx
%\newline xxxxxxxxxxxxxxxxx\newline\vspace*{1pc}
\includegraphics[width=1cm]{white-paper.png}
\color[RGB]{227,120,17}\leaders\hrule height \footrulewidth\hfill}}

答案1

\documentclass[]{article}


\usepackage{graphicx}
\usepackage{lipsum}

\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}

\renewcommand\footrule{\begin{minipage}{\textwidth}
\includegraphics[width=1cm]{example-image-a}
\hrule width \hsize height 2pt 
\end{minipage}\par}%

\lhead{How to place a image above the footrule}
\rhead{\TeX-SE}
\lfoot{\today}
\rfoot{Page \thepage\ of \pageref{LastPage}}

\begin{document}

\section{First}
\lipsum[1-2]

\section{Second}
\lipsum[3-5]

\end{document}

在此处输入图片描述

相关内容