我的 ltxtable 两边都有缩进,我不想要缩进。我的 MWE 是:
\documentclass{scrreprt}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{ltxtable, filecontents}
\begin{document}
\begin{filecontents}{longtable.tex}
\noindent
\begin{longtable}{|X|m{20ex}|m{5ex}m{5ex}|}
\hline
\textbf{Verlaufstyp} & \parbox{16ex}{\textbf{ergänzende Beschreibung}} & \multicolumn{2}{c|}{\textbf{Probanden}} \\
\hline
\hline
\endhead
1.\,monophasisch zur Vollremission & 17,2 Monaten Dauer & 50 \newline 10 & 10,0\,\% \newline 2\,\% \\
\hline
\end{longtable}
\end{filecontents}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo
\LTXtable{\textwidth}{longtable.tex}
\end{document}
答案1
好吧,为了举一个好的例子,我刚刚准备了问题,偶然经过 3 个多小时的研究后得到了答案。
这可能不是最好的,但它确实有效。我用以下\multicolumn{2}{c|}{\textbf{Probanden}}
代码替换了\textbf{Probanden} &
:
\documentclass{scrreprt}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{ltxtable, filecontents}
\begin{document}
\begin{filecontents}{longtable.tex}
\noindent
\begin{longtable}{|X|m{20ex}|m{5ex}m{5ex}|}
\hline
\textbf{Verlaufstyp} & \parbox{16ex}{\textbf{ergänzende Beschreibung}} & \textbf{Probanden} & \\
\hline
\hline
\endhead
1.\,monophasisch zur Vollremission & 17,2 Monaten Dauer & 50 \newline 10 & 10,0\,\% \newline 2\,\% \\
\hline
\end{longtable}
\end{filecontents}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo
\LTXtable{\textwidth}{longtable.tex}
\end{document}