我正在尝试弄清楚如何删除环境中的表格标签(即“表格 1.1”)longtblr
,即使我没有指定标题,它也会自动出现。
\documentclass{report}
\usepackage[letter,margin=20mm]{geometry}
\usepackage{tabularray}
\usepackage{xcolor}
\begin{document}
\begin{longtblr}{
colspec = {t{8mm} t{10cm} t{5cm}},
rowhead = 1,
hlines,
vlines,
%row{even} = {gray9},
row{1} = {olive9},
}
\textbf{Step} & \textbf{Description} & \textbf{Figure}\\
\end{longtblr}
\end{document}
答案1
请参阅此处的答案——https://tex.stackexchange.com/a/624912/197451
添加以下代码来消除标题Table 1:
\DefTblrTemplate{firsthead, middlehead,lasthead}{default}{}
完成 MWE
\documentclass{report}
\usepackage[margin=20mm]{geometry}
\usepackage{tabularray}
\usepackage{xcolor}
\begin{document}
\DefTblrTemplate{firsthead, middlehead,lasthead}{default}{}
\begin{longtblr}{
rowhead = 1,
colspec = {t{8mm} t{10cm} t{5cm}},
hlines,
vlines,
%row{even} = {gray9},
row{1} = {olive9},
}
\textbf{Step} & \textbf{Description} & \textbf{Figure}\\
Step1 & Column2 & Column3 & Column4 \\
\end{longtblr}
\end{document}