\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|m{33.19mm}|m{43.51mm}|m{39.54mm}|m{10.96mm}|m{9.11mm}|}
\caption{Main entries in data extraction form}\\
\hline
Title &
Methodology &
Conclusion &
Q ID &
Key\\\hline
Carving contiguous fragmented files with fast object validation \cite{Garfinkel2007c}
&
Developing algorithm that validate carved data
for JPEG and Microsoft documents & Internal File Structure is very important in the process of carving data and the process of validating results &
Q1
&
K0
\newline
K8
\newline
K9
\\\hline
Reconstructing corrupt DEFLATED Files \cite{Brown2011} &
Bit-stream pattern search and try /error &
Recovering data from corrupted archive file by examining the file structure and trying to reconstruct lost or damaged parts &
Q2
&
K9
\\\hline
Forensic Data Carving \cite{Povar2011a} &
Multiple Methods for contiguous data carving based on file header/footer and also file structure, with validation proposal &
Discussed different methods for file carving and representing results related to these methods and limitations &
Q1
\newline
Q2
&
K2
\newline
K3
\newline
K8
\\\hline
\end{longtable}
\end{document}
答案1
这里我使用\raggedright
前三列来消除由于对齐而产生的多余单词间空间。
要将其应用于整个列,我使用规范
\begin{longtable}{|>{\raggedright}m{33.19mm}|>{\raggedright}m{43.51mm}|
>{\raggedright}m{39.54mm}|m{10.96mm}|m{9.11mm}|}
将宏添加\raggedright
为这些列的每个单元格条目中的第一个项目。
妇女权利委员会:
\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|>{\raggedright}m{33.19mm}|>{\raggedright}m{43.51mm}|
>{\raggedright}m{39.54mm}|m{10.96mm}|m{9.11mm}|}
\caption{Main entries in data extraction form}\\
\hline
Title &
Methodology &
Conclusion &
Q ID &
Key\\\hline
Carving contiguous fragmented files with fast object validation \cite{Garfinkel2007c}
&
Developing algorithm that validate carved data
for JPEG and Microsoft documents & Internal File Structure is very important in the process of carving data and the process of validating results &
Q1
&
K0
\newline
K8
\newline
K9
\\\hline
Reconstructing corrupt DEFLATED Files \cite{Brown2011} &
Bit-stream pattern search and try /error &
Recovering data from corrupted archive file by examining the file structure and trying to reconstruct lost or damaged parts &
Q2
&
K9
\\\hline
Forensic Data Carving \cite{Povar2011a} &
Multiple Methods for contiguous data carving based on file header/footer and also file structure, with validation proposal &
Discussed different methods for file carving and representing results related to these methods and limitations &
Q1
\newline
Q2
&
K2
\newline
K3
\newline
K8
\\\hline
\end{longtable}
\end{document}
如果采纳 Bernard 的建议使用该ragged2e
包,那么也可以实现连字符连接:
\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\usepackage{ragged2e}
\begin{document}
\begin{longtable}{|>{\RaggedRight}m{33.19mm}|>{\RaggedRight}m{43.51mm}|
>{\RaggedRight}m{39.54mm}|m{10.96mm}|m{9.11mm}|}
\caption{Main entries in data extraction form}\\
\hline
Title &
Methodology &
Conclusion &
Q ID &
Key\\\hline
Carving contiguous fragmented files with fast object validation \cite{Garfinkel2007c}
&
Developing algorithm that validate carved data
for JPEG and Microsoft documents & Internal File Structure is very important in the process of carving data and the process of validating results &
Q1
&
K0
\newline
K8
\newline
K9
\\\hline
Reconstructing corrupt DEFLATED Files \cite{Brown2011} &
Bit-stream pattern search and try /error &
Recovering data from corrupted archive file by examining the file structure and trying to reconstruct lost or damaged parts &
Q2
&
K9
\\\hline
Forensic Data Carving \cite{Povar2011a} &
Multiple Methods for contiguous data carving based on file header/footer and also file structure, with validation proposal &
Discussed different methods for file carving and representing results related to these methods and limitations &
Q1
\newline
Q2
&
K2
\newline
K3
\newline
K8
\\\hline
\end{longtable}
\end{document}
答案2
我建议使用 来改进表格ltablex
,它扩展longtable
到tabularx
环境。此外,我不使用任何垂直规则,而是用包用垂直间距替换大多数水平规则booktabs
。最后两列是简单c
列——makecell
包允许在这样的单元格中换行:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe]{geometry} \usepackage{array, makecell, booktabs}
\usepackage{ltablex}
\usepackage{ragged2e}
\renewcommand\tabularxcolumn[1]{>{\RaggedRight\arraybackslash}m{#1}}
\begin{document}
\vspace*{8cm}
\renewcommand\arraystretch{1.4}
\begin{tabularx}{\linewidth}{*{3}{X}cc}
\caption{Main entries in data extraction form}\\
\toprule
\endfirsthead
\multicolumn{5}{l}{\footnotesize\tablename~\thetable (continued)}\\
\toprule
\endhead
\midrule
\multicolumn{5}{r}{\footnotesize To be continued}
\endfoot
\bottomrule
\endlastfoot
%%%
Title & Methodology & Conclusion & Q ID & Key \\%
\midrule
Carving contiguous fragmented files with fast object validation \cite{Garfinkel2007c}
& Developing algorithm that validate carved data for JPEG and Microsoft documents %
& Internal File Structure is very important in the process of carving data and the process of validating results%
& Q1 & \makecell{K0\\K8\\K9} \\%
\addlinespace
Reconstructing corrupt DEFLATED Files \cite{Brown2011} & Bit-stream pattern search and try /error %
& Recovering data from corrupted archive file by examining the file structure and trying to reconstruct lost or damaged parts %
& Q2 & K9 \\%
\addlinespace
Forensic Data Carving \cite{Povar2011a} %
& Multiple Methods for contiguous data carving based on file header/footer and also file structure, with validation proposal %
& Discussed different methods for file carving and representing results related to these methods and limitations %
& \makecell{Q1\\Q2} & \makecell{K2\\K3\\K8}%
%Title & Methodology & Conclusion & Q ID & Key \\%
%\midrule
\\Carving contiguous fragmented files with fast object validation \cite{Garfinkel2007c}
& Developing algorithm that validate carved data for JPEG and Microsoft documents %
& Internal File Structure is very important in the process of carving data and the process of validating results%
& Q1 & \makecell{K0\\K8\\K9} \\%
\addlinespace
Reconstructing corrupt DEFLATED Files \cite{Brown2011} & Bit-stream pattern search and try /error %
& Recovering data from corrupted archive file by examining the file structure and trying to reconstruct lost or damaged parts %
& Q2 & K9 \\%
\addlinespace
Forensic Data Carving \cite{Povar2011a} %
& Multiple Methods for contiguous data carving based on file header/footer and also file structure, with validation proposal %
& Discussed different methods for file carving and representing results related to these methods and limitations %
& \makecell{Q1\\Q2} & \makecell{K2\\K3\\K8} %
\end{tabularx}
\end{document}