I'm trying to add an image to the top left corner of a page (inside the margins) in LaTeX. Across from the image I want a set of right-aligned text. I tried using two columns but the image is smaller than the text and it breaks up some of the longer lines of text. Didn't seem to be able to make columns of different width with the multicol package.

Here is an example of what I want (made in open office):

What I want


2 Answers 2


Use two minipages next to each other:


\usepackage[pass,showframe]{geometry}% just to show the page margins

\usepackage[demo]{graphicx}% remove demo option in actual document

\noindent\begin{minipage}{0.3\textwidth}% adapt widths of minipages to your needs
all my troubles seemed so far away\\
Now it looks as though they're here to stay\\
Oh, I believe in yesterday.

Here's another screenshot with \fboxes around the minipages and with \dotfill instead of \hfill to make it more obvious how this is constructed. (You wouldn't ever use this in an actual document, obviously.)

  • This would be a nice example to show the benefit of microtype ... :)
    – doncherry
    Commented Jan 16, 2012 at 21:32
  • Thanks very much, this worked perfectly! Just learning TeX this last few days.
    – s0rce
    Commented Jan 16, 2012 at 21:37
  • 2
    @LyleGordon: Glad I could help, you've come to the right place when looking for help or just for new things to learn. In case you don't know it already, I highly recommend The Not So Short Introduction to LaTeX2e, which is where I started. Section 6.6 is about minipage and friends ...
    – doncherry
    Commented Jan 16, 2012 at 21:40

Use minipage. Put each section inside a minipage and specify the required linewidth for each. Example:

This test is supposed\\
to be algnes\\
to left\\
this is perfect it seems

Finally, it will look like:

  • oops! if it's to be aligned to the left, you mean \raggedright. (welcome to tex.sx.) Commented Sep 10, 2016 at 14:57

You must log in to answer this question.

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