标题开始于 tufte-book 的表格内

标题开始于 tufte-book 的表格内

如果我使用table*环境并且表格很宽,则标题从表格内部开始。以下是示例

\documentclass{tufte-book}

\begin{document}
\begin{table*}[h!]
  \begin{tabular}{l}
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    \hline
  \end{tabular}
  \caption{Notations}
  \label{table:toowide}
\end{table*}
\end{document}

\bigskip我当然可以在之前使用 a\caption作为解决方法,但我认为将标题进一步向右移动会更好。

表格在tufte_book中

答案1

标题tufte-book放在边距中。在使用宽表或图形环境的情况下,您需要定义offset标题。详细信息在包文档中描述,因此这里有两种情况:标题在表格上方和表格下方:

\documentclass{tufte-book}

\begin{document}
\begin{table}[ht]
  \begin{tabular}{l}
  \hline
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    \hline
  \end{tabular}
  \caption[][-3ex]{Caption is above table}
%  \setfloatalignment{t}
  \label{table:toowide}
\end{table}
\begin{table}[ht]
  \begin{tabular}{l}
  \hline
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    This will be a wide table so that the caption  will start inside the table, unfortunately\\
    \hline
  \end{tabular}
  \caption[][2ex]{Caption is below table}
  \setfloatalignment{b}
  \label{table:toowide}
\end{table}
\end{document}

在此处输入图片描述

相关内容