{"id":1207,"date":"2022-09-06T10:22:48","date_gmt":"2022-09-06T10:22:48","guid":{"rendered":"https:\/\/www.highsund.com\/?p=1207"},"modified":"2022-09-06T17:49:30","modified_gmt":"2022-09-06T17:49:30","slug":"overlay-pictures-anywhere-in-latex","status":"publish","type":"post","link":"https:\/\/www.highsund.com\/en\/2022\/09\/06\/overlay-pictures-anywhere-in-latex\/","title":{"rendered":"Overlay pictures anywhere in Latex"},"content":{"rendered":"

Reproduced from https:\/\/tex.stackexchange.com\/a\/408447<\/a><\/p>\n

Overlay a picture anywhere on a page (doesn't influence the original format) : <\/p>\n

\\documentclass{article}\n\\usepackage{graphicx,tikz}\n\\pagestyle{empty}\n\\begin{document}\n\\mbox{}\n\\begin{tikzpicture}[overlay,remember picture]\n \\node[anchor=north west,inner sep=0pt]at ([xshift=1cm,yshift=-1cm]current page.north west) {\\includegraphics[width=5cm]{example-image-a}};\n %only to show the values:\n \\draw[red,<->] ([yshift=-1cm]current page.north west) --++ (1,0) node[midway,above]{1cm}; \n \\draw[red,<->] ([xshift=1cm]current page.north west) --++ (0,-1) node[midway,right]{1cm}; \n \\draw[red,<->] ([xshift=1cm,yshift=-3cm]current page.north west) --++ (5,0) node[midway,above]{5cm}; \n \\end{tikzpicture}\n\\end{document}<\/code><\/pre>\n

\"bei0J\"<\/p>\n","protected":false},"excerpt":{"rendered":"

Reproduced from https:\/\/tex.stackexchange.com\/a\/408447 Overlay a picture anywhere on a page (doesn’t influence the original format) : \\documentclass{article} \\usepackage{graphicx,tikz} \\pagestyle{empty} \\begin{document} \\mbox{} \\begin{tikzpicture}[overlay,remember picture] \\node[anchor=north west,inner sep=0pt]at ([xshift=1cm,yshift=-1cm]current page.north west) {\\includegraphics[width=5cm]{example-image-a}}; %only to show the values: \\draw[red,<->] ([yshift=-1cm]current page.north west) –++ (1,0) node[midway,above]{1cm}; \\draw[red,<->] ([xshift=1cm]current page.north west) –++ (0,-1) node[midway,right]{1cm}; \\draw[red,<->] ([xshift=1cm,yshift=-3cm]current page.north west) –++ (5,0) … <\/p>\n