단일 열 헤드라인에 \cline 명령을 연속적으로 적용하는 방법을 찾고 있습니다. 첫 번째 사진은 현재 상태를 나타내고,두 번째 모양이 달성되었습니다..
미리 감사드립니다!
\documentclass[a4paper,man,natbib,donotrepeattitle]{apa6}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath,siunitx,booktabs,caption}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage[usestackEOL]{stackengine}
\usepackage{multicol}
\usepackage{multirow}
\begin{table}[H]
\centering
\caption{Demographic Characteristics of the Sample}
\begin{tabular}{ l l l l l l l }
\hline
& Total (\textit{n}) & Female (\textit{n}) & Male (\textit{n}) & Age (\textit{M*)} & Age (\textit{SD**)} \\\cline{2-6}
%\hline\hline
First Assessment & & & & & \\\hline
Healthy Control & 102 & 62 & 40 & 61.71 & 8.478 \\
PD Patients & 91 & 36 & 55 & 55 & 9.401 \\
Total & 193 & 98 & 95 & 63.07 & 9.018 \\\hline
Second Assessment & & & & & \\\hline
Healthy Control & 102 & 62 & 40 & 61.71 & 3.1797 \\
PD Patients & 91 & 36 & 55 & 55 & 64.59 & \\
Total & 193 & 98 & 95 & 63.07 & 4.3299 \\\hline
\multicolumn{6}{l}{\small\textit{Note.} *$M=\text{mean}$, **$SD=\text{Standart Deviation}$}
\end{tabular}
\label{table:sumfail}
\end{table}
답변1
from booktab을 사용하여 양쪽의 s를 \cmidrule(lr)
자릅니다 (또는 첫 번째 열의 경우 (r)만). \cmidrule
또한 규칙에는 booktabs
수직 패딩이 있습니다.
\documentclass[a4paper,man,natbib,donotrepeattitle]{apa6}
\title{test}
\shorttitle{}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{multirow, siunitx, booktabs, caption}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage[usestackEOL]{stackengine}
\usepackage{hyperref}
\begin{document}
\begin{table}[H]
\centering
\caption{Demographic Characteristics of the Sample}
\begin{tabular}{*{7}{l}}
\toprule
& Total (\textit{n}) & Female (\textit{n}) & Male (\textit{n}) & Age (\textit{M*)} & Age (\textit{SD**)} \\
\cmidrule(lr){2-2} \cmidrule(lr){3-3}\cmidrule(lr){4-4}\cmidrule(lr){5-5}\cmidrule(lr){6-6}\cmidrule(lr){7-7}
First Assessment & & & & & \\
\cmidrule(r){1-1}
Healthy Control & 102 & 62 & 40 & 61.71 & 8.478 \\
PD Patients & 91 & 36 & 55 & 55 & 9.401 \\
Total & 193 & 98 & 95 & 63.07 & 9.018 \\\midrule
Second Assessment & & & & & \\
\cmidrule(r){1-1}
Healthy Control & 102 & 62 & 40 & 61.71 & 3.1797 \\
PD Patients & 91 & 36 & 55 & 55 & 64.59 & \\
Total & 193 & 98 & 95 & 63.07 & 4.3299 \\
\bottomrule
\multicolumn{6}{l}{\small\textit{Note.} *$M=\text{mean}$, **$SD=\text{Standart Deviation}$}
\end{tabular}
\label{table:sumfail}
\end{table}
\end{document}