I have a rather complex layout for a letter. It needs to have a certain part of a header on every page while another part should only be shown on the first page. The whole thing can be found here: MWE



%Color definition

%Remove par indent

%----------- Defined Variables -------------------------
\def\adress{company, Street 1, 123 City}
\def\aname{other company}
\def\aadd{Some Person}
\def\astreet{Street 2}
\def\apostal{321 City}
\def\subject{Some Subject}
%----------- End Defined Variables ---------------------

%Settings for fancy table

%Fancy Header stuff

\renewcommand{\footrulewidth}{0.4pt}% default is 0pt
\renewcommand{\footrule}{\color{light-gray}{\hrule} \vspace{10pt}}

%Actual Header and Footer Layout

        \textbf{Some info:} & \\
        Date: & \today \\
        Some Number: & \onr \\          
        Other Number: & \cnr \\
        Page: & \thepage\ of \pageref{LastPage} \\
        \item[] \aname
        \item[] \aadd
        \item[] \astreet
        \item[] \apostal        



  Account Data:\\
  IBAN: 123\\
  Bank: Some Bank
    comp name\\
    Street 1\\
    123 City
    Phone: 987654321
%End Actual Header and Footer Layout

More Yadda

Second Page Yadda

There are several problems with my approach, it seems. The most pressing one for me is the misplaced minipage on the left. I just can't figure out how to make both parts of my header align. Any ideas?

  • Welcome to TeX.SX! You should paste your MWE into your question, so it may be read by future visitors even when the external link no longer works. – Andrew Swann Nov 26 '14 at 13:00
  • Will do. I just thought it was rather long for a MWE. – Nessuno Nov 26 '14 at 13:25
  • Is this what you want: i.stack.imgur.com/i72X2.png – user11232 Nov 26 '14 at 13:27
  • Welcome, out of curiosity, why don't you use a class that was designed for letters? scrlttr2 comes to mind. It is full of features. – Johannes_B Nov 26 '14 at 13:32
  • Right now you are aligning a top with a bottom. – John Kormylo Nov 26 '14 at 14:01

It seems that it was a plain oversight on my side. As Harish Kumar and John Kormylo point out I just have to remove the [t] parameter in the minipage definition inside the lrbox.

    \begin{minipage}{.5\textwidth} % remove 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.