答案1
如果你想垂直使用
\begin{tabularx}{\textwidth}{|l|l|l|l|l|l|X|}
\documentclass{article}
\usepackage{tabularx}
\usepackage[table]{xcolor} %Used to color the last column
%\newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}%
%\newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}%
%\newcolumntype{C}[2]{>{\hsize=#1\hsize\columncolor{#2}\centering\arraybackslash}X}%
\begin{document}
\begin{tabularx}{\textwidth}{llllllX}
\hline
S No& Thesis&Data type 1 & year 2 &publisher3 & author 4 &explanation\\
\hline
as&sa&as& item 1 & item 2 & item 3 & item 4 \\
\hline
\end{tabularx}
\end{document}