【问题标题】:Put full page width image at bottom of page in Overleaf将整页宽度的图像放在 Overleaf 的页面底部
【发布时间】:2021-11-06 10:18:26
【问题描述】:

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

我以 Overleaf 中的这个模板为基础。 https://github.com/eroux/latex-yait

所以在定制完所有模板后,我插入付款单

\newpage

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

\makebox 是必需的,因此付款单 png 没有缩进。然而,这个 sn-p 将付款单呈现在页面的大约中心。玩弄谷歌的所有不同选项并没有得到我想要的结果。

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

【问题讨论】:

    标签: latex pdflatex overleaf


    【解决方案1】:

    使用 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}
    

    【讨论】:

      猜你喜欢
      • 2017-02-12
      • 1970-01-01
      • 1970-01-01
      • 2021-02-07
      • 2014-04-21
      • 2022-07-07
      • 2017-08-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多