我正在尝试通过在线乳胶表生成器制作乳胶表,虽然可以工作,但可读性不强。我怎样才能使它可读?右下角有一个缩进,这是在将原始数据塞入表格时无意的,因此最后一列中的整个文本应该左对齐,并且可以在每行添加项目符号。
\documentclass{report}
\usepackage{tabularx}
\usepackage{graphics}
\begin{document}
\begin{table}[]
\centering
\resizebox{\columnwidth}{!}{%
\begin{tabular}{|l|l|l|l|l|l|}
\hline
\rowcolor[HTML]{EFEFEF}
\begin{tabular}[c]{@{}l@{}}Equipment/\\ System\end{tabular} &
AB Techniques &
ABCD Category &
\begin{tabular}[c]{@{}l@{}}ABCD Type/\\ Description\end{tabular} &
ABCD Size &
ABC Findings and ABCDABCD \\ \hline
\begin{tabular}[c]{@{}l@{}}ABCD Placement\\ ABCDEF\end{tabular} &
\begin{tabular}[c]{@{}l@{}}AR,AN,SAB\\ RE,DM,GH\end{tabular} &
ABCDABCDEF &
\begin{tabular}[c]{@{}l@{}}Log data /\\ Textual form\end{tabular} &
ABC Lines &
\begin{tabular}[c]{@{}l@{}}AB ABCDEFG the best\\ ABC score of ABCD\\ ABCDEFG to ABCD ABCDE ABCDEFGH\\ A ABCD ABCDEFG\\ Publicaly not available\end{tabular} \\ \hline
\begin{tabular}[c]{@{}l@{}}ABCD's ABCDEF \\ ABCDABCD ABCDEF\\ ABCDABCD ABCDABCD\end{tabular} &
LA,ABC,AB,AB &
\begin{tabular}[c]{@{}l@{}}ABCDABCDAB,\\ ABCDABCDABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCD\\ ABCDABCD ABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCD of 100-550 \\ ABCDABCD.ABCD ABCDABCD\\ AB AB ABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCD ABCDABCD ABCDABCD \\ ABCDABCD approach used\\ ABCDABCD ABCD\\ Publicaly available\end{tabular} \\ \hline
\begin{tabular}[c]{@{}l@{}}ABCD ABCDABCD\\ ABCDABCDABCD\\ ABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCD,\\ ABCDRF\end{tabular} &
ABCDABCDABCD &
ABCDABCDABCDABCD &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCD\\ ABCDABCDABCD\\ samples\\ ABCDABCDABCDABCD \\ samples\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCD ABCDABCD ABC ABCD\\ ABCDABCDZF ABCDABCD\\ABCDABCDABCDABCDABCD\\ ABCDABCDABCD\\ Publicaly available\end{tabular} \\ \hline
ABCDABCDABCDABCD &
AB,GHmABC &
ABCDABCDABCD &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCD,\\ ABCDABCDABCD,\\ ABCDABCDABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCD \\ ABCDABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCDABCDABCD,\\ ABCDABCDABCDABCDABCD\\ ABCDABCDABCDABCD\\ ABCDABCDABCDABCDABCDABCDABCD \\ ABCDABCDABCD ABCDABCDABCD\\ ABCDABCD\\ Publicaly not available\end{tabular} \\ \hline
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCD\\ ABCD cooling fan\end{tabular} &
ABCD,ABCD,AB,ABC &
ABCDABCDABCD &
ABCD ABCDABCDABCD ABCD &
\begin{tabular}[c]{@{}l@{}}ABCD ABCDABCDABCD ABCD 3 \\ ABCDABCD\end{tabular} &
\begin{tabular}[c]{@{}l@{}}ABCD ABCDABCD ABCD ABCD.\\ ABCD ABCD ABCDABCD ABCDABCD.\\ ABCDABCD ABCDABCD\\ ABCDABCD available\end{tabular} \\ \hline
\begin{tabular}[c]{@{}l@{}}ABCD ABCDABCD ABCDABCD \\ ABCDABCD ABCDABCD\end{tabular} &
LA,RA,GA &
ABCDABCD &
ABCDABCD ABCD ABCD &
\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCD \\ ABCDABCDABCDABCD. \\ ABCDABCDABCD\end{tabular} &
\cellcolor[HTML]{FFFFFF}\begin{tabular}[c]{@{}l@{}}ABCDABCDABCDABCDABCDABCD\\ the best.\\ ABCDABCDABCDABCDABCD\\ ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD \\ ABCD ABCDABCD.\\ ABCDABCD ABCD ABCD \\ ABCD ABCD\\ ABCDABCD ABCD ABCDABCDABCD\\ ABCDABCD for ABCDABCD ABCDABCD on ABCD\\ ABCDABCD ABCDABCD ABCD.\\ ABCD ABCDABCD of ABCDABCD ABCDABCD\\ ABCDABCD ABCD ABCD ABCD for \\ ABCD ABCDABCDABCD.\end{tabular} \\ \hline
\end{tabular}%
}
\caption{ABCDABCDABCDABCDABCDABCDABCD}
\label{tab:ABCDABCDABCD}
\end{table}
\end{document}
答案1
- 不幸的是,表格生成器无法提供难以编辑成更好、更易读、更清晰形式的代码。-单元格中的文本是否真的如文档示例中所示?它不是自然文本,长字母序列无法很好地分解。
- 您应该在表格中使用较小的字体(例如
\small
甚至footnotesize
)。 - 表格本身就很大。您应该启用单元格中的文本可以自动分成几行的功能。
作为起点,您如何编辑表格,可以提供以下示例,其中表格使用tabularray
包,列为 X` 类型,并定义其宽度比率:
\documentclass{report}
\usepackage{geometry} % determine page layout, wider `\textwidth`
\usepackage{xcolor}
\usepackage{tabularray}
\begin{document}
\begin{table}[ht]
\small %\footnotesize
\begin{tblr}{hlines, vlines,
colspec = { *{3}{X[0.9,l]} X[1,l] X[0.8,l] X[1.4, l]},
row{1} = {font=\footnotesize\bfseries, m, bg=gray!30}
}
{Equipment\\ System}
& {AB\\ Techniques}
& {ABCD\\ Category}
& {ABCD Type\\ Description}
& {ABCD\\ Size}
& {ABC Findings\\ and ABCDABCD} \\
ABCD Placement ABCDEF
& AR, AN, SAB, RE, DM, GH
& ABCD ABCD EF
& Log data Textual form
& ABC Lines
& {AB ABCDEFG the best\\ ABC score of ABCD\\
ABCDEFG to ABCD ABCDE ABCDEFGH\\ A ABCD ABCDEFG\\
Publicaly not available} \\
ABCD's ABCDEF ABCDABCD ABCDEF ABCDABCD ABCDABCD
& LA, ABC, AB, AB
& ABCDA BCDAB, ABCDAB CDA BCD ABCD
& ABCDABCD ABCDABCD ABCD
& ABCDA BCD of 100-550 ABCDABCD ABCD AB CDABCD AB AB ABCD ABCD
& ABCD ABCD ABCDABCD ABCD ABCD ABC DABCD approach used
ABCDABCD ABCD Publicaly available \\
\end{tblr}
\end{table}
\end{document}
但您可以考虑通过帮助 pfrotating
包来旋转表格。在这种情况下,您应该使用sidewaystable
case 而不是table
:
\documentclass{report}
\usepackage{rotating}
\usepackage{xcolor}
\usepackage{tabularray}
\begin{document}
\begin{sidewaystable}[ht]
\small %\footnotesize
... the same as before ...
\end{sidewaystable}
\end{document}