我正在尝试整理这张表。我希望所有内容都位于表格的左角,并按照现在的顺序排列(我希望行的顺序相同,但由于我不知道如何在每个单元格中添加新行,因此我不得不将文本添加到每一行,并将行的左侧单元格留空)。有人能帮帮我吗?提前致谢。
\begin{tabular}[t]{rl}
\textsc{Current} & Faculty of \textsc{Aerospace Engineering}, Master of Science \\
\textsc{Sept. 2016} & \textbf{Delft University of Technology}, Delft, Netherlands\\
\includegraphics[width=0.1\textwidth, height=14mm]{Delft_University_of_Technology_seal.png} & Track: Control and Operations | Profile: Control and Simulation \\&\\
\textsc{Sept.} 2015 & Department of \textsc{Aerospace Engineering}, Bachelor of Science \\
\textsc{Sept.} 2011 & \textbf{Sharif University of Technology}, Tehran, Iran\\
\includegraphics[width=0.1\textwidth, height=14mm]{145px-Sharif_logo.svg.png} & Thesis: ``Linear Analysis on Effect of Combustion on Flame Stability \\
&in Low Swirling Flow'' | \small Advisor: Mohammad \textsc{Farshchi}\\
&\normalsize \textsc{Technical Gpa}: 3.92/4.00\\&\\
\textsc{June} 2011 & \textsc{Physics and Mathematics} School, Diploma \\
\textsc{Sept.} 2007 & \textbf{Farhikhtegan Pre-University and High School}, Mashhad, Iran \\
& \textsc{Overall GPA:} 4.00/4.00
\end{tabular}
答案1
或者像这样,使用与段落列类型一起的valign
选项adjustbox
p{width}
使用,如如何使表格中的文本和图像顶部对齐?。在段落单元格中,文本会在必要时自动分行,您可以使用 插入手动换行符\newline
。
梅威瑟:
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
\begin{tabular}[t]{rp{12cm}}
\textsc{Current} & Faculty of \textsc{Aerospace Engineering}, Master of Science \\
\textsc{Sept. 2016} & \textbf{Delft University of Technology}, Delft, Netherlands\\
\includegraphics[width=0.1\textwidth, height=14mm,valign=T]{Delft_University_of_Technology_seal.png} & Track: Control and Operations | Profile: Control and Simulation \\&\\
\textsc{Sept.} 2015 & Department of \textsc{Aerospace Engineering}, Bachelor of Science \\
\textsc{Sept.} 2011 & \textbf{Sharif University of Technology}, Tehran, Iran\\
\includegraphics[width=0.1\textwidth, height=14mm,valign=T]{145px-Sharif_logo.png} & Thesis: ``Linear Analysis on Effect of Combustion on Flame Stability in Low Swirling Flow'' | \small Advisor: Mohammad \textsc{Farshchi}\newline\normalsize \textsc{Technical Gpa}: 3.92/4.00\\&\\
\textsc{June} 2011 & \textsc{Physics and Mathematics} School, Diploma \\
\textsc{Sept.} 2007 & \textbf{Farhikhtegan Pre-University and High School}, Mashhad, Iran \\
& \textsc{Overall GPA:} 4.00/4.00
\end{tabular}
\end{document}
结果:
答案2
像这样,有tabularx
和makecell
?
\documentclass{article}
\usepackage{tabularx, makecell, graphicx}
\usepackage[showframe]{geometry}
\renewcommand{\tabularxcolumn}[1]{>{\arraybackslash}m{#1}}
\begin{document}
\noindent\begin{tabularx}{\linewidth}{@{}r>{\arraybackslash}X@{}}
\textsc{Current} & Faculty of \textsc{Aerospace Engineering}, Master of Science \\
\textsc{Sept. 2016} & \textbf{Delft University of Technology}, Delft, Netherlands\\
\makecell{\includegraphics[width=0.1\textwidth, height=14mm]{Delft_University_of_Technology_seal.png}} & Track: Control and Operations | Profile: Control and Simulation \\&\\
\textsc{Sept.} 2015 & Department of \textsc{Aerospace Engineering}, Bachelor of Science \\
\textsc{Sept.} 2011 & \textbf{Sharif University of Technology}, Tehran, Iran\\%
\makecell{\includegraphics[width=0.1\textwidth, height=14mm]{Sharif_logo}} & Thesis: ``Linear Analysis on Effect of Combustion on Flame Stability in Low Swirling Flow'' | \small Advisor: Mohammad \textsc{Farshchi}\newline
\normalsize \textsc{Technical Gpa: 3.92/4.00}\\&\\
\textsc{June} 2011 & \textsc{Physics and Mathematics} School, Diploma \\
\textsc{Sept.} 2007 & \textbf{Farhikhtegan Pre-University and High School}, Mashhad, Iran \\
& \textsc{Overall GPA:} 4.00/4.00
\end{tabularx}
\end{document}
使用这个更简单的代码,可以获得更美观的布局(我认为):
\noindent\begin{tabularx}{\linewidth}{@{}r>{\arraybackslash}X@{}}
\multicolumn{2}{@{}>{\scshape}l@{}} {Sept. 2016\,–\,Current}\\[1ex]
\makecell{\includegraphics[width=0.1\textwidth, height=14mm]{Delft_University_of_Technology_seal.png}}%
& Faculty of \textsc{Aerospace Engineering}, Master of Science \nl \textbf{Delft University of Technology}, Delft, Netherlands \nl Track: Control and Operations | Profile: Control and Simulation \\&\\
\multicolumn{2}{@{}>{\scshape}l@{}} {Sept. 2011\,–\,Sept. 2015}\\[0.5ex]
\makecell{\includegraphics[width=0.1\textwidth, height=14mm]{Sharif_logo}} & Department of \textsc{Aerospace Engineering}, Bachelor of Science \nl
\textbf{Sharif University of Technology}, Tehran, Iran\nl
Thesis: ``Linear Analysis on Effect of Combustion on Flame Stability in Low Swirling Flow'' | \small Advisor: Mohammad \textsc{Farshchi}\nl
\normalsize \textsc{Technical Gpa: 3.92/4.00}\\&\\
\multicolumn{2}{@{}>{\scshape}l@{}} {Sept. 2007\,–\,June 2011}\\[0.5ex]
& \textsc{Physics and Mathematics} School, Diploma \nl
\textbf{Farhikhtegan Pre-University and High School}, Mashhad, Iran \nl
\textsc{Overall GPA:} 4.00/4.00
\end{tabularx}