关于多行标题的表格问题

关于多行标题的表格问题

我想要的是....

而我现在的情况是......

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper, top=1in, bottom=1in, left=0.75in, right=0.75in]{geometry}
\usepackage{multirow,array,varwidth,spreadtab,}
\usepackage{siunitx,booktabs,caption}

\begin{document}

    \captionsetup{labelformat=empty}
     \centering \caption{DISCOUNTED \\ FUTURE NET INCOME -M\$ \\COMPOUNDED MONTHLY}

     \begin{tabular}{cr}
       \toprule
    0.00 = & 0 \\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\

      \multicolumn{2}{l}{%
      \footnotesize
      %
    }
    \end{tabular}

    \end{table}

\end{document}

答案1

编辑:添加请求的水平规则。

编辑:添加空白行以获得新段落。

编辑:列对齐。

这是编译的编辑。但是,你的问题是什么?

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper, top=1in, bottom=1in, left=0.75in, right=0.75in]{geometry}
\usepackage{multirow,array,varwidth,spreadtab,}
\usepackage{siunitx,booktabs,caption}

\usepackage{ragged2e}
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\RaggedLeft\hspace{0pt}}p{#1}}
\begin{document}
    \captionsetup{labelformat=empty}
    \begin{table}
     \centering 
\caption{DISCOUNTED \\ FUTURE NET INCOME -M\$ \\COMPOUNDED MONTHLY}
\vspace{-1em}\rule{0.3\textwidth}{1.25pt}

     \begin{tabular}{cr}
    0.00 = & 0 \\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\

      \multicolumn{2}{l}{%
      \footnotesize
      %
    }

    \end{tabular}

    \end{table}

 Here is an alternative using \textit{ragged2e} and \textit{array}.   

    \begin{table}
     \centering 
\caption{DISCOUNTED \\ FUTURE NET INCOME -M\$ \\COMPOUNDED MONTHLY}
\vspace{-1em}\rule{0.3\textwidth}{1.25pt}


     \begin{tabular}{L{.12\textwidth}R{.12\textwidth}}% From http://tex.stackexchange.com/questions/7347/fixed-column-width-table-with-text-left-aligned-in-cells
    0.00 = & 0 \\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\
    0.00 = &  0\\

      \multicolumn{2}{l}{%
      \footnotesize
      %
    }
    \end{tabular}

    \end{table}

\end{document}

在此处输入图片描述

相关内容