我怎样才能删除中的左缩进longtblr
?
\documentclass{article}
\usepackage{tabularray}
\usepackage[a4paper,margin=2mm]{geometry}
\begin{document}
\DefTblrTemplate{firsthead, middlehead,lasthead}{default}{}
\begin{longtblr}[presep=-4pt,postsep=0pt]{colspec = {|p{3cm}X},\textwidth,colsep=4pt}
First & Bla bla bla\\
Second & Bla bla\\
Third & Bla bla bla bla\\
Fourth & Bla\\
Fifth & Bla bla bla bla\\
\end{longtblr}
\end{document}
这是我想要的输出,其中文本恰好从左垂直线开始:
答案1
您可以更改colsep
:
\documentclass{article}
\usepackage{tabularray}
\usepackage[a4paper,margin=2mm]{geometry}
\begin{document}
\DefTblrTemplate{firsthead, middlehead,lasthead}{default}{}
\begin{longtblr}[presep=-4pt,postsep=0pt]{colspec = {|p{3cm}X},\textwidth,colsep=0pt}
First & Bla bla bla\\
Second & Bla bla\\
Third & Bla bla bla bla\\
Fourth & Bla\\
Fifth & Bla bla bla bla\\
\end{longtblr}
\end{document}
或者leftsep
如果您只想更改左侧:
\documentclass{article}
\usepackage{tabularray}
\usepackage[a4paper,margin=2mm]{geometry}
\begin{document}
\DefTblrTemplate{firsthead, middlehead,lasthead}{default}{}
\begin{longtblr}[presep=-4pt,postsep=0pt]{colspec = {|p{3cm}X},\textwidth,colsep=4pt,leftsep=0pt}
First & Bla bla bla\\
Second & Bla bla\\
Third & Bla bla bla bla\\
Fourth & Bla\\
Fifth & Bla bla bla bla\\
\end{longtblr}
\end{document}