![3인용 테이블의 음표가 뻔뻔하게 튀어나온 이유는 무엇입니까? 여기서 너비를 (자동으로) 어떻게 조정할 수 있나요?](https://rvso.com/image/266436/3%EC%9D%B8%EC%9A%A9%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%98%20%EC%9D%8C%ED%91%9C%EA%B0%80%20%EB%BB%94%EB%BB%94%ED%95%98%EA%B2%8C%20%ED%8A%80%EC%96%B4%EB%82%98%EC%98%A8%20%EC%9D%B4%EC%9C%A0%EB%8A%94%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%20%EC%97%AC%EA%B8%B0%EC%84%9C%20%EB%84%88%EB%B9%84%EB%A5%BC%20(%EC%9E%90%EB%8F%99%EC%9C%BC%EB%A1%9C)%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EC%A1%B0%EC%A0%95%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%82%98%EC%9A%94%3F.png)
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
테이블 목록에 표시되지 않고 캡션에 사용할 수 있는 약간 다른 정의 : \stnote
with 의 정의 변경
\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