I found the tuletter class in Overleaf (which loads the article class) and I've been using it for typing letters of correspondence. Now, I want to change the background color of the letter from the default white to another color, say yellow.

To do this, I use \pagecolor{yellow} from the xcolor package. However, the header text/elements can't be seen if this is done (see image below).

before and after using <code>\pagecolor{yellow}</code>

I've also used the following code from an answer but the same thing happens as when \pagecolor{yellow} is used.:

\usepackage{ocg-p,tikz,eso-pic} \AddToShipoutPictureBG {\begin{ocg}[printocg=never]{backgroundcolor}{oc1}{1} \tikz[overlay,remember picture]\fill[red](current page.north east)rectangle (current page.south west); \end{ocg}}

My question is how does one change the background color of a letter (preferably tuletter class) such that the header elements can be seen?

EDIT: Here is the MWE of the main texfile tuletter_en.tex (coming from the Overleaf template) and which I edit on Overleaf:

% this package is only needed for demo (\lipsum)
\usepackage{times} %Times New Roman Font


% Signature at the end of the letter are used with \closing
\signname{J. Doe}
\signimage{signature_jdoe} % pjansen is the filename of the image of the signature (i.e. 'pjansen.png')
% if needed a second signature can be given with \signnamesec and \signimagesec

% Reference top left
\contact{Contact Person}
\phone{015-278 0000}
\email{[email protected]}
\subject{TU Delft Formal Letter}

% Recipient left under reference
\toname{R.E. Ceiver}
\toaddress{Here and there 22\\4242 AA Hurdieburdie}

% Sender right under logo
\fromname{Faculty of \ldots}
\fromaddress{There 3\\2628 AA Delft}
\frompobox{504\\2600 AA Delft}

\opening{Dear Sir/Madam,}
% show two paragraphs of text
\closing{With kind regards,}

Here is the output of the MWE:

output of MWE

I've tried looking at tuletter.cls but my limited TeX/LaTeX knowledge can't seem to grok it.

  • 1
    You have to provide a complete MWE. I changed page colour to yellow for one of my documents, and headers and footers showed up just fine.
    – Sveinung
    Oct 1, 2019 at 8:24
  • This worked: \documentclass{scrlttr2} \usepackage{xcolor} \pagecolor{lightgray}
    – Erwann
    Oct 3, 2019 at 6:12

1 Answer 1


Textblocks from the header in the class file are not being shown. Textblocks are coming from the textpos package. Add overlay to the options:


I created a project with the solution here: https://www.overleaf.com/read/yyvxwgyyrjns

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .