我想输入一个包含一些开括号和闭括号的表格,但我无法包含开括号和闭括号,因为开括号和闭括号会包含表格的不同行。事实上,我尝试输入以下表格 但我只能提供以下代码
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{array,booktabs} % for \newcolumntype macro
\newcolumntype{L}{>{$}l<{$}} % math-mode version of "l" column type
\newcolumntype{C}{>{$}c<{$}} % math-mode version of "l" column type
\newcolumntype{R}{>{$}r<{$}} % math-mode version of "l" column type
\usepackage{multirow}
\begin{document}
\begin{tabular}{CCCCCCC}
\hline \hline
& S & L & J^{P} & \text{Symmetry} & \text{Notation} & \text{Isospin} \, T \\
\hline
& 1 & 0 & 1^+ & \text{symmetric} & ^3 \text{S}_1 & \\
& 1 & 2 & 1^+,2^+,3^+ & \text{in} & ^3 \text{D}_{1,2,3} & \\
\text{NP only}&&&&&& 0\\
& 0 & 1 & 1^- & \text{spin} + \text{position} & ^1 \text{P}_1 & \\
& 0 & 3 & 3^- & & ^1 \text{F}_3 & \\ \hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\text{NN} & 1 & 1 & 0^-, 1^-, 2^- & \text{antisymmetric} & ^3 \text{P}_{0,1,2} & \\
\text{PP} & 1 & 3 & 2^-, 3^-, 4^- & & ^3 \text{F}_{2,3,4} & \\
&&&&\text{in}&& 1 \\
\text{and} & 0 & 0 & 0^+ & & ^1\text{S}_0 & \\
\text{NP} & 0 & 2 & 2^+ & \text{spin} + \text{position} & ^1 \text{D}_2 & \\
\hline \hline
\end{tabular}
\end{document}
这让我
如何在表格中输入左括号和右括号?
答案1
以下是使用该bigdelim
包的两条建议:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{array,booktabs} % for \newcolumntype macro
\newcolumntype{C}{>{$}c<{$}} % math-mode version of "l" column type
\usepackage{bigdelim}
\usepackage{makecell}
\begin{document}
\begin{tabular}{rCCCCCc}
\hline \hline
& S & L & J^{P} & \text{Symmetry} & \text{Notation} & \text{Isospin} \, T \\
\hline
\ldelim\{{5}{1.5cm}[NP only] & 1 & 0 & 1^+ & \multirow{5}{*}{\makecell{symmetric\\ in\\ spin + position}} & ^3 \text{S}_1 & \rdelim\}{5}{0.5cm}[0]\\
& 1 & 2 & 1^+,2^+,3^+ & & ^3 \text{D}_{1,2,3} & \\
&&&&&& \\
& 0 & 1 & 1^- & & ^1 \text{P}_1 & \\
& 0 & 3 & 3^- & & ^1 \text{F}_3 & \\ \hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ldelim\}{5}{1.5cm}[\makecell{NN\\ PP \\ \\ and \\ NP}] \rdelim\{{5}{5pt} & 1 & 1 & 0^-, 1^-, 2^- & \multirow{5}{*}{\makecell{antisymmetric\\ in\\ spin + position}} & ^3 \text{P}_{0,1,2} & \rdelim\}{5}{0.5cm}[1]\\
& 1 & 3 & 2^-, 3^-, 4^- & & ^3 \text{F}_{2,3,4} & \\
&&&&&& \\
& 0 & 0 & 0^+ & & ^1\text{S}_0 & \\
& 0 & 2 & 2^+ & & ^1 \text{D}_2 & \\
\hline \hline
\end{tabular}
\bigskip
\begin{tabular}{rCCCCCc}
\toprule
& S & L & J^{P} & \text{Symmetry} & \text{Notation} & Isospin T \\
\midrule
\ldelim\{{4}{1.5cm}[NP only] & 1 & 0 & 1^+ & \multirow{4}{*}{\makecell{symmetric\\ in\\ spin + position}} & ^3 \text{S}_1 & \rdelim\}{4}{0.5cm}[0]\\
& 1 & 2 & 1^+,2^+,3^+ & & ^3 \text{D}_{1,2,3} & \\
& 0 & 1 & 1^- & & ^1 \text{P}_1 & \\
& 0 & 3 & 3^- & & ^1 \text{F}_3 & \\ \midrule
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ldelim\}{4}{1.5cm}[\makecell{NN\\ PP \\ and \\ NP}] \rdelim\{{4}{5pt} & 1 & 1 & 0^-, 1^-, 2^- & \multirow{4}{*}{\makecell{antisymmetric\\ in\\ spin + position}} & ^3 \text{P}_{0,1,2} & \rdelim\}{4}{0.5cm}[1]\\
& 1 & 3 & 2^-, 3^-, 4^- & & ^3 \text{F}_{2,3,4} & \\
& 0 & 0 & 0^+ & & ^1\text{S}_0 & \\
& 0 & 2 & 2^+ & & ^1 \text{D}_2 & \\
\bottomrule
\end{tabular}
\end{document}
答案2
另一个版本, 使用booktabs
和:bigdelim
delarray
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{array,booktabs} % for \newcolumntype macro
\newcolumntype{L}{>{$}l<{$}} % math-mode version of "l" column type
\newcolumntype{C}{>{$}c<{$}} % math-mode version of "c" column type
\newcolumntype{R}{>{$}r<{$}} % math-mode version of "r" column type
\usepackage{multirow, bigdelim, delarray}
\begin{document}
\begin{tabular}{c@{}CCCCC@{}c@{}C}
\toprule \midrule
& S & L & J^{P} & \text{Symmetry} & \text{Notation} & & \text{Isospin} \, T \\
\midrule[0.4pt]
\ldelim\{{5}{*}[NP only\ ] & 1 & 0 & 1^+ & \text{symmetric} & ^3 \text{S}_1 & \rdelim\}{5}{*}\\
& 1 & 2 & 1^+,2^+,3^+ & \text{in} & ^3 \text{D}_{1,2,3} & \\
&&&&&& & 0\\
& 0 & 1 & 1^- & \text{spin} + \text{position} & ^1 \text{P}_1 & \\
& 0 & 3 & 3^- & & ^1 \text{F}_3 & \\
\addlinespace[2ex]%\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ldelim\{{5}{*}[\begin{tabular}.{@{}l}\}NN \\PP\\ \\and\\NP \end{tabular}\enspace] & 1 & 1 & 0^-, 1^-, 2^- & \text{antisymmetric} & ^3 \text{P}_{0,1,2} & \rdelim\}{5}{*}\\
& 1 & 3 & 2^-, 3^-, 4^- & & ^3 \text{F}_{2,3,4} & \\
&&&&\text{in}&& & 1 \\
& 0 & 0 & 0^+ & & ^1\text{S}_0 & \\
& 0 & 2 & 2^+ & \text{spin} + \text{position} & ^1 \text{D}_2 & \\
\midrule[0.4pt] \bottomrule
\end{tabular}
\end{document}