我需要帮助对齐我的图表的副标题。我希望它垂直和水平对齐。提前谢谢您。
\documentclass[a4paper, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{subfig}
\usepackage{floatrow}
\captionsetup{labelfont=bf}
\renewcommand\thesubfigure{\Alph{subfigure}}
\begin{figure}[!h]
\captionsetup[subfigure]{position=b}
\centering
\subcaptionbox{\label{fig:backbone}}{\includegraphics[width=.3\linewidth]{backbone2}}\hfil
\subcaptionbox{\label{fig:lipassemble}}{\includegraphics[width=.6\linewidth]{lipids}}\\
\par\vspace{2em}
\subcaptionbox{\label{fig:micelle}}{\includegraphics[width=.2\linewidth, height=0.2\columnwidth]{micelle}}\hfil
\subcaptionbox{\label{fig:invmicelle}}{\includegraphics[width=.2\linewidth, height=0.2\columnwidth]{inverted_micelle}}\hfil
\caption{\textbf{(A)}-General chemical formula for lipid and superimposed ball-and-stick structure showing hydrophilic and hydrophobic regions, \textbf{(B)}-Breakdown of phospholipid structure that assembles into a lipid bilayer and liposome, respectively \cite{phospho}, \textbf{(C)}-structure of micelle, \textbf{(D)}-structure of inverse micelle \cite{Lasic1}}
\end{figure}
答案1
如果我正确理解了你的问题,对于水平对齐,你可以使用tabular
两c
列;垂直对齐来自\subcaptionbox
:
\documentclass[a4paper, 12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{subfig}
\usepackage{floatrow}
\captionsetup{labelfont=bf}
\renewcommand\thesubfigure{\Alph{subfigure}}
\begin{document}
\begin{figure}[!h]
\captionsetup[subfigure]{position=b}
\centering
\begin{tabular}{@{}cc@{}}
\subcaptionbox{\label{fig:backbone}}{\includegraphics[width=.3\linewidth]{example-image}} &
\subcaptionbox{\label{fig:lipassemble}}{\includegraphics[width=.6\linewidth]{example-image-a}} \\[2em]
\subcaptionbox{\label{fig:micelle}}{\includegraphics[width=.2\linewidth, height=0.2\columnwidth]{example-image-b}} &
\subcaptionbox{\label{fig:invmicelle}}{\includegraphics[width=.2\linewidth, height=0.2\columnwidth]{example-image-c}}
\end{tabular}
\caption{\textbf{(A)}-General chemical formula for lipid and superimposed ball-and-stick structure showing hydrophilic and hydrophobic regions, \textbf{(B)}-Breakdown of phospholipid structure that assembles into a lipid bilayer and liposome, respectively \cite{phospho}, \textbf{(C)}-structure of micelle, \textbf{(D)}-structure of inverse micelle \cite{Lasic1}}
\end{figure}
\end{document}
结果: