单页阴影

单页阴影

enter image description here

我想为单个页面生成背景阴影颜色。我该如何实现?

答案1

TikZ 可以在睡眠中完成此操作。这是对tikz文档(部分2.14 阴影,第 31 页):

enter image description here

\documentclass{article}
\usepackage{tikz}% http://ctan.org/pkg/pgf
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
  \shade[left color=white,right color=orange!60]
    (current page.south west) rectangle (current page.north east);
\end{tikzpicture}

\lipsum[1-5]
\end{document}

我使用了整页阴影(从左到右,白色到 60% 橙色),但您也可以使用其他形状和大小。例如,从页面中间(水平)开始的类似上述阴影将是

\begin{tikzpicture}[remember picture,overlay]
  \shade[left color=white,right color=orange!60]
    (current page.south) rectangle (current page.north east);
\end{tikzpicture}

相关内容