![用图像填充文本?](https://linux22.com/image/364624/%E7%94%A8%E5%9B%BE%E5%83%8F%E5%A1%AB%E5%85%85%E6%96%87%E6%9C%AC%EF%BC%9F.png)
答案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}