Page LayoutLateX titlehead with text and image

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
trunksen
Posts: 1
Joined: Fri Dec 27, 2013 8:54 pm

LateX titlehead with text and image

Post by trunksen »

Hi!

So here is my Problem:

Basically I am using the scrreprt class for my report.
There in the titlehead I want to have on the left side two rows of text and on the right side an image (in the same row as the text!)!
I have tried quite a few different methods to achieve this until now!

In some cases
(1)the image will be under the text
and in some
(2)the image will be between the two lines!

Here some example code I have tried!

Code: Select all

\titlehead{
   \textit{First line \\second line}\hfill \includegraphics[scale = .03]{logo.png}
}
This achieves (2)

Code: Select all

\titlehead{
 \begin{minipage}[c]{.9\linewidth}
    \textit{line 1 \\line 2}
  \end{minipage}\hfill
  \begin{minipage}[c]{\linewidth}
    \begin{flushright}
      \includegraphics[scale = .03]{logo.png}
    \end{flushright}
  \end{minipage}
}
This achieves (1)

I am aware of the adjustbox package and the valign=t param, however I am running Ubuntu 12.04 LTS and I have quite some problems installing the package (it is not in the repositories)!

I hope somebody can help me!

thanks in advance
trunksen
and I have problems installing

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply