فکر میکنم این روش بتونه مشکل را حل کنه.
\documentclass{article}
\usepackage{pgf}
\usepackage{mathtools}
\usepackage{lipsum}
\usepackage{xcolor}
\definecolor{coltext}{cmyk}{0,0,0,.2}
\makeatletter
\newcommand{\globalcolor}[1]{%
\color{#1}\global\let\default@color\current@color
}
\makeatother
\AtBeginDocument{\globalcolor{coltext}}
\begin{document}
% \pgfsetfillopacity{.2}
\lipsum[2]
\vrule\hrule\vspace{.5cm}\rule{3cm}{.4pt}
\lipsum[2]
\begin{tabular}{|c|}
\hline
Hi\\
\hline
\end{tabular}
\fbox{Hello}
$\dfrac{32525}{7}\sqrt{625}$
\end{document}
با اضافه کردن این کدها:
\usepackage{xcolor}
\definecolor{coltext}{cmyk}{0,0,0,.2}
\makeatletter
\newcommand{\globalcolor}[1]{%
\color{#1}\global\let\default@color\current@color
}
\makeatother
\AtBeginDocument{\globalcolor{coltext}}
![enter image description here][1]