TransWikia.com

Shift logo on page left/right

TeX - LaTeX Asked by user31177 on February 17, 2021

I am trying to insert my company logo on the corners of the pages. I used

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}

It works. But I want to shift it, e.g. 5 pts to left/right. How can I do it?

One Answer

enter image description here

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}

Answered by js bibra on February 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP