4

When I compile the following, the text in the second minipage of the figure is typeset with center vertical alignment despite the fact that I've specified the t option for minipage. Is there something simple I'm doing wrong here?

\documentclass[12pt]{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[colorlinks=true]{hyperref}
\usepackage{enumitem}
\usepackage[rm, small, sc]{titlesec}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[margin=1cm, font=small]{caption}
\usepackage[rightcaption]{sidecap}

\begin{document}

\begin{figure}[h]
    \begin{minipage}[]{.63\textwidth}
        \includegraphics[scale = 1]{gas_half_container}
    \end{minipage}%
    \begin{minipage}[t]{0.35\textwidth}
        \small{Initially the gas is one one side of the container and is in equilibrium.}
    \end{minipage}
\end{figure}

\end{document}

1 Answer 1

8

The first minipage doesn't have a [t] placement option and (that's the main reason) the base line, for a graphic file, is the bottom of the graphic. A simple \raisebox will solve the problem. I don't have your graphic file so I replaced it with one of mine:

\documentclass[12pt]{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[colorlinks=true]{hyperref}
\usepackage{enumitem}
\usepackage[rm, small, sc]{titlesec}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[margin=1cm, font=small]{caption}
\usepackage[rightcaption]{sidecap}

\begin{document}

\begin{figure}[h]
  \begin{minipage}[t]{.63\textwidth}
    \centering \raisebox{\dimexpr-\height+1.5ex\relax}{\includegraphics[scale=1]{dejeuner1}}
  \end{minipage}%
  \begin{minipage}[t]{0.35\textwidth}
    \small{Initially the gas is one one side of the container and is in equilibrium.}
  \end{minipage}
\end{figure}

\end{document} 

enter image description here

3
  • It's from the surrealist painter Meret Oppenheim. She made it at the age of 22, for the International Surrealist Exhibition of 1936.
    – Bernard
    Oct 5, 2015 at 0:36
  • Great picture. I made research in the field of haptics and know that picture. How do you know it? :) Apr 23, 2017 at 20:13
  • 1
    @Dr. Manuel Kuehner: It's the ‘Déjeuner en fourrure’, from the surrealist painter Méret Oppenheim. She can be seen on a number of Man Ray's photographies around 1928-1930 (‘Érotique-voilée’ series). I'm interested in Surrealism since I was a teenager.
    – Bernard
    Apr 23, 2017 at 20:31

You must log in to answer this question.

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