我正在寻找解决方案 1. 单个空间 2. 两端对齐行 有人能帮帮我吗?这是代码。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[h!]
%\centering
\begin{adjustbox}{max width=\textwidth}
\begin{tabular}{|l|l|l|l|l|}
\hline
\multirow{3}{*}{1} & \multicolumn{4}{l|}{\begin{tabular}[c]{@{}l@{}} \bf Implementation of a Smart and Sustainable Watering System using Arduino \\\bf for Plants Sprinkler – \textit{FYP, Degree}\hfill\vadjust{} \end{tabular}} \\ \cline{2-5}
& \multicolumn{1}{c|}{Synopsis} & \multicolumn{1}{c|}{Duration} & \multicolumn{1}{c|}{Manpower} & \multicolumn{1}{c|}{Status} \\ \cline{2-5}
& \begin{tabular}[c]{@{}l@{}} An Arduino based automatic sprinkler system for \\the automatic plants' watering where the power \\supply is maintained by the solar system. \end{tabular} & 2 sem & 1 student & Completed \\ \hline
\end{tabular}
\end{adjustbox}
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
答案1
像这样吗?(请注意,我会警告反对使用adjustbox
环境。
\documentclass{article}
\usepackage{tabularx,ragged2e}
\begin{document}
\begin{table}[h!]
\begin{tabularx}{\textwidth}{|l|>{\RaggedRight}X|c|c|c|}
\hline
1 & \multicolumn{4}{p{0.9\textwidth}|}{\bfseries Implementation of a Smart and Sustainable Watering System using Arduino for Plants Sprinkler –-- \textit{FYP, Degree}} \\
\cline{2-5}
& Synopsis & Duration & Manpower & Status \\
\cline{2-5}
& An Arduino based automatic sprinkler system for the automatic plants' watering where the power supply is maintained by the solar system.
& 2 sem & 1 student & Completed \\
\hline
\end{tabularx}
\end{table}
\end{document}