将整页宽度的图像放在 Overleaf 的页面底部

Put full page width image at bottom of page in Overleaf

我有一个要填写的发票模板。作为我居住的发票的一部分,我们在该发票最后一页的页脚中放了一张付款单。我已经生成了 png 格式的付款单。它大约是一张 a4 纸的大小,我想把它放在它自己页面的底部。第一页中有脚注和所有详细信息的发票。

我自己基于 Overleaf 中的这个模板。 https://github.com/eroux/latex-yait

所以在自定义所有模板后,我插入付款单

\newpage

\begin{figure}[b!]
    \makebox[\textwidth]{\includegraphics{images/paymentslip.png}}
\end{figure}

需要 \makebox 以便付款单 png 没有缩进。但是,此代码段将付款单呈现在页面的大约中心位置。使用 google 中的所有不同选项并没有得到我想要的结果。

可能是图像宽度的问题。有谁知道我如何在页面底部定义一个框并在乳胶中对齐底部的付款单吗?

使用tikz,相对于纸张放置元素非常容易:

\documentclass{article}

\usepackage{tikz}

\begin{document}

your document

\clearpage

\begin{tikzpicture}[remember picture, overlay, inner sep=0pt]
\node[anchor=south west] at (current page.south west) {\includegraphics[width=\paperwidth]{example-image-duck}};
\end{tikzpicture}

\end{document}