页末图片

页末图片

在标题页上,我想在页面末尾放置某个图形。有限制,图形需要距离页面边框 x 毫米。我尝试按照文档中的说明符放置图形

\begin{figure}[placement specifier]
... figure contents ...
\end{figure}

但没有成功。有没有办法将图形移动到正文/页脚下方,同时保持正文/页脚部分中的文本不变?

现在,标题页具有以下结构:

\begin{titlepage}
    \begin{figure}
        \vspace{\dimexpr-1in-\topmargin-\headheight-\headsep+Xmm}
        \hspace{\dimexpr-1in-\oddsidemargin+Xmm}
        \includegraphics{img-top.pdf}   
    \end{figure}

    \begin{figure}[!b]    
        \vspace{ ..297mm -XYZmm.. }
        \hspace{\dimexpr-1in-\oddsidemargin+Xmm}
        \includegraphics{img-bottom.pdf}
    \end{figure}

    \centering
    \vspace*{4.5cm}
    {\scshape\LARGE Description \par}
    \vspace{2cm}
    {\huge\bfseries Title \par}
    \vspace{3cm}
    {\Large\itshape Author \par}
    \vfill
    % Bottom of the page
    {\large \today\par}

\end{titlepage}

谢谢任何提示!

答案1

正如 TeXnician 提到的:如果您希望图像准确显示在您想要的位置,则不应使用 -environment figure。此外:您可能想看看 -package tikz,它提供了方便的tikzpicture-environment:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{titlepage}

    \begin{tikzpicture}[remember picture,overlay]
    \node[anchor=south east,yshift=XYZcm,xshift=-Xcm] at (current page.south east)
        {\includegraphics[height=8mm]{example-image-b}};
    \end{tikzpicture}

    \begin{figure}
        \vspace{\dimexpr-1in-\topmargin-\headheight-\headsep+Xmm}
        \hspace{\dimexpr-1in-\oddsidemargin+Xmm}
        \includegraphics[height=8mm]{example-image-a}   
    \end{figure}

    \centering
    \vspace*{4.5cm}
    {\scshape\LARGE Description \par}
    \vspace{2cm}
    {\huge\bfseries Title \par}
    \vspace{3cm}
    {\Large\itshape Author \par}
    \vfill
    % Bottom of the page
    {\large \today\par}

\end{titlepage}
\end{document}

结果

编辑:您可能希望将两个图像放入一个或两个tikzpicture环境中:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{titlepage}
    \begin{tikzpicture}[remember picture,overlay]
    \node[anchor=north west,yshift=-1cm,xshift=1cm] at (current page.north west)
        {\includegraphics[height=8mm]{example-image-a}};
    \node[anchor=south east,yshift=1cm,xshift=-1cm] at (current page.south east)
        {\includegraphics[height=8mm]{example-image-b}};
    \end{tikzpicture}


    \centering
    \vspace*{4.5cm}
    {\scshape\LARGE Description \par}
    \vspace{2cm}
    {\huge\bfseries Title \par}
    \vspace{3cm}
    {\Large\itshape Author \par}
    \vfill
    % Bottom of the page
    {\large \today\par}

\end{titlepage}
\end{document}

相关内容