我需要确定三个数字,它们应该平均划分线宽。我尝试了许多解决方案,但它们无法将文本置于每个单元格的中心。解决问题的唯一解决方案是\resizebox{\linewidth}{!}{\begin{tabular}{ccc}
,尽管文本大小变大(即使使用\tiny
)。
我正在研究的实际解决方案是:
\begin{figure}
\centering
\begin{tabular*}{1\linewidth}{@{\extracolsep{\fill}}ccc}
\small{a) $16\times16$ $4$-QAM} & \small{b) $16\times16$ $16$-QAM} & \small{c) $16\times16$ $64$-QAM}
\end{tabular*}
\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_4QAM.eps}
\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_16QAM.eps}
\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_64QAM.eps}
\caption{BER performance convergence of mixing ratio, $q$, of aSMGS in low number of antennas scenario ($K=N=16$) with: {\bf a)} No restarts ($R_{\rm max} = 1$), $\gamma_{\rm dB}=12$dB, 4-QAM and {\bf b)} $R_{\rm max} = 10$, $\gamma_{\rm dB}=18$dB, 16-QAM.}
\label{fig:q_convergence_4-QAM} \end{figure}
答案1
有了subfloat
包中的环境subfig
,你就不需要表了:
\documentclass{article}
\usepackage{geometry}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
\captionsetup[subfloat]{position=top}
\centering
\subfloat[$16\times16$ $4$-QAM] {\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_4QAM.eps}}\hfill
\subfloat[$16\times16$ $16$-QAM] {\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_16QAM.eps}}\hfill
\subfloat[$16\times16$ $64$-QAM] {\includegraphics[width=.32\textwidth]{fig/Mixing_ratio/Q_analysis_16x16_64QAM.eps}}
\caption{BER performance convergence of mixing ratio, $q$, of aSMGS in low number of antennas scenario ($K=N=16$) with: {\bf a)} No restarts ($R_{\rm max} = 1$), $\gamma_{\rm dB}=12$dB, 4-QAM and {\bf b)} $R_{\rm max} = 10$, $\gamma_{\rm dB}=18$dB, 16-QAM.}
\label{fig:q_convergence_4-QAM}
\end{figure}
\end{document}
- 您
subfloat
可以在文本中引用子图,只需为子浮动标题添加标签,例如` - 如果您希望仅在该图的顶部显示子标题,则请将其包含
\captionsetup[subfloat]{position=top}
在图形环境中;相反,当所有子图都应在顶部显示标题时,请将此设置移至文档序言
答案2
将标签做成图形的一部分,即将内容做成a) $16\times16$ $4$-QAM
图形的一部分,并遵循以下建议:
\hbox to \textwidth{\includegraphics{fig1.eps}\hfill\includegraphics{fig2.eps}\hfill \includegraphics{fig3.eps}
这将平等地分割每个图形的水平空间。