![如何使文档背景不透明?](https://linux22.com/image/375786/%E5%A6%82%E4%BD%95%E4%BD%BF%E6%96%87%E6%A1%A3%E8%83%8C%E6%99%AF%E4%B8%8D%E9%80%8F%E6%98%8E%EF%BC%9F.png)
我创建了一个工具,用于将 PDF 文档包含在更大的页面上,以提供边距和网格,方便注释和标记。我对结果很满意,只是 PDF 文档背后的网格背景很分散注意力。我希望包含的文档背景不透明(最好是白色)。
“包装”文件:
\documentclass{article}
\usepackage[width=20in,height=15in,landscape,margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage[printwatermark]{xwatermark}
\newwatermark[allpages,angle=0,scale=0.5,xpos=-100,ypos=-1]{\includegraphics{Grid}}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{eso-pic}
\usepackage{ifthen}
\begin{document}
\includepdf[frame,pages=-,templatesize={8.5in}{11in},noautoscale=true,scale=0.5,offset=-170 0]{MWE_doc}
\end{document}
该文件:
\documentclass{article}
\usepackage{blindtext}
\begin{document}
\Blindtext[5]
\end{document}
网格(背景水印)
% Graph paper
% Author: Benjamin Abel
\documentclass{article}
\usepackage{geometry}
\usepackage{tikz}
%%%<
\usepackage{verbatim}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength{\PreviewBorder}{10pt}%
%%%>
\begin{comment}
:Title: Graph paper
:Tags: Plotting;Transparency;Graphs;Plots
:Author: Benjamin Abel
:Slug: graph-paper
A little document that permits to draw a graph paper for students.
\end{comment}
\def\width{68}
\def\hauteur{44}
\begin{document}
\begin{tikzpicture}[x=1cm, y=1cm, semitransparent]
\draw[step=0.5cm, line width=0.1mm, blue!35!white] (0,0) grid (\width,\hauteur);
\end{tikzpicture}
\end{document}
与 xcolor 包结合使用\pagecolor{white}
似乎没有帮助。