![如何对长表设置限制大小?](https://linux22.com/image/437000/%E5%A6%82%E4%BD%95%E5%AF%B9%E9%95%BF%E8%A1%A8%E8%AE%BE%E7%BD%AE%E9%99%90%E5%88%B6%E5%A4%A7%E5%B0%8F%EF%BC%9F.png)
如下图所示,表格内容向右移动太多。我该如何修正代码,使文本不与页眉混淆。
提前感谢
\begin{landscape}
\begin{longtable}{ *{4}{l} }
\caption{Übersicht aller gefundenen Publikationen} \\
\hline\endfirsthead
\caption[]{Übersicht aller gefundenen Publikationen}\\
\endhead
\hline
\endfoot
\label{table}
%\hline\endhead % header material
%\hline\endfoot % footer material
Methode & Datenbank & Stichworte oder zitierter Artikel & Referenzen \\
\hline
Subjektives Heraussuchen der Abstracts & Kombination & \parbox[t]{8cm}{\enquote{pressure} AND \enquote{protein}}&
\parbox[t]{5cm}{~\cite{ibrahim_investigation_2021}, ~\cite{penhallurick_how_2021}, ~\cite{rajeshwar_t_mechanical_2021}, ~\cite{hata_high_2020}, ~\cite{samways_grand_2020}}\\
\end{longtable}
\end{landscape}
答案1
像这样?
(红线表示页面布局)
如您所见,此表不需要横向放置(根据给定的表格内容信息进行推理/猜测):
\documentclass{article}
\usepackage{geometry}
\usepackage{ragged2e}
\usepackage{array, booktabs, longtable}
\newcolumntype{L}[1]{>{\RaggedRight}p{#1}}
\usepackage{csquotes}
\begin{document}
\begin{longtable}{@{} L{0.25\linewidth} l
L{0.3\linewidth}
L{0.2\linewidth} @{}}
\caption{Übersicht aller gefundenen Publikationen}
\label{table} \\
\toprule
\endfirsthead
\caption[]{Übersicht aller gefundenen Publikationen} \\
\endhead
\midrule
\endfoot
\bottomrule
\endlastfoot
%
Methode
& Datenbank
& Stichworte oder\newline zitierter Artikel
& Referenzen \\
\midrule
Subjektives Heraussuchen der Abstracts
& Kombination
& \enquote{pressure} AND \enquote{protein}
& \cite{ibrahim_investigation_2021},
\cite{penhallurick_how_2021},
\cite{rajeshwar_t_mechanical_2021},
\cite{hata_high_2020},
\cite{samways_grand_2020} \\
\end{longtable}
\end{document}