底部的表格注释

底部的表格注释

我需要一个如下所示的表格 在此处输入图片描述

我编写的表格的代码是:

 \documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin {table}[htbp]
\label{table:3.6}
 \caption{Phase control word}
\centering\footnotesize
\renewcommand{\tabcolsep}{4pt}
\begin{tabular}{|@{}*{18}{c|}@{}}
\hline
{} & {} & \multicolumn{16}{c}{Phase Control Word(Binary)}\\ 
\hline
frequency & Phase  & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit &      Bit & Bit & Bit 4 & Bit 3 & Bit 2 & Bit 1 & Bit 0\\
{} & Control Word & 15 & 14 & 13 & 12 & 11 & 10 & 9 & 8 & 7 & 6 & 5 & 4 & 3  & 2 & 1 & 0\\
\hline
48000 & 16384 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\

1000 & 341 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1\\

8000 & 2731 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 1\\

14000 & 4779 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1\\

21000 & 7168 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\

\hline
\multicolumn{18}{l}{%
  \begin{minipage}{6.5cm}%
 Note: [By University Requirement, no text should be allowed here in this landscape table/picture page. DON''T USE sidewaystable from rotating package, it cannot align landscape title to the left binding side.].%
  \end{minipage}%
}\\

\end{tabular}
\end{table}

这就是我的输出的样子- 在此处输入图片描述

我缺少最右侧列标题的右边距,并且表格注释的第二行未居中对齐。请帮我解决这个问题

答案1

% arara: pdflatex

\documentclass{article}
\usepackage{threeparttable}
\usepackage{array} % fixes the corners
\usepackage{caption}
\usepackage{microtype}
\usepackage{chngcntr}
\counterwithin{table}{section}

\begin{document}
\setcounter{section}{3}
\setcounter{table}{5}
\begin{table}[htbp] % only use those if needed.
    \caption{Phase control word}\label{table:3.6} % label after caption!
    \centering\footnotesize
    \renewcommand{\tabcolsep}{2.1pt}
    \begin{threeparttable}
    \begin{tabular}{|*{18}{c|}@{}}
        \hline
         &  & \multicolumn{16}{c|}{Phase Control Word(Binary)}\\ 
        \hline
        Frequ. & Phase  & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit\\
         & Control Word & 15 & 14 & 13 & 12 & 11 & 10 & 9 & 8 & 7 & 6 & 5 & 4 & 3  & 2 & 1 & 0\\        \hline
        48000 & 16384 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\         
        1000 & 341 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1\\        
        8000 & 2731 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 1\\       
        14000 & 4779 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1\\      
        21000 & 7168 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\      
        \hline
\end{tabular}
\begin{tablenotes}[para,flushleft]
     \centering [By University Requirement, no text should be allowed here in this landscape table/picture page. DON'T USE sidewaystable from rotating package, it cannot align landscape title to the left binding side.]. 
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

在此处输入图片描述


您可以通过删除这些垂直线来节省更多空间:

% arara: pdflatex

\documentclass{article}
\usepackage{threeparttable}
\usepackage{array} % fixes the corners
\usepackage{caption}
\usepackage{microtype}
\usepackage{chngcntr}
\counterwithin{table}{section}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{multirow}

\begin{document}
\setcounter{section}{3}
\setcounter{table}{5}
\begin{table}[htbp] % only use those if needed.
    \caption[Phase control word]{Phase Control Word(Binary)}\label{table:3.6} % label after caption!
    \centering\footnotesize
    \renewcommand{\tabcolsep}{2.39pt}
    \begin{threeparttable}
    \begin{tabular}{S[table-format=5.0,group-four-digits]*{17}{c}@{}}
        \toprule
        \multirow{2}{*}{Frequ.} & Phase  & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit & Bit\\
         & Control Word & 15 & 14 & 13 & 12 & 11 & 10 & 9 & 8 & 7 & 6 & 5 & 4 & 3  & 2 & 1 & 0\\        \midrule
        48000 & 16384 & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\         
        1000 & 341 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1\\        
        8000 & 2731 & 0 & 0 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 0 & 1 & 1\\       
        14000 & 4779 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1\\      
        21000 & 7168 & 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\      
        \bottomrule
\end{tabular}
\begin{tablenotes}[para,flushleft]
     \centering [By University Requirement, no text should be allowed here in this landscape table/picture page. DON'T USE sidewaystable from rotating package, it cannot align landscape title to the left binding side.]. 
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

在此处输入图片描述

相关内容