答案1
它非常简单——只需几行代码——使用pstricks
,更准确地说是使用pst-text
和pst-fill
包。
此外, 如果您向编译器添加开关(针对 TeX Live、MacTeX)或(MiKTeX),auto-pst-pdf
它就可以与 一起使用:pdflatex
-shell-escape
--enable-write18
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{pst-text, pst-fill, auto-pst-pdf}%
\usepackage{graphicx}
\begin{document}
\centering
\includegraphics[scale=0.4]{Piero_di_Cosimo_1}\medskip
\Huge\sffamily\bfseries
\begin{center}
SOMETIMES TO UNDERSTAND \\
A \begin{pspicture}\psboxfill{\includegraphics{Piero_di_Cosimo.eps}}%
\pscharpath[fillstyle=boxfill, linestyle=none]{ WORD’S MEANING}
\end{pspicture} YOU \\
NEED MORE THAN A \\
DEFINITION
\end{center}
\end{document}