
我用來\subfigures
複製一組 2 個數字(見下文),但我的輸出看起來不像我希望複製的那樣。
我的程式碼是:
\documentclass[12pt,reqno]{report}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[rightcaption]{sidecap}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/Fig_edited_figure_A_in_panel.png}
\caption{}
\label{fig: mHCN2_dime}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/mHCN2_cAMP_hidden_rotated_90_non-swapped_packing.png}
\caption{}
\label{fig: non-swapped_mHCN2}
\end{subfigure}
\hfill
\end{figure}
\end{document}
有沒有辦法將它們並排放置,同時保持相同的大小?如果我把它們放在一起,數字就會變小。
我還想註釋數字和顯示 90° 旋轉的箭頭,如果可能的話...
答案1
我猜你喜歡重現頂部的一對子圖。透過使用floatrow
和subfig
包,這可以很簡單。
**編輯:** 子圖的標籤必須位於插入圖像之後,而不是像原始答案中那樣位於矩形括號中。現在已更正(刪除了標題空間之外的標籤)。
\documentclass[12pt,reqno]{report}
\usepackage{floatrow}
\floatsetup[figure]{subcapbesideposition=top}
\usepackage{graphicx}
\usepackage[label font=bf,
labelformat=simple]{subfig}
\usepackage{caption}
\begin{document}
\begin{figure}[ht]
\renewcommand\thesubfigure{\Alph{subfigure}}
\setlength{\labelsep}{2mm}
\centering
\sidesubfloat[]%
{
\includegraphics[width=0.4\textwidth]{example-image}\label{fig:mHCN2_dime} % <---
}
\hfill
\sidesubfloat[]%
{
\includegraphics[width=0.4\textwidth]{example-image}\label{fig:non-swapped_mHCN2} % <---
}
\caption{My figures}
\label{fig:fig:mHCN2}
\end{figure}
See subfigures \ref{fig:mHCN2_dime} and \ref{fig:non-swapped_mHCN2} on figure \ref{fig:fig:mHCN2}.
\end{document}