在标题后添加详细信息的标准方法?

在标题后添加详细信息的标准方法?

对于tables/ figures,将描述放在captions 中是否更常见/标准/有益?我将描述与标题分开,如下所示,但我看到使用图片标题和详细描述最近。

\documentclass{article}

\begin{document}

This is a sentence.

\begin{table}[h]
\caption{This is the title.}
\small The beginning description if needed.\par
{\centering\begin{tabular}{cccc} \hline
0.1234 & 0.5678 & 0.1234 & 0.5678 \\
0.1234 & 0.5678 & 0.1234 & 0.5678 \\ \hline
\end{tabular}\par}
The ending description if needed.
\end{table}

This is a sentence.

\begin{figure}[h]
\caption{This is the title.}
\small The beginning description if needed.\par
{\centering\rule{2in}{1.5in}\par}
The ending description if needed.
\end{figure}

This is a sentence.

\end{document}

由于我一直在没有教科书的情况下学习 LaTeX,我甚至想知道 scaption通常位于tables/ figures 之前还是之后。编写标题和描述的最佳做法是什么?谢谢。

答案1

通常惯例:

  • (表格)标题右侧表格。原因是(据我所知),一个表格可能跨越多个页面。
  • (人物)标题右侧图。
  • 标题可以是多行——没问题。
  • (推荐)读一本关于 LaTeX 的好书:)

关于对象(表格或图形)的附加信息通常放在普通文本中,不是在环境内(tablefigure)。


基本示例

\documentclass{article}

\begin{document}

This is a sentence.

\begin{table}
\centering % optional
\caption{This is the title.}
\label{tab:TableID}
% Code for generating table.
\end{table}

This is a sentence that may include information regarding \tablename~\ref{tab:TableID}.

\begin{figure}
\centering % optional
% Code for generating figure, like \includegraphics[]{}.
\caption{This is the title.}
\label{fig:FigureID}
\end{figure}

This is a sentence that may include information regarding \figurename~\ref{fig:FigureID}.

\end{document}

更高级的示例

需要运行两次 LaTeX 才能使引用正确。

\documentclass{article}
\usepackage{graphicx}
\usepackage{float}

\begin{document}

This is a sentence.

\begin{table}[H] % H option from float package.
\centering % optional
\caption{This is the title.}
\label{tab:TableID}
% Code for generating table.
\includegraphics[width = 0.8\textwidth]{example-image} % See https://tex.stackexchange.com/questions/231738
\end{table}

This is a sentence that may include information regarding \tablename~\ref{tab:TableID}.

\begin{figure}[H] % H option from float package.
\centering % optional
% Code for generating figure, like \includegraphics[]{}.
\includegraphics[width = 0.8\textwidth]{example-image} % See https://tex.stackexchange.com/questions/231738
\caption{This is the title.}
\label{fig:FigureID}
\end{figure}

This is a sentence that may include information regarding \figurename~\ref{fig:FigureID}.

\end{document}

在此处输入图片描述

相关内容