![将文本放置在图像上的特定位置](https://linux22.com/image/468324/%E5%B0%86%E6%96%87%E6%9C%AC%E6%94%BE%E7%BD%AE%E5%9C%A8%E5%9B%BE%E5%83%8F%E4%B8%8A%E7%9A%84%E7%89%B9%E5%AE%9A%E4%BD%8D%E7%BD%AE.png)
我正在尝试将文字放在文档封面的背景图像上。背景图像将是静态的,因此我使用了\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}