TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got two cases with images I wish to use within a document.

One is a logo, I would like to use it in the front page, at the top-right corner.

How do I do that?

The second are a drawings which I would like it to be (horizontally) centralized, and in between the paragraphs I have placed it. Point is at the final result, figures are positioned sometimes a paragraph or two later.

How can I enforce them to be exactly where I want them?

share|improve this question
For the second, see for example Keeping tables/figures close to where they are mentioned – Torbjørn T. Mar 17 '12 at 18:07
Considering the logo, it is not really a "figure", just part of the title. You can place it in the environment \begin{center} ... \end{center} to make it centered. As for the real figures, follow the Torbjørn's link. – yo' Mar 17 '12 at 19:01
top-right not center. – Tzury Bar Yochay Mar 17 '12 at 20:37
@tohecz: You shouldn't use center for images. It is intended for text only. See Should I use center or centering for figures? and When should we use \begin{center} instead of \centering?. – Martin Scharrer Apr 14 '12 at 16:15
@MartinScharrer As far as OP does not use \begin{figure}[h]\begin{center}..., but only \begin{center}, it gives better spacing than \centering. The thing is, images shouldn't be places just "between paragraphs" so he should of course say \begin{figure}[...]\centering... – yo' Apr 14 '12 at 19:32

The position of float environments are discussed very often here at tex stackexchange. Some related questions are:

Whatever I think the biggest problem is the understanding of \includegraphics. The command doesn't require a floating environment. It's a simple "token" inside TeX. So to place a picture in the top right corner you can use standard methods like \raggedright, \hfill etc. Maybe you can also use scrpage2 or fancyhdr. If you want to set a figure at a special place you can also use packages like textpos or atbegshi.

The great package adjustbox can handle the positioning very easy. You can simple use:

Load the package with the option export:


Then you can use \includegraphics as follows:

\includegraphics[<other options>,right=<optional width, normally \linewidth>]{<file name>}
share|improve this answer
You can right align an image by loading \usepackage[export]{adjustbox} and then using \includegraphics[<other options>,right=<optional width, normally \linewidth>]{<image file>}. – Martin Scharrer Apr 14 '12 at 16:16
@MartinScharrer: Thanks. Added – Marco Daniel Apr 14 '12 at 16:20
Thanks. I took the liberty to adjust the edit a little. – Martin Scharrer Apr 14 '12 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.