![删除“longtblr”内的表格标签](https://linux22.com/image/468451/%E5%88%A0%E9%99%A4%E2%80%9Clongtblr%E2%80%9D%E5%86%85%E7%9A%84%E8%A1%A8%E6%A0%BC%E6%A0%87%E7%AD%BE.png)
我正在尝试弄清楚如何删除环境中的表格标签(即“表格 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}