{"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\/zh\/2022\/09\/06\/%e5%8f%a0%e5%8a%a0%e5%9b%be%e7%89%87-%e4%bb%bb%e4%bd%95%e5%9c%b0%e6%96%b9-latex%e4%b8%ad%e7%9a%84%e5%9b%be%e7%89%87\/","title":{"rendered":"\u5728Latex\u7684\u4efb\u4f55\u5730\u65b9\u53e0\u52a0\u56fe\u7247"},"content":{"rendered":"

\u8f6c\u8f7d\u81ea https:\/\/tex.stackexchange.com\/a\/408447<\/a><\/p>\n

\u5728\u4e00\u4e2a\u9875\u9762\u7684\u4efb\u4f55\u5730\u65b9\u53e0\u52a0\u56fe\u7247\uff08\u4e0d\u5f71\u54cd\u539f\u59cb\u683c\u5f0f\uff09\u3002 <\/p>\n

\\documentclass{article}.\n\\usepackage{graphicx,tikz}\uff08\u4f7f\u7528\u5305\u88c5\uff09\u3002\n\\pagestyle{empty}}\u3002\n\\begin{document}\uff08\u5f00\u59cb\uff09\u3002\n\\mbox{}\u3002\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\u6765\u663e\u793a\u6570\u503c\u3002\n \\draw[red,] ([yshift=-1cm]current page.north west) --++ (1,0) node[midway,bove]{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,bove]{5cm};\n \\end{tikzpicture}.\n\\end{document}.<\/code><\/pre>\n

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

\u8f6c\u8f7d\u81eahttps:\/\/tex.stackexchange.com\/a\/408447 \u5728\u9875\u9762\u7684\u4efb\u4f55\u5730\u65b9\u53e0\u52a0\u56fe\u7247\uff08\u4e0d\u5f71\u54cd\u539f\u59cb\u683c\u5f0f\uff09\u3002\\documentclass{article}\uff08\u6587\u4ef6\u7c7b\uff09\u3002\\\u53e0\u52a0\u56fe\u7247\uff1ausepackage{graphicx,tikz}\u3002\\pagestyle{empty}\u3002\\begin{document}\uff08\u5f00\u59cb\uff09\u3002\\mbox{}\u3002\\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:\\\u7ed8\u5236[\u7ea2\u8272,] ([yshift=-1cm]\u5f53\u524d\u9875.\u5317\u897f) -++ (1,0) \u8282\u70b9[midway,bove]{1cm}; \u7ed8\u5236[\u7ea2\u8272,] ([xshift=1cm]\u5f53\u524d\u9875.\u5317\u897f) -++ (0,-1) \u8282\u70b9[midway, right]{1cm}; \u7ed8\u5236[\u7ea2\u8272,] ([xshift=1cm, yshift=-3cm]\u5f53\u524d\u9875.\u5317\u897f) -++ (5,0) ... <\/p>\n