有没有办法延迟设置框内容的文本颜色和背景颜色,直到该框被使用?有
没有办法延迟设置框内容的文本颜色和背景颜色,直到该框被发送到 .pdf 文件或 .dvi 文件?
例如:
\documentclass{article}
\usepackage{xcolor}
\newbox\mytempbox
\begin{document}
\savebox\mytempbox{%
\vbox{%
<Some special with placeholders for values of textcolor and backgroudcolor>
\hbox{One}\hbox{Two}%
}%
}
<Some directive for assigning values to placeholders for values of textcolor and backgroudcolor>
\usebox\mytempbox
<Some directive for assigning values to placeholders for values of textcolor and backgroudcolor>
\usebox\mytemphbox
<Some directive for assigning values to placeholders for values of textcolor and backgroudcolor>
\usebox\mytemphbox
\end{document}