summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gridpapers/examples/custom-colors.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/gridpapers/examples/custom-colors.tex')
-rw-r--r--macros/latex/contrib/gridpapers/examples/custom-colors.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/latex/contrib/gridpapers/examples/custom-colors.tex b/macros/latex/contrib/gridpapers/examples/custom-colors.tex
new file mode 100644
index 0000000000..1dcc940489
--- /dev/null
+++ b/macros/latex/contrib/gridpapers/examples/custom-colors.tex
@@ -0,0 +1,18 @@
+\documentclass{article}
+
+\usepackage{xcolor}
+
+% See the documentation of the xcolor package to learn about different
+% color models for specifying colors
+\definecolor{mydeepgreen}{rgb}{0.07, 0.56, 0.04}
+
+% You can easily mix colors by using the ! syntax from xcolor. Here
+% we use it to mix 40% of our color with 60% white.
+\usepackage[pattern=majmin,
+ majorcolor=mydeepgreen,
+ minorcolor={mydeepgreen!40}]{gridpapers}
+
+\begin{document}
+\thispagestyle{empty}
+~
+\end{document}