正如标题所示,我试图在第一个表格的 Endkonzentration \\ N-Acetylcystein 之间实现换行,但最终却使表格看起来很奇怪,并显示 LaTeX 错误:出现了问题——可能是两次缺少 \item。现在第二个表格几乎相同,除了colspec = X[c, si={table-format=xyz}]
,这似乎解决了这个问题。有没有办法让它在没有 siunitx 公式的情况下工作?
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{float}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\SetTblrStyle{caption-tag}{font=\bfseries}
\SetTblrStyle{headsep}{}
\SetTblrStyle{foot}{font=\footnotesize}
\DefTblrTemplate{remark-sep}{three}{:\space}
\DefTblrTemplate{note-sep}{three}{\,}
\DefTblrTemplate{remark}{inline-noclosingpar}{% similar to the remark plain
\MapTblrRemarks{%
\noindent%
\UseTblrTemplate{remark-tag}{default}%
\UseTblrTemplate{remark-sep}{three}%
\UseTblrTemplate{remark-text}{default}%
\space\space}
}
\DefTblrTemplate{note}{inline-three}{%
\MapTblrNotes{%
\noindent%
\UseTblrTemplate{note-tag}{default}%
\UseTblrTemplate{note-sep}{three}%
\UseTblrTemplate{note-text}{default}%
\space}
}
\DefTblrTemplate{lastfoot}{mytemplate}{%
\UseTblrTemplate{remark}{inline-noclosingpar}%
\UseTblrTemplate{note}{inline-three}%
}
\NewTblrTheme{mytheme}{%
\SetTblrTemplate{lastfoot}{mytemplate}%
}
\usepackage[a4paper]{geometry}
%\usepackage{showframe}
\begin{document}
\begin{table}[H]
\centering
\begin{talltblr}[
theme=mytheme,
caption = {Pipettierschema der Ausgleichgerade},%
label = {tab:ps1},%
remark{Hinweis} = {Volumenangaben in \textmu L}.,%
remark{Quelle} = {\cite{bib:skript}}.\\,%
note{a} = in \textmu M.,%
%note{b} = Verdünnung 1:10.,
]{colspec = {
%@{}
c c c c
@{}
},
row{1} = {
guard,
m,
cmd=\hskip0pt}
}
\toprule
{Endkonzentration\\N-Acetylcystein}\TblrNote{a} & {V\textsubscript{PBS}} & {V\textsubscript{Acetylcystein-Lösung}}
& {V\textsubscript{DTNB-Stammlösung}}\\
\midrule
0 & 1000 & 0 & 50 \\
5 & 995 & 5 & 50 \\
10 & 990 & 10 & 50 \\
15 & 985 & 15 & 50 \\
20 & 980 & 20 & 50 \\
25 & 975 & 25 & 50 \\
30 & 970 & 30 & 50 \\
\bottomrule
\end{talltblr}
\end{table}
\begin{table}[H]
\begin{talltblr}[
theme=mytheme,
caption = {Pipettierschema Teilversuch 2},%
label = {tab:ps2},%
note{a} = {[mM]},%
note{b} = {(5 mM)},%
note{c} = {(1 M)},%
note{d} = {(12 mM)},%
note{e} = {(1,0 \textmu g/ml)},%
remark{Hinweis} = {Angaben mit Ausnahme der Pyruvatkonzentration in \textmu l.},%
remark{Quelle} = {\cite{bib:skript}.\\},%
]{colspec = {
% @{}
c X[c, si={table-format=0.3}]
X[c, si={table-format=3.0}]
*{4}{X[c, si={table-format=2.0}]}
% *{2}{X[c, si={table-format=1.0}]}
@{}
},
row{1} = {guard, m, cmd=\hskip0pt}
}
\toprule
{nº} & {Pyruvat-\\konzen-\\tration}\TblrNote{a}
& {Bidestilliertes Wasser}
& {Pyruvat}\TblrNote{b}
& {Imidazol-\\puffer}\TblrNote{c}
& {NADH}\TblrNote{d} & {LDH-\\lösung}\TblrNote{e}\\
\midrule
1 & 0,01 & 878 & 2 & 50 & 20 & 50 \\
2 & 0,015 & 877 & 3 & 50 & 20 & 50 \\
3 & 0,02 & 876 & 4 & 50 & 20 & 50 \\
4 & 0,03 & 874 & 6 & 50 & 20 & 50 \\
5 & 0,05 & 870 & 10 & 50 & 20 & 50 \\
6 & 0,075 & 865 & 15 & 50 & 20 & 50 \\
7 & 0,1 & 860 & 20 & 50 & 20 & 50 \\
8 & 0,15 & 850 & 30 & 50 & 20 & 50 \\
9 & 0,2 & 840 & 40 & 50 & 20 & 50 \\
10 & 0,25 & 830 & 50 & 50 & 20 & 50 \\
\bottomrule
\end{talltblr}
\end{table}
\end{document}
答案1
{Endkonzentration\\N-Acetylcystein\TblrNote{a}}
不是{Endkonzentration\\N-Acetylcystein}\TblrNote{a}
。
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{table}
\centering
\begin{talltblr}{}
% {Endkonzentration\\N-Acetylcystein}\TblrNote{a} &
{Endkonzentration\\N-Acetylcystein\TblrNote{a}} &
{V\textsubscript{PBS}} &
{V\textsubscript{Acetylcystein-Lösung}} &
{V\textsubscript{DTNB-Stammlösung}}\\
\end{talltblr}
\end{table}
\end{document}