-
Notifications
You must be signed in to change notification settings - Fork 932
表注图注
mohuangrui edited this page Dec 11, 2019
·
4 revisions
\begin{table}[!htbp]
\bicaption{这是一个样表。}{This is a sample table.}
\label{tab:sample}
\centering
\footnotesize% fontsize
\setlength{\tabcolsep}{4pt}% column separation
\renewcommand{\arraystretch}{1.2}%row space
\begin{tabular}{lcccccccc}
\hline
行号 & \multicolumn{8}{c}{跨多列的标题}\\
%\cline{2-9}% partial hline from column i to column j
\hline
Row 1 & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$\\
Row 2 & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$\\
Row 3 & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$\\
Row 4 & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$\\
\hline
\end{tabular}
\vspace*{3ex}% induce some separation between caption and explanatory material
\begin{minipage}{\textwidth}% choose width suitably
\mdseries\par\setlength\hangindent{2\ccwd} 表注:表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注表注。
\mdseries\par\setlength\hangindent{2\ccwd} Note: comments comments comments comments comments comments comments comments comments comments comments.
\end{minipage}
\end{table}
效果如下图:
(修改自:https://github.com/mohuangrui/ucasthesis/issues/212#issuecomment-563352508)
\begin{figure}[!htbp]
\centering
\begin{subfigure}[b]{0.35\textwidth}
\includegraphics[width=\textwidth]{oaspl_a}
\caption{}
\label{fig:oaspl_a}
\end{subfigure}%
~% add desired spacing
\begin{subfigure}[b]{0.35\textwidth}
\includegraphics[width=\textwidth]{oaspl_b}
\caption{}
\label{fig:oaspl_b}
\end{subfigure}
\\% line break
\begin{subfigure}[b]{0.35\textwidth}
\includegraphics[width=\textwidth]{oaspl_c}
\caption{}
\label{fig:oaspl_c}
\end{subfigure}%
~% add desired spacing
\begin{subfigure}[b]{0.35\textwidth}
\includegraphics[width=\textwidth]{oaspl_d}
\caption{}
\label{fig:oaspl_d}
\end{subfigure}
\captionsetup[bi]{justification=centerfirst}% adjust local caption justification
\bicaption%
[总声压级。]{总声压级。\mdseries\par\setlength\hangindent{2\ccwd} (a) 这是子图说明信息,(b) 这是子图说明信息,(c) 这是子图说明信息,(d) 这是子图说明信息。图注图注图注图注图注图注图注图注图注图注图注图注。}%
[OASPL.]{OASPL. \mdseries\par\setlength\hangindent{2\ccwd} (a) This is the explanation of subfig, (b) This is the explanation of subfig, (c) This is the explanation of subfig, (d) This is the explanation of subfig. Comments Comments Comments Comments Comments Comments.}
\label{fig:oaspl}
\end{figure}
效果如下图:
改为:
\RequirePackage[format=plain,hangindent=2.0em,font={small},labelfont=bf,skip=8pt,labelsep=space]{caption}%