我正在尝试将图像和表格并排放置。这是我的代码:
\begin{table}[h]
\centering
\label{my-label1}
\begin{tabular}{lll}
\multicolumn{1}{l}{} \includegraphics[width=1.5in]{IIIT} & {\bf Shubham Rathi} & {\bf Male} \\
& {\bf Computer Science} & {\bf B. Tech + MS (Computational Humanities)} \\
& {\bf IIIT Hyderabad} & {\bf}
\end{tabular}
\end{table}
这导致我的图像从表格向上倾斜:
我希望它看起来像这样:
我应该做什么?
Sharelatex 文件在这里:www.sharelatex.com/project/57e542d03afea89017192474
答案1
你的情况需要的是\multirow
\documentclass{article}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{table}[h]
\centering
\label{my-label1}
\bfseries
\begin{tabular}{lll}
\multirow{3}{*}{\includegraphics[width=1.5in,height=0.8in]{IIIT}}
& & \\
& Shubham Rathi & Male \\
& Computer Science & B. Tech + MS (Computational Humanities) \\
& IIIT Hyderabad & \\
& &
\end{tabular}
\end{table}
\end{document}
答案2
使用
\raisebox{-\height}[0pt][0pt]{\includegraphics[width=1.5in]{IIIT}}
如果同一列中没有其他内容,则应该可以解决问题。