I've found answers for including graphics in every other part of a letter, but I can't seem to get a letter to compile when including a graphic in the recipient's address. I like to do this for cover letters, including the company's logo above their address.

        \\123 Recipient Street
        \\City, State }
  • 2
    Welcome to TeX.SX! In order for people to be able to help you, please provide a MWE of what exactly you're trying to do.
    – KersouMan
    Jul 31, 2020 at 10:13
  • handrawn sketch would be helpful
    – js bibra
    Jul 31, 2020 at 11:13

1 Answer 1


The issue is that the value of the first line of the letter environment argument is used internally for several things, including setting headers and writing the recipient address to the .aux file as a string. If the value is something complex such as an \includegraphics command then this extra processing does not succeed.

The solution that requires the least amount of changes to the code (which will however not work properly if you actually use things like headers and return addresses) is to provide a placeholder for the recipient name, and only locally define the name as the image when it is being used for printing the recipient information, which is in the \opening macro. The macro where the name is stored is called \toname so this needs to be modified.


\signature{John Smith}
\address{21 Bridge Street \\ Smallville}
% provide a placeholder here
        123 Recipient Street\\
        City, State}
% locally (i.e., within a group) define \toname to be an image
% use the image in the opening
\opening{Dear Sir or Madam,}
% close the group, so \toname will be reset to the previous value (which is 'img-placeholder')
This is a letter.

\closing{Yours Faithfully,}


enter image description here

You must log in to answer this question.

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