我真的很难制作一个简单的表格。但我的问题是亲爱的 LaTeX 不会将我的文本换行到有多行的一列中。我用主 pdf 制作了一张照片,它显示了所有内容。我的代码是:
\begin{table}
\caption[Information modules of EPD]{Information modules within any of the life cycle stages are communicated depending on the types of EPD.}
\label{tab:InfoModu}
\centering
\begin{tabular}{p{0.15\linewidth}p{0.4\linewidth}p{0.4\linewidth}}
\toprule
\tabhead{Information modules} & \tabhead{Description} & \tabhead{Explanation} \\
\midrule
A1 & Raw material extraction and processing, processing of secondary material input (e.g. recycling processes) & $\multirow{3}{*}{Product stage: including provision of\\ all materials, products and energy,\\ as well as waste processing up to the end-of waste state or disposal of final residues \\during the product stage. Module A1, A2 and A3 may\\ be declared as one aggregated module A1-3.}$\\
A2 & Transport to the manufacturer & ~\\
A3 & Manufacturing & ~\\
\hline
A4 & Transport to the building site & $\multirow{2}{*}{Construction process stage: including provision of all materials, products and energy, as well as waste processing up to the end-of- waste state or disposal of final residues during the construction process stage. These information modules also include all impacts and aspects related to any losses during this construction process stage (i.e. production, transport, and waste processing and disposal of the lost products and materials).}$\\
A5 & Installation into the building & ~\\
\hline
B1 & Use or application of the installed product & $\multirow{5}{*}{Use stage, related to the building fabric: including provision and transport of all materials, products and related energy and water use, as well as waste processing up to the end-of-waste state or disposal of final residues during this part of the use stage. These information modules also include all impacts and aspects related to the losses during this part of the use stage (i.e. production, transport, and waste processing and disposal of the lost products and materials).}$\\
B2 & Maintenance & ~\\
B3 & Repair & ~\\
B4 & Replacement & ~\\
B5 & Refurbishment & ~\\
\hline
B6 & Operational energy use (HVAC) & $\multirow{2}{*}{Use stage related to the operation of the building: These information modules include provision and transport of all materials, products, as well as energy and water provisions, waste processing up to the end-of-waste state or disposal of final residues during this part of the use stage.}$\\
B7 & Operational water use & ~\\
\hline
C1 & De-construction, demolition & $\multirow{4}{*}{End-of-life stage: including provision and all transport, provision of all materials, products and related energy and water}$\\
C2 & Transport to waste processing & ~\\
C3 & Waste processing for reuse, recovery and/or recycling & ~\\
C4 & Disposal & ~\\
\hline
D & Reuse, recovery and/or recycling potentials, expressed as net impacts and benefits & Benefits and loads beyond the system boundary \\
\bottomrule\\
\end{tabular}
\end{table}
如果有人能帮助我,我会非常高兴。
非常感谢 Pouya
答案1
请始终提供 MWE(最小工作示例),这是一份包含表格的小型但完整的文档,以 开头\documentclass[...]{...}
并以 结尾\end{document}
。到目前为止,我们只能猜测您的文档设计。
您的表格存在更多问题(请参阅问题下方的评论)。除此之外,您还存在多行文本重叠的问题。您可以通过在表格中添加空行来避免这种情况:
\documentclass{article}
\usepackage[margin=25mm]{geometry}
\usepackage{booktabs, makecell, multirow, tabularx}
\renewcommand\theadfont{\bfseries}
\begin{document}
\begin{table}
\caption[Information modules of EPD]
{Information modules within any of the life cycle stages are communicated depending on the types of EPD.}
\label{tab:InfoModu}
\centering
\setcellgapes{2pt}
\makegapedcells
\small
\begin{tabularx}{\linewidth}{@{} l >{\hsize=0.7\hsize}X
>{\hsize=1.3\hsize}X @{}}
\toprule
\thead{Inf.\\ mod.} & \thead{Description} & \thead{Explanation} \\
\midrule
A1 & Raw material extraction and processing, processing of secondary material input (e.g. recycling processes)
& \multirow[t]{5}{=}{Product stage: including provision of all materials, products and energy, as well as waste processing up to the end-of waste state or disposal of final residues during the product stage. Module A1, A2 and A3 may be declared as one aggregated module A1-3.} \\
A2 & Transport to the manufacturer & \\
A3 & Manufacturing & \\
\midrule
A4 & Transport to the building site
& \multirow[t]{7}{=}{Construction process stage: including provision of all materials, products and energy, as well as waste processing up to the end-of- waste state or disposal of final residues during the construction process stage. These information modules also include all impacts and aspects related to any losses during this construction process stage (i.e. production, transport, and waste processing and disposal of the lost products and materials).} \\
A5 & Installation into the building & \\
& & \\
& & \\
& & \\
\addlinespace
\midrule
B1 & Use or application of the installed product
& \multirow[t]{5}{=}{Use stage, related to the building fabric: including provision and transport of all materials, products and related energy and water use, as well as waste processing up to the end-of-waste state or disposal of final residues during this part of the use stage. These information modules also include all impacts and aspects related to the losses during this part of the use stage (i.e. production, transport, and waste processing and disposal of the lost products and materials).} \\
B2 & Maintenance & \\
B3 & Repair & \\
B4 & Replacement & \\
B5 & Refurbishment & \\
\addlinespace
\midrule
B6 & Operational energy use (HVAC)
& \multirow[t]{2}{=}{Use stage related to the operation of the building: These information modules include provision and transport of all materials, products, as well as energy and water provisions, waste processing up to the end-of-waste state or disposal of final residues during this part of the use stage.} \\
B7 & Operational water use & \\
& & \\
& & \\
\midrule
C1 & De-construction, demolition
& \multirow[t]{2}{=}{End-of-life stage: including provision and all transport, provision of all materials, products and related energy and water}\\
C2 & Transport to waste processing & \\
C3 & Waste processing for reuse, recovery and/or recycling
& \\
C4 & Disposal & \\
\midrule
D & Reuse, recovery and/or recycling potentials, expressed as net impacts and benefits
& Benefits and loads beyond the system boundary \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}