我该如何建立这个表格?

我该如何建立这个表格?

桌子

我尝试使用 \multirowcell,但收效甚微,因为我不知道如何创建没有水平线穿过的长第一列!

以下是我所绑定的内容:

\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{multirow}
\usepackage{booktabs}

\usepackage{makecell}
\renewcommand\cellalign{lc}
\newcolumntype{Z}{ >{\centering\arraybackslash}X }
\usepackage[autolanguage, np]{numprint}

\begin{document}

\begin{tabular}{ll|rrr}
\hline
\multirowcell{10}{Paragraph 11) \\ Elections \&\\ Variables } & \multirowcell{4}{Base Currency \&\\ Eligible Currency}& \multicolumn{3}{c}{\multirow{2}{*}{i) "Base Currency" means United States Dollars}} \\
 & & & &\\
 \cline{3-5}
 & & \multicolumn{3}{c}{\multirow{2}{*}{i) "Eligible  Currency" means the Base Currency }} \\
  & & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \\
 \hline
\multirowcell{6} & (B) Credit Support Obligations & & i) Delivery Amount, Return Amount \& Credit Support Amount & \\
 & & & A) "Delivery Amount" has the meaning specified in Paragraph 2(a) & \\
 & & & B) "Return Amount" has the meaning specified in Paragraph 2 (b) & \\
 & & & C) "Credit Support Amount" has the meaning specified in Paragraph 10& \\
 & & & & \\
 \cline{1-5}
\multirowcell{6} & & A & USD cash in an Eligible Currency & \\
 &  & B & 40 & 36 \\
 & & C & 38 & 34 \\
 & & D & 31 & 37 \\
 & \makecell{Não concordo nem \\ discordo} &  & 25 & 27 \\
 \hline
\end{tabular}

\end{document}

由此产生了如下结果: 在此处输入图片描述

更新:我已经靠近了,但现在右下角的文字没有对齐。

\begin{tabular}{| l | l | l | l | l |}\hline
\multirow{10}{*}{\parbox{2.0cm}{\raggedright Paragraph 11) Elections \& Variables}} & \multirow{2}{*}{\parbox{3.5cm}{\raggedright(A) Base Currency \& Eligible Currency}} & \multicolumn{3}{l |}{i) "Base Currency" means United States Dollars}     \\
                        &                        & \multicolumn{3}{l |}{ii) "Eligible Currency" Means the Base Currency}     \\ \cline{2-5}
                        & \multirow{8}{*}{\parbox{3.5cm}{\raggedright(B) Credit Support Obligations}} & \multicolumn{3}{l |}{\parbox{10.0cm}{\raggedright A) "Delivery Amount" has the meaning specified in Paragraph 2(a)}}    \\
                        &                        & \multicolumn{3}{l |}{\parbox{10.0cm}{\raggedright B) "Return Amount" has the meaning specified in the Paragrah 2(b)}}      \\
                        &                        & \multicolumn{3}{l |}{\parbox{10.0cm}{\raggedright C) "Credit Support Amount" has the meaning specified in Paragraph 10}}    \\
                        &                        & \multicolumn{3}{l |}{\parbox{10.0cm}{\raggedright ii) Eligible Credit Support. The following items will qualify as 'Eligible Credit Support' for both Party A and Party B.}} \\ \cline{3-5}
                        &                        &   &               & Haircut  \\ \cline{3-5}
                        &                        & A & USD cash in an Eligible Currency            & 100\% \\
                        &                        & B & \parbox{8.0cm}{\raggedright Securities issued or directly \& fully guaranteed or insured by the Government of the USA having a maturity of less than 5 years from the Valuation Date}           & 100\% \\
                        &                        & C & \parbox{8.0cm}{\raggedright Securities issued or directly guaranteed or issued by the Government of the USA of more than 5 years but not more than 10 years from the Valuation Date}          & 98\% \\
                        &                        & D & \parbox{8.0cm}{\raggedright Securities issued or directly \& fully guaranteed by the Government of the USA having maturities of 10 years or more from the Valuation Date} & 95\% \\ \hline
\end{tabular}

其结果如下: 在此处输入图片描述

答案1

\multirow您可以通过和来制作此表\multicolumn

在此处输入图片描述

对于第一列包含较长文本的情况,我会\parbox使用\raggedright

\multirow{10}{*}{\parbox{2.0cm}{\raggedright Test1 with some more text}}

得出的结果是:

在此处输入图片描述

代码:

\documentclass{article}
\usepackage{multirow}

\begin{document}
\begin{tabular}{| l | l | l | l | l |}\hline
\multirow{10}{*}{Test1} & \multirow{2}{*}{hello} & \multicolumn{3}{l |}{i) Now}     \\
                        &                        & \multicolumn{3}{l |}{ii) Is}     \\ \cline{2-5}
                        & \multirow{8}{*}{world} & \multicolumn{3}{l |}{A) Time}    \\
                        &                        & \multicolumn{3}{l |}{B) To}      \\
                        &                        & \multicolumn{3}{l |}{C) Stay}    \\
                        &                        & \multicolumn{3}{l |}{ii) Focused} \\ \cline{3-5}
                        &                        &   &               & Val  \\ \cline{3-5}
                        &                        & A & Or            & 99\% \\
                        &                        & B & You           & 98\% \\
                        &                        & C & Will          & 95\% \\
                        &                        & D & Fall as sleep & 93\% \\ \hline
\end{tabular}
\end{document}

代码:第一列中的较长文本

\documentclass{article}
\usepackage{multirow}

\begin{document}
\begin{tabular}{| l | l | l | l | l |}\hline
\multirow{10}{*}{\parbox{2.0cm}{\raggedright Test1 with some more text}} & \multirow{2}{*}{hello} & \multicolumn{3}{l |}{i) Now} \\
                        &                        & \multicolumn{3}{l |}{ii) Is} \\ \cline{2-5}
                        & \multirow{8}{*}{world} & \multicolumn{3}{l |}{A) Time} \\
                        &                        & \multicolumn{3}{l |}{B) To} \\
                        &                        & \multicolumn{3}{l |}{C) Stay} \\
                        &                        & \multicolumn{3}{l |}{ii) Focused} \\ \cline{3-5}
                        &                        &   &               & Val \\ \cline{3-5}
                        &                        & A & Or            & 99\% \\
                        &                        & B & You           & 98\% \\
                        &                        & C & Will          & 95\% \\
                        &                        & D & Fall as sleep & 93\% \\ \hline
\end{tabular}
\end{document}

相关内容