表格格式可自动拆分文本以适合页面

表格格式可自动拆分文本以适合页面

我想让表格适合页面的宽度,而不是简单地缩小它的尺寸,我有点不知道该如何做到这一点,目前我的表格如下所示,但它没有将其格式化以适合页面。

\begin{table}[]
\begin{tabularx}{\textwidth}{|l|}
    \hline
    \multicolumn{1}{|c|}{Chapter One: Introduction}                                                                                                                                                                                                 \\ \hline
    This chapter will introduce the project and provide the,reader with context of the subject along with the reasons for undertaking the,project and an outline of the project contents.                                                           \\ \hline
    \multicolumn{1}{|c|}{Chapter Two: Literature Review}                                                                                                                                                                                            \\ \hline
    This chapter will review current literature surrounding,the subjects of this project this will explore the current systems and,theoretical systems that form the basis for this project.                                                        \\ \hline
    \multicolumn{1}{|c|}{Chapter Three: Technology Review}                                                                                                                                                                                          \\ \hline
    Throughout this chapter will provide a review of the,technology used in current systems and the technology that will be used for,the proposed system.                                                                                           \\ \hline
    \multicolumn{1}{|c|}{Chapter Four: Analysis of Current Systems}                                                                                                                                                                                 \\ \hline
    In this chapter a comparison of current systems will be,provided to form a platform from which to model the proposed system. This comparison,will be used to model the functionality of the system and methodology used,for testing the system. \\ \hline
    \multicolumn{1}{|c|}{Chapter Five: System Analysis and Requirements}                                                                                                                                                                            \\ \hline
    In this chapter the base functionality for the proposed system,will be discussed and a draft of its implementation will be provided in the,form of system and communication diagrams.                                                           \\ \hline
    \multicolumn{1}{|c|}{Chapter Six: System Design}                                                                                                                                                                                                \\ \hline
    Throughout this chapter the system implementation will be,described and discussed based on the findings from chapter four and chapter,five.                                                                                                     \\ \hline
    \multicolumn{1}{|c|}{Chapter Seven: Software}                                                                                                                                                                                                   \\ \hline
    This chapter will discuss the software and how it was,constructed with reference to functionality and system requirements discussed,in previous chapters.                                                                                       \\ \hline
    \multicolumn{1}{|c|}{Chapter Eight:Implementation}                                                                                                                                                                                              \\ \hline
    In this chapter the implementation and integration of the,software into the hardware environment will be discussed with further,reasoning into the choices made on both software modelling and hardware,choices for this project.               \\ \hline
    \multicolumn{1}{|c|}{Chapter 9}                                                                                                                                                                                                                 \\ \hline
    Throughout this chapter a set of test methods will be discussed,,and results of these tests will be displayed. The chosen test method for this,project is user interaction dialogues.                                                           \\ \hline
    \multicolumn{1}{|c|}{Chapter 10}                                                                                                                                                                                                                \\ \hline
    This chapter will include a critical evaluation of the,system as well as any changes and limitations that were experienced along,with how these limitations were dealt with and how the project was adapted to,these changes.                   \\ \hline
    \multicolumn{1}{|c|}{Chapter 11}                                                                                                                                                                                                                \\ \hline
    In this chapter a conclusion will be drawn, and a review,of the objectives will be carried out to determine if the project achieved the,aims that were set out for it.                                                                          \\ \hline
\end{tabularx}
\end{table}

如能就如何实现这一目标提出任何建议,我们将不胜感激。

干杯

答案1

如果使用tabularx环境,则必须X至少对一列使用列类型。此外,我建议\extrarowheight在单元格顶部添加一个小的:

\setlength{\extrarowheight}{2pt} \begin{tabularx}{\textwidth}{|X|} 在此处输入图片描述

答案2

\begin{table}[]
\begin{tabularx}{\textwidth}{|p{0.965\textwidth}|}

诀窍是...

相关内容