提问于:
浏览数:
3715
如题,下面是MWE。
```tex
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage[left=3.18cm, right=3.18cm, top=2.54cm, bottom=2.54cm]{geometry}
\begin{document}
{\renewcommand{\arraystretch}{1.5}
\begin{table*}[htbp]
\caption{xxxxx}
\centering
%\setlength{\tabcolsep}{1.3mm}{
\begin{tabular}{p{2.7cm}|p{2cm}|p{3cm}|p{3cm}|p{4.5cm}}
\hline\hline
xxxxxx & xxxxx & xxxx xxxx & xxxxxx & xxxxxx \\
\hline
xxxxxxxxxxxx & \multirow{4}*{This is example This is example This is example } & \multirow{4}*{This is example This is example This is example } & \multirow{4}*{This is example This is example This is example } &This is example This is example This is example This is example\\
\cline{1-1}\cline{5-5}
xxxxxxxxx xxxxxxxxx & ~ & ~ & ~ &\begin{itemize}
\item This is example This is example This is example This is example This is example
\item This is example
\end{itemize}\\
\hline
\end{tabular}
\end{table*}
}
\end{document}
```
2 回答
1
没有仔细看用法:
```tex
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage[left=3.18cm, right=3.18cm, top=2.54cm, bottom=2.54cm]{geometry}
\begin{document}
{\renewcommand{\arraystretch}{1.5}
\begin{table*}[htbp]
\caption{xxxxx}
\centering
%\setlength{\tabcolsep}{1.3mm}{
\begin{tabular}{p{2.7cm}|p{2cm}|p{3cm}|p{3cm}|p{4.5cm}}
\hline\hline
xxxxxx & xxxxx & xxxx xxxx & xxxxxx & xxxxxx \\
\hline
xxxxxxxxxxxx & \multirow{4}{2cm}{This is example This is example This is example } & \multirow{4}{2cm}{This is example This is example This is example } & \multirow{4}{2cm}{This is example This is example This is example } &This is example This is example This is example This is example\\
\cline{1-1}\cline{5-5}
xxxxxxxxx xxxxxxxxx & ~ & ~ & ~ &\begin{itemize}
\item This is example This is example This is example This is example This is example
\item This is example
\end{itemize}\\
\hline
\end{tabular}
\end{table*}
}
\end{document}
```
0
还是希望你多用 `\linewidth`
```tex
\documentclass[10pt,a4paper,twocolumn]{article}
\usepackage[%
left=3.18cm,
right=3.18cm,
top=2.54cm,
bottom=2.54cm%
]{geometry}
\usepackage{multirow}
\begin{document}
\begin{table*}[htbp]
\caption{This is caption}
\centering
\begin{tabular}{p{0.1\linewidth}|p{0.15\linewidth}|p{0.15\linewidth}|p{0.15\linewidth}|p{0.3\linewidth}}
\hline\hline
hello & world & \LaTeX{} is good & why you try & nice \\
\hline
This is an example & \multirow{2}{\linewidth}{Here is one long sentence for testing the 'multirow' macro} & \multirow{2}{\linewidth}{Here is another long sentence for testing the 'multirow' macro} & \multirow{2}{\linewidth}{Use one long sentence again for testing the 'multirow' macro} & Once more use one long sentence again for testing the 'multirow' macro\\
\cline{1-1}\cline{5-5}
Well, the long sentence appears more and more & & & &
\begin{itemize}
\item Again one long sentence for testing whether the breakline is good enough or not
\item One short sentence
\end{itemize}\\
\hline
\end{tabular}
\end{table*}
\end{document}
```
你的回答
请登录后回答
你的回答将会帮助更多人,请务必认真回答问题。