3인용 테이블의 음표가 뻔뻔하게 튀어나온 이유는 무엇입니까? 여기서 너비를 (자동으로) 어떻게 조정할 수 있나요?

3인용 테이블의 음표가 뻔뻔하게 튀어나온 이유는 무엇입니까? 여기서 너비를 (자동으로) 어떻게 조정할 수 있나요?

3인용 테이블의 음표가 뻔뻔하게 튀어나온 이유는 무엇입니까? 여기서 너비를 (자동으로) 어떻게 조정할 수 있나요?

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabulary}
\usepackage{threeparttable}
\usepackage{array}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{lipsum}
\renewcommand{\arraystretch}{1.2}
\sisetup{round-mode=places,round-precision=1, add-decimal-zero=true, add-integer-zero=true, round-integer-to-decimal}

\begin{document}



\lipsum[1]



\begin{table}
\centering
\begin{threeparttable}
\caption{Some long boring caption don't fall asleep 2013}

\begin{tabulary}{\textwidth}{@{}*{1}{l}*{2}{S[table-format=3.2]}@{}}
\toprule
& {incl.\ Ingredients A\tnote{1a}} & {excl.\ Ingredients A\tnote{1b}} \\
\midrule
DDDDDDDDDDD & 36.1 & 22.0\\
GGGGGGGGGGGG & 30.9 & 20.0\\
GGGG\tnote{2} & 33.0 & 22.8\\
OOOO\tnote{2} & 33.766 & 24.643
\\ \bottomrule
\end{tabulary}

\begin{tablenotes}
\item [2] Unweighted Average
\item [] Source: radiowaves from outer space 1999
\end{tablenotes}

\end{threeparttable}
\end{table}



\lipsum[2]



\end{document}

답변1

\tnote인수를 너비가 0인 상자에 조판하므로 데이터의 조판에 영향을 주지 않습니다. 이것~할 것 같다헤더나 설명에 넣지 마세요. 의 작업을 모방 \tnote하지만 전체 너비를 사용하는 명령을 추가할 수 있습니다 .

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabulary}
\usepackage{threeparttable}
\usepackage{array}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{lipsum}
\renewcommand{\arraystretch}{1.2}
\sisetup{round-mode=places,
 round-precision=1,
 add-decimal-zero=true,
 add-integer-zero=true,
 round-integer-to-decimal}

% This is like `\tnote`, but uses the space of the argument    
\newcommand\stnote[1]{\textsuperscript{\TPTtagStyle{#1}}}

\begin{document}

\lipsum[1]

\begin{table}[ht]
\centering
\begin{threeparttable}
\caption{Some long boring caption don't fall asleep 2013}

\begin{tabulary}{\textwidth}{@{} L *{2}{S[table-format=3.2]}@{}}
\toprule
& {incl.\ Ingredients A\stnote{1a}} & {excl.\ Ingredients A\stnote{1b}} \\
\midrule
DDDDDDDDDDD   & 36.1   & 22.0   \\
GGGGGGGGGGGG  & 30.9   & 20.0   \\
GGGG\tnote{2} & 33.0   & 22.8   \\
OOOO\tnote{2} & 33.766 & 24.643 \\
\bottomrule
\end{tabulary}

\begin{tablenotes}
\item [2] Unweighted Average
\item [] Source: radiowaves from outer space 1999
\end{tablenotes}

\end{threeparttable}
\end{table}

\lipsum[2]

\end{document}

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

합리적인 작업을 수행하려면 tabulary최소한 "결정되지 않은 너비 열"을 추가해야 하며 LCRJ열 셀에서 원하는 정렬을 나타내는 각 문자 중 하나의 문자로 지정되어야 합니다. 왼쪽 정렬(오른쪽 정렬), 가운데 정렬, 오른쪽 정렬( 왼쪽이 비정형), 정당화되었습니다.


\stnote테이블 목록에 표시되지 않고 캡션에 사용할 수 있는 약간 다른 정의 : \stnotewith 의 정의 변경

\usepackage{etoolbox}
\makeatletter
\apptocmd{\TPT@begintabbox}{\let\mTPTprint\@firstofone}{}{}
\apptocmd{\threeparttable}{\let\mTPTprint\relax}{}{}
\newcommand\stnote[1]{\protect\mTPTprint{\textsuperscript{\TPTtagStyle{#1}}}}
\newcommand\mTPTprint[1]{}
\makeatother

관련 정보