我又容易忘记 Latex 了。
如何使内容从左边开始,而第一行保持在中间?
我的 MWE:
\documentclass{article}
\usepackage{cases}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{subcaption}
\usepackage{table}
\begin{document}
\begin{center}
\begin{longtable}{|c|C{8cm}|C{8cm}|}
\hline
\bf{No.} & \bf{Revision} & \bf{Action Taken} \tabularnewline
\hline
1. & Testing Testing Testing & Action Taken Action Taken \tabularnewline
\hline
2. & Testing Testing Testing & Action Taken Action Taken \tabularnewline
\hline
\end{longtable}
\end{center}
\end{document}
答案1
\documentclass{article}
\usepackage{ragged2e}
\usepackage{longtable, makecell, tabularx}
\renewcommand\theadfont{\normalsize\bfseries}
\renewcommand\theadgape{}
\begin{document}
\renewcommand\arraystretch{1.2}
\begin{longtable}{|c|*{2}{>{\RaggedRight\hspace{0pt}}p{5cm}|}}% with 8cm columns table will not fit on page
\hline
\thead{No.} & \thead{Revision} & \thead{Action Taken} \tabularnewline
\hline
1. & Testing Testing Testing & Action Taken Action Taken \tabularnewline
\hline
2. & Testing Testing Testing & Action Taken Action Taken \tabularnewline
\hline
\end{longtable}
\end{document}