위 첨자에 대한 테이블에 $가 누락되었습니다.

위 첨자에 대한 테이블에 $가 누락되었습니다.

missing $ inserted내 테이블에 오류 메시지가 나타납니다 .

\toprule
 ABS & \ 14,573.300^a & 3 & 4,857.767 & 40.297 & .000 \\
\midrule

나는 시도했다:

\toprule
 ABS & \[14,573.300^a\] & 3 & 4,857.767 & 40.297 & .000 \\
\midrule

기본적으로 테이블에 아래 첨자와 함께 아래 그림을 넣어야 합니다.

여기에 이미지 설명을 입력하세요

답변1

TeX 및 LaTeX에서 ^기호는 지수를 나타내기 위해 수학 모드에서만 사용해야 합니다. 그러나 실제로 "14,573.000"을 조판하려고 하는 것은 아닙니다.'번째 힘' 맞죠?

  • 무차별적인 해결책은 14,573.300\textsuperscript{a}. 그러나 이 접근 방식은 a각주 표시로 사용되는 지식을 활용하지 않습니다 .

  • 훨씬 더 나은 해결책은 패키지를 로드 threepartable하고 해당 매크로를 사용하여 \tnote각주 표시를 조판하는 것입니다. 마커는 문자, 숫자, 기호 또는 가지고 있는 정보일 수 있습니다. 그리고 tablenotes환경 을 이용하세요.~ 후에tabular각주 자료 자체를 조판하는 환경 의 끝입니다 .

    후자 접근 방식의 심각한 장점은 시스템이 threeparttable자동으로 환경의 너비를 tablenotes관련 tabular환경의 너비로 설정한다는 것입니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\renewcommand{\TPTtagStyle}{\itshape} % optional
\usepackage{lipsum} % for filler text
\begin{document}

%% Approach 1: The brute-force method
\begin{table}[ht!]
\caption{A table}
\centering
\begin{tabular}{@{} *{6}{c} @{}}
\toprule
 ABS & \ 14,573.300\textsuperscript{a} & 3 & 4,857.767 & 40.297 & .000 \\
\midrule
\end{tabular}
\end{table}

%% Approach 2: The intelligent method
\begin{table}[h!]
\centering
\begin{threeparttable}
\caption{Another table}
\begin{tabular}{@{} *{6}{c} @{}}
\toprule
 ABS & \ 14,573.300\tnote{a} & 3 & 4,857.767 & 40.297 & .000 \\
\midrule
\end{tabular}

\footnotesize 
\begin{tablenotes}
\item[a]\lipsum*[2] % the footnote itself 
\end{tablenotes}

\end{threeparttable}
\end{table}

\end{document}

관련 정보