我正在使用 CentOS 和 TeX Live。我是 LaTeX 新手。
这就是我正在尝试的
\documentclass[landscape, letter]{report}
\usepackage{ltxtable}
\usepackage[table]{xcolor}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage[latin1]{inputenc}
\usepackage[left=0cm,top=.5cm,right=0cm]{geometry}
\usepackage{longtable}
\title{titulo}
\author{Rodrigo Coster - 1141783-01}
\begin{document}
\begin{center}\textbf{{\LARGE Relação de vagas autorizadas, providas e disponíveis}}\end{center}
\tiny
\begin{longtable}{|l|l|l|l|l|l|l|l|l}
\hline
\textbf{ number }
&
\textbf{ name }
&
\textbf{ parentt }
&
\textbf{ status }
&
\textbf{ date }
&
\textbf{ bank\_statement\_no }
&
\textbf{ bioregion }
&
\textbf{ cond\_notes }
&
\textbf{ Impl\_notes }
\\
\hline
be416f8rererec23
&
From C1, it follows that relational information does not affect the structure of the levels of
acceptability from fairly high (e.g. (99a)) to virtual gibberish (e.g. (98d)).
&
For any transformation which is sufficiently diversified in application to be of any interest, this
analysis of a formative as a pair of sets of features is, apparently, determined by a stipulation to
place the constructions into these various categories.
&
Draft
&
2013-04-27
&
ed802ec655d485161a6fe02a5a325cd9
&
Norrtrhrerren rererereley
&
Note that the notion of level of grammaticalness is unspecified with respect to nondistinctness in
the sense of distinctive feature theory.
&
We have already seen that the earlier discussion of deviance appears to correlate rather closely
with nondistinctness in the sense of distinctive feature theory.
\\
\hline
\end{longtable}
\end{document}
这给了我裁剪的表格但我希望所有的文本都在一页上。
现在
- 我可以有 100 多行,并且可以跨越 50 页
- 我的列也会变化,所以我不知道处理这个问题的好方法是什么。
- 许多列中会有许多段落的文字,所以我想有一个好看的表格
我从早上开始就一直在尝试,但一直不知道该用什么tabular
,或者tabularx
或者y
或者resizebox
每次我搜索谷歌时我都会找到新的方法。
我可以达到的最大尺寸是横向模式的 A3 尺寸,以便容纳所有数据。
谁能告诉我该怎么办?
答案1
您可以尝试使用longtable
包(可用这里)用于跨多页的表格,tabularx
(可用这里)来选择适当的列宽,最后,如果您想同时使用这两个属性,您可以随时使用ltxtable
(可用的这里) 同时拥有 tabularx 和 longtable 选项。
您也可以使用该tabu
软件包,但我强烈建议您不要这样做,因为他的作者已声明新版本将不向后兼容,并且可能与其他软件包的兼容性存在许多问题。
例子:
\documentclass{article}
\usepackage{array}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{ltxtable}
\begin{document}
Hello.
\LTXtable{\textwidth}{VersionOne}
\end{document}
该VersionOne.tex
文件包含:
\begin{longtable}{XX}
\caption{A very long table}\\
WHO & \hspace{5mm} World Health Organization\\[1mm]
GDP & \hspace{5mm} Gross Domestic Product\\[1mm]
PPP & \hspace{5mm} Purchasing Power Parities\\[1mm]
\label{tab:LongtableOne}
\end{longtable}