2

I'd like to change the grid color in the exam.cls package. By default, it seems to be black (although in the documentation it says the default color is gray). Anyway, I would like to have a very light gray, but defining a new color doesn't seem to change anything.

Here's a MWE:

\documentclass[11pt]{exam}

\usepackage{color}
%\definecolor{GridColor}{gray}{0.8}
\definecolor{GridColor}{rgb}{0.75, 0.75, 0.75}

\begin{document} 
    \begin{questions}

    \addpoints
    \question[1] Schreibe unten hin was immer du willst.

    \fillwithgrid{\stretch{1}}
    \newpage

    \end{questions}
\end{document}

Thanks in advance for any help!

2

As the manual states, you have to issue the \colorgrids macro right after \usepackage{color}.

close up of light grey grid

\documentclass[11pt]{exam}

\usepackage{color}
\colorgrids
%\definecolor{GridColor}{gray}{0.8}
\definecolor{GridColor}{rgb}{0.75, 0.75, 0.75}

\begin{document} 
    \begin{questions}

    \addpoints
    \question[1] Schreibe unten hin was immer du willst.

    \fillwithgrid{\stretch{1}}
    \newpage

    \end{questions}
\end{document}
  • Oh of course... How did I miss that? Thanks! – tiptap Mar 12 '18 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.