我试图在右列的句子单词和表格的垂直线之间添加一点距离。表格的宽度与文档的宽度完全相同,因此表格不应该变宽。这又带来了另一个问题,即用 - 分割单词并在下一行继续。参见我添加的图片:
我猜测我用乳胶编写的表格配置不是该表的最佳配置。
有没有更好的配置可以用于此表,以便不在列末尾拆分单词,并在不超过文档限制的情况下为右列中的文本留出空间?非常感谢您的帮助!
(PS:下面的代码有相同的代码,但我只添加了文本,而不是表格和图片中的内容)
\documentclass[ngerman,12pt,a4paper,oneside,listof=totoc,plainfootsepline]{scrbook}
\addtokomafont{disposition}{\rmfamily}
\addtokomafont{captionlabel}{\bfseries}
\RedeclareSectionCommand[beforeskip=-.5\baselineskip,afterskip=.25\baselineskip]{subsubsection}
\usepackage{tabularray}
\usepackage{tabularx}
\usepackage{float}
\begin{document}
\begin{table}[H]
\caption[Distances of RFID Systems]{Distances of RFID Systems~\cite{Internetquelle2}}
\label{Tab:Distances of RFID Systems}
\begin{tabularx}{\textwidth}{|@{} l| X @{} |}
% \scriptsize
% {\textwidth}{!}{%
% \begin{tabularx}{@{}|l|X|@{}}
\toprule[1pt]
\textbf{Distances of RFID Systems} & \textbf{Meaning} \\
\midrule[1pt]
\textbf{Close Coupling} & TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT \qty{0} TEXT \qty{1}{\centi\meter}. UTEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT . ITEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\
\midrule
\textbf{Remote Coupling} & TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT. Ihr Frequenzbereich liegt unter \qty{135}{\kilo\hertz} oder \qty{13,56}{\mega\hertz}. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT\qty{6,75}{\mega\hertz}, und \qty{27,125}{\mega\hertz}.
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\
\midrule
\textbf{Long Range} & TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\
\bottomrule[1pt]
\end{tabularx}
\end{table}
\end{document}
答案1
由于您已经加载了tabularray
包(注意:必须在文档的序言中加载),因此我会使用它。对于表格开头和结尾的空间,只需删除,@{}
如@DavidCarlisle 评论中所述:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\begin{document}
\begin{table}[htb]
\caption[Distances of RFID Systems]{Distances of RFID Systems~\cite{Internetquelle2}}
\label{Tab:Distances of RFID Systems}
\begin{tblr}{hline{1,2,Z} = 1pt, hline{3-Y}=0.6pt,
vlines,
colspec={X[1,l] X[3,j]},
column{1} = {font=\bfseries},
row{1} = {font=\bfseries}
}
\SetCell[c=1]{m} Distances of RFID Systems
& Meaning \\
Close Coupling
& TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT \qty{0} TEXT \qty{1}{\centi\meter}. UTEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT . ITEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\ %
Remote Coupling
& TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT. Ihr Frequenzbereich liegt unter \qty{135}{\kilo\hertz} oder \qty{13,56}{\mega\hertz}. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT\qty{6,75}{\mega\hertz}, und \qty{27,125}{\mega\hertz}. TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\
Long Range
& TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT .\\
\end{tblr}
\end{table}
\end{document}