我有一个问题。我想在 Latex 中显示我的数据集。我只想给出一小段摘录。只有几列。问题是它们对于页面来说太长了。我试过减小字体大小。但那不起作用。还有其他选项可以显示整个列而不超出页面边框吗?
\documentclass[12pt]{report}
\usepackage[usegeometry]{typearea}% load before geometry
\usepackage[a4paper, left={2.5cm}, right={2cm}, top={3cm}, bottom={3cm}, headheight=15pt]{geometry}
\usepackage{filecontents}
\usepackage[ngerman]{babel}
\usepackage{tabularx}
\usepackage{fancyhdr}
\usepackage{lipsum}% just to generate text for the example
\usepackage{tabularx}
\usepackage{caption}
\captionsetup[table]{position=bottom}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhead[L]{\nouppercase{\leftmark}}%
\fancyfoot[R]{\thepage}}
\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\usepackage[parfill]{parskip}
\usepackage[toc,page]{appendix}
\usepackage{float}
\usepackage{pdflscape}
\begin{document}
Hello. Please see below for the table.
\appendix
\chapter{Heading 1}
\label{chap:heading1}
Here is some text.
\begin{landscape}
{\fontsize{9}{12}\selectfont
\begin{table}[H]
\caption{Table}
\label{tab:table1}
\begin{tabularx}{20cm}{|l|l|l|l|l|l|l|l|l|l|l||l|l|l|}
\hline
\textbf{orderDate} &
\textbf{zip} &
\textbf{city1} &
\textbf{countryISO} &
\textbf{isCancelled} &
\textbf{isDropShipment} &
\textbf{isExpress} &
\textbf{quantity} &
\textbf{...} &
\textbf{volumeInM3} &
\textbf{height} &
\textbf{length} &
\textbf{netWeight} &
\textbf{currentHub}
\\ \hline
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd &
asd
\\ \hline
\end{tabularx}
\end{table}
}
\end{landscape}
\end{document}