
我試圖在標題頁的右上角放置一個徽標。我嘗試過使用標題頁環境,但它不斷使圖像居中。有沒有辦法 1)將圖像放在右上角,2)能夠按照我的意願在垂直方向上間隔文字?即使圖像居中,嘗試垂直移動文字也是徒勞的。
範例如下:
\documentclass{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{titlepage}
\includegraphics[width=0.3\linewidth]{logo}
\centering
\vfill
{\bfseries\Large
\vspace{3cm}
Performance Report
Blah blah blah
\vskip2cm
First Last
}
\vfill
\vfill
\vfill
\end{titlepage}
\end{document}
先感謝您。
答案1
\hfill
我只是在之前添加一個\includegraphics
\documentclass{article}
\usepackage[demo]{graphicx}
\begin{document}
\begin{titlepage}
\hfill \includegraphics[width=0.3\linewidth]{example-image-a}
\centering
\vfill
{\bfseries\Large
\vspace{3cm}
Performance Report
Blah blah blah
\vskip2cm
First Last
}
\vfill
\vfill
\vfill
\end{titlepage}
\end{document}
答案2
像這樣的東西嗎?
絕對是過度殺傷:
\documentclass{article}
\usepackage{tikz,tikzpagenodes}
\begin{document}
\begin{titlepage}
\tikz[overlay, remember picture]{%
\node [anchor=north east, inner sep=0pt] at (current page text area.north east) {\includegraphics[width=0.3\linewidth]{example-image-a}};
}%
\centering
\vfill
{\bfseries\Large
\vspace{3cm}
Performance Report
Blah blah blah
\vskip2cm
First Last
}
\vfill
\vfill
\vfill
\end{titlepage}
\end{document}