我如何才能使我的小页面中的这两张图片的标题以相同的“高度”对齐?

我如何才能使我的小页面中的这两张图片的标题以相同的“高度”对齐?

这可能是一个愚蠢的问题,但它困扰着我,因为我目前无法解决这个问题。

\medskip   
\begin{figure}[h]  
\begin{minipage}{.3\textwidth}  
  \centering  
  \includegraphics[scale=0.2]{bilayer.JPEG}  
  \medskip  
  \caption{3D illustration of the membrane of the polymersome, which consists of a   hydrophillic bilayer at the in- and outside of the biodegradable aliphatic core. This   membrane protects the aqueous core from the environment.}  
  \label{bilayer}  
\end{minipage}%  
\begin{minipage}{0.7\textwidth}  
  \centering  
  \includegraphics[scale=1.5]{polymersome.JPEG}  
  \caption{Schematic view of polymersome \cite{polymersome1}}  
  \label{polymersome}  
\end{minipage}  
\end{figure}%  

目前它看起来像这样......在此处输入图片描述

谢谢您的帮助!

答案1

您可以使用两组并排的小页面;顶部一组用于b图像(底部)对齐,第二组用于t标题(顶部)对齐:

\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}

\begin{document}

\begin{figure}
\captionsetup{justification=raggedright}  
\begin{minipage}[b]{.3\textwidth}  
  \centering  
  \includegraphics[scale=0.2]{example-image-a}  
\end{minipage}%  
\begin{minipage}[b]{0.7\textwidth}  
  \centering  
  \includegraphics[scale=0.15]{example-image-b}  
\end{minipage}
\par
\begin{minipage}[t]{.3\textwidth}
  \caption{3D illustration of the membrane of the polymersome, which consists of a   hydrophillic bilayer at the in- and outside of the biodegradable aliphatic core. This   membrane protects the aqueous core from the environment.}  
  \label{bilayer}  
\end{minipage}%
\begin{minipage}[t]{.7\textwidth}  
  \caption{Schematic view of polymersome \cite{polymersome1}}  
  \label{polymersome}  
\end{minipage}  
\end{figure}

\end{document}

在此处输入图片描述

评论

  • 我补充道

    \captionsetup{justification=raggedright}
    

    caption包装中,窄标题看起来更好,但这只是一个建议;相反,你可以增加左侧的宽度minipage(当然,从右侧减少)。

  • 使用[h]作为放置说明符是灾难的根源。要么使用限制较少的,如作为[htp],要么更好的是,根本不使用放置说明符。

答案2

使用floatrow包裹

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx,floatrow}

\begin{document}

\begin{figure}[ht]
  \begin{floatrow}[2]
    \ffigbox{
      \caption{3D illustration of the membrane of the polymersome, which consists of a 
        hydrophillic bilayer at the in- and outside of the biodegradable aliphatic core. This 
        membrane protects the aqueous core from the environment.\label{fig:first}}
      }{\includegraphics[scale=0.2]{example-image-a}}
    \ffigbox[\FBwidth]{
      \caption{Schematic view of polymersome.\label{fig:second}}
      }{\includegraphics[scale=0.3]{example-image-b}}
  \end{floatrow}
\end{figure}

\end{document}

该界面与常规使用的图形包含和标题略有不同,但它与captionfloat,并允许轻松设置任一组件的样式。

相关内容