将徽标移至页面左/右

将徽标移至页面左/右

我想在页面角落插入我的公司徽标。我用过

\documentclass[a4paper,twoside,10pt]{report}
    \usepackage[pdftex]{graphicx}  % note the x at the end
    \usepackage{graphicx} %%Zum Laden von Grafiken
    \usepackage{wallpaper}
    \usepackage{lipsum}
    \pagestyle{empty} 
    \begin{document}
    \pagestyle{plain} 
    \ThisULCornerWallPaper{0.20}{logo.png}
    \lipsum[2-4]
    \end{document}

可以。但我想将其移动,例如向左/向右移动 5 点。我该怎么做?

答案1

在此处输入图片描述

\documentclass[a4paper,twoside,10pt]{report}
\usepackage[pdftex]{graphicx} 

\usepackage{wallpaper}
\usepackage{lipsum}

\usepackage{tikz}
\usetikzlibrary{calc}

\pagestyle{empty} 
\begin{document}
    \pagestyle{plain} 
    \ThisULCornerWallPaper{0.20}{example-image-a}
    \lipsum[2-4]
    
    \tikz[remember picture, overlay]\node[anchor=north west,inner sep=0,outer sep=0] 
    at ($(current page.north west) + (5cm,-1cm) $) {\includegraphics[scale=0.35]{example-image-b}}; 
\end{document}

相关内容