TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 use elsarticle 2 docment page in LyX.

I put figure in left column partion and use

\resizebox{3.4in}{!}{ Figure.png } 

to make it smaller

But I still need to align the figure to left of the page

How to do this in LyX?

share|improve this question

The resizing can already be done in \includegraphics with the width option. If the figure starts a new paragraph, add \noindent. If there are centering commands before (\centering or environment center), then you might consider removing them. Otherwise it can be put to the left by \hfill\null. The \null prevents that the \hfill is skipped by the paragraph end. A third method uses \leftline (unlike \mbox) it does not switch into horizontal mode).

  \caption{Figure caption}
  \caption{Figure caption}
  \caption{Figure caption}


share|improve this answer
adjustbox also provides some keys to align images to the right, left or center. They can be exported for \includegraphics. – Martin Scharrer Sep 11 '12 at 19:42
i don't know how to add this code in lyx, this is the existing code form code viewer but i can't edit it? \begin{figure} \begin{centering} \resizebox{3.4in}{!}{ \includegraphics[clip]{tae1}} \par\end{centering} so how to add the working \includegraphics[width=3.4in]{Figure}\hfill\null – mero Sep 11 '12 at 21:05

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.