2

I am using the lettre class https://www.ctan.org/tex-archive/macros/latex/contrib/lettre wich is very convenient for letters that have to fit DL windowed envelopes. Then the To adress fits perfectly the envelope window.

But I have difficulties to modify the header such as shown on the picture below.

enter image description here

I would like to add a logo and custom parameters on it's right and also give a smaller margin to the body of the letter.

I've been trying to play with the default.ins file but without much success. I don't have a good understanding of what parameters to modify. Would someone have an idea?

Here is the current code:

\documentclass[12pt,origdate]{lettre}
\usepackage[francais]{babel}
\usepackage[latin1]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{mltex}

\begin{document}


\begin{letter}{ To Name \\ 
                To Street \\ 
                ZIP \& City \\  
                ~ \\  
                ~ }
\lieu{City}


\pagestyle{plain}

\name{Dr~Lorem Ipsum}

\conc{This is the object } 

\opening{Dear Lorem Ipsum,}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 

\closing{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.} 

\end{letter}
%
\end{document}
6
  • The logo portion can be remedied with \setstackEOL{\\}\address{\includegraphics[height=2cm,width=2cm]{example-image} \sffamily\Longstack[l]{Name\\Website\\Mail\\Tel}}\telephone{}\fax{} (needs graphicx and stackengine packages). – Steven B. Segletes Jun 8 '16 at 13:53
  • Thx for answer. I added the stackengine package through MikTex but I get an "unknown command" for both \setstackEOL and \Longstack. Where could that come from? – michltm Jun 8 '16 at 14:45
  • Apparently, your system does not currently have the stackengine package available. You can download the style file and documentation at ctan.org/pkg/stackengine. In the short term, you can place it in your working directory, though you should find the proper place to install the package in the long term. – Steven B. Segletes Jun 8 '16 at 14:50
  • 1
    ok, I had made a mistake, the \address{} shouldle be after \begin{letter} and not \begin{document}. Thank you very much Steven B. Segletesn the result is great! Maybe you could add it as a solution? – michltm Jun 9 '16 at 13:47
  • 1
    @StevenB.Segletes Do you want to write up an answer? – Johannes_B Oct 9 '16 at 12:14
1

I remedied the log portion by defining \address as an \includegraphics followed by a \Longstack, and turning off \telephone and \fax.

\documentclass[12pt,origdate]{lettre}
\usepackage[francais]{babel}
\usepackage[latin1]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{mltex}
\usepackage{stackengine,graphicx}
\begin{document}
\setstackEOL{\\}

\begin{letter}{ To Name \\ 
                To Street \\ 
                ZIP \& City \\  
                ~ \\  
                ~ }

\address{\includegraphics[height=2cm,width=2cm]{example-image}
\sffamily\Longstack[l]{Name\\Website\\Mail\\Tel}}

\telephone{}\fax{}

\lieu{City}


\pagestyle{plain}

\name{Dr~Lorem Ipsum}

\conc{This is the object } 

\opening{Dear Lorem Ipsum,}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 

\closing{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.} 

\end{letter}
%
\end{document}

enter image description here

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.