将文本放置在图像上的特定位置

将文本放置在图像上的特定位置

我正在尝试将文字放在文档封面的背景图像上。背景图像将是静态的,因此我使用了\AddToShipoutPicture*

我想知道是否有更有效的方法将文本放在背景封面图像上。

这是我当前拥有的代码:

\documentclass[11pt,openany]{book}

\usepackage{etex}
\reserveinserts{28}
\usepackage{graphicx, rotating, ltablex, dcolumn, booktabs}
\usepackage{eso-pic}
\usepackage{lipsum}

\begin{document}

%======================================================================================
%   TITLE PAGE
%======================================================================================
\begingroup

\frontmatter

\thispagestyle{empty}

\AddToShipoutPicture*{\put(-8,-2.5){\includegraphics[scale=5]{example-image-a}}
\put(30,50){\Huge\textcolor{white}{Advanced Data Mining}}
\put(30,500){\Huge\textcolor{white}{This is some other text}}
\put(500,100){\rotatebox{90}{\Huge\textcolor{white}{This is some other text}}}
\put(530,100){\rotatebox{90}{\Huge\textcolor{white}{This is some more added text}}}
\put(200,270){\Huge\textcolor{white}{This is some other text}}
\put(200,240){\Huge\textcolor{white}{And some more}}
\put(200,210){\Huge\textcolor{white}{And even more}}

}
\mbox{~}
\clearpage
\newpage

\endgroup


%========================================================================================
%   MAINMATTER
%========================================================================================
\mainmatter

\chapter{Default chapter layout}
\lipsum[1]

\end{document} 

相关内容