I am trying to customize the title of my scrreprt
class document.
The \titlehead
looks like this (basically, three 'columns' created with three instances of \minipage
):
\titlehead{
\large
\begin{minipage}[t]{0.3\textwidth}
\includegraphics[width=0.9\textwidth]{logo}
\end{minipage}
%
\begin{minipage}[t]{0.4\textwidth}
\begin{center}
Foo \\
Bar \\
Baz
\end{center}
\end{minipage}
%
\begin{minipage}[t]{0.2\textwidth}
\begin{flushright}
Fubar
\end{flushright}
\end{minipage}
}
I have two problems:
I want the top of the logo, to align with the top of the text in the other two minipages. I used the
[t]
option of\minipage
to achieve this. But while the two textual minipages line up properly, the image doesn't. It gets rendered much higher than the text. I assume this is because\includegraphics
is not text and so, the[t]
option is meaningless for the first minipage. So what should I be doing to set this right?I expected the total widths of the minipages to add up to
\textwidth
. But if I set the third minipage to0.3\textwidth
(so that the total width adds up to whole), PDFLaTeX decides to push my third minipage down because apparently the three of them side-by-side are too wide. Is there some way I can cleanly fix this? e.g. like, making the third\minipage
fill the available horizontal space? If so, how?
%
immediately after the first two instances of\end{minipage}
. another approach, decidedly plain, not latex, is to insert\hss
in those same locations, setting\parfillskip=0pt
locally, and ending the\titlehead
argument with\par
.