水印文字填充文本区域

水印文字填充文本区域

考虑一下这个MWE:

\documentclass[table]{standalone}
\usepackage{lipsum, graphicx, polyglossia, enumitem, amssymb, pifont, booktabs, cancel, animate, ulem, ragged2e}
\usepackage[most]{tcolorbox}
\linespread{2}

\newtcolorbox{mybox}[2][]{%
  enhanced,
  before upper=\setlength{\parskip}{\bigskipamount},
  colframe=black,
  boxrule=2mm,
  bottomrule=8mm,
  colbacktitle=black,
  fonttitle=\bfseries\centering,
  coltitle=white,
  colback=yellow!10!white,
  coltext=black,
  finish={\node[rotate=45, fill opacity=0.25, inner sep=5mm] at (frame.center) {\Huge\bfseries Watermark Text!};
  \node[white, font=\footnotesize, anchor=south, text width=.95\textwidth] at (frame.south) {\hfill Hello World};},
  title=#2,#1}

\newcommand{\xxbody}{
  \lipsum[2,4]
  \noindent\includegraphics[width=\textwidth]{example-image-a}\qquad
  \lipsum[2,4]
}

\newcommand{\xxheading}{%
  Heading
}

\begin{document}

\begin{mybox}{\LARGE \xxheading{}}

  \xxbody{}

\end{mybox}

\end{document}

我如何获得“水印文本!”的多个副本以覆盖整个文本区域(即,它不会溢出到边框上)?

但同时,“水印文本!”需要位于图像上方。

另外,如何自动设置底部边框的高度,以便“Hello World”正确地居中显示?

或者至少让“Hellor World”垂直居中对齐?

相关内容