I have a problem to get the following result in LaTeX:

enter image description here

The figure is not something I want to do with tikz, but I want to use \includegraphics{figure1.png}. Can someone help me to get this?


Here is my proposal for your code:


\caption{\label{fig:blue_rectangle} Rectangle}
\end{minipage} \hfill
\item *Rectangle
\item *Color: blue


You can adapt the size of the two columns by playing with the 0.5\textwidth part to have it matching your need (It does not have to be equal for the two columns!).

NOTE: The minipage environments must not have any uncommented whitelines between them, i.e. they must touching, as shown in the example. If there is a line between them, LaTeX draws them separately.

| improve this answer | |
  • Thanks, exactly what I needed. But how can I alter the height of the text on the right (''*rectangle, *color:blue'') with respect to the height of the figure? – user32451 Jun 18 '13 at 18:17
  • 1
    First of all you can use an option like this \begin{minipage}[X]{} where X is either t,c or b for top, center and bottom. You can also use the \vspace{Yin} or \vspace{Zcm} before the \begin{itemize} to add some space (Y inches or Z centimeters). – Ludovic C. Jun 18 '13 at 18:31
  • Thanks for your response. So how can I then indent my figure? – user32451 Jun 18 '13 at 18:45
  • When you say indent, you mean have an "extra" margin? If that's it add \hspace{} with whatever you want before the first minipage (make sure to adapt the size of the minipage environments then not to have one going out of the page). – Ludovic C. Jun 18 '13 at 18:49

EDITED to make rectangle, well... blue, per mrc's comment.


\def\y{\parbox[t]{1.5in}{\LARGE *Rectangle\\ {*Color: blue}}}

\raisebox{\baselineskip -\heightof{\x}}{\x} 

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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