我的消息来源:
\documentclass[12pt]{article}
% For removing number order at section header.
\makeatletter
\def\@seccntformat#1{%
\expandafter\ifx\csname c@#1\endcsname\c@section\else
\csname the#1\endcsname\quad
\fi}
\makeatother
% For font-size header
\usepackage{sectsty}
\sectionfont{\fontsize{12}{15}\selectfont}
% For top-align and left-align size.
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=25mm,
top=20mm,
}
% Define tab length.
\newcommand\tab[1][1cm]{\hspace*{#1}}
\title{\textbf{\large{CURRICULUM VITAE}}}
\author{\textbf{\textit{Do Van Vy}}}
\date{July 2016}
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{BASIC INFORMATION}
\begin{tabular}{|l|l|}
\hline
\begin{tabular}{|l|l|}
\hline
Full name & \textit{Do Van Vy}\\
Date of birth & \textit{26\textsuperscript{th} August 1997}\\
Hometown/Residence & \textit{Cat Que - Hoai Duc - Hanoi, Vietnam}\\
Marital status & \textit{Single}\\
Email & \textit{[email protected]}\\
Mobile number & \textit{+84 90 323 4523}\\
\hline
\end{tabular}
&
\includegraphics[scale=0.23]{vy2.png}
\hline
\end{tabular}
\section{HIGHER EDUCATION}
\textbf{Vietnam Forestry University}\\
\noindent\begin{tabular}{@{}ll}
Address:&Xuan Mai town - Chuong My district - Hanoi\\
Type:&Full-time\\
Major:&Agro-forestry\\
Result:&Average-good\\
Academic year:&2005 - 2009\\
\end{tabular}
\bigskip
\noindent\textbf{Hanoi University of Science and Technology}\\
\noindent\begin{tabular}{@{}ll}
Address:&No. 1 - Dai Co Viet street - Hai Ba Trung district - Hanoi\\
Type:&Full-time\\
Major:&Information Technology\\
Result:&Good\\
Academic year:&2012 - 2015\\
\end{tabular}
\bigskip
\begin{figure}[h!]
\centering
\includegraphics[scale=0.28]{vy2.png}
\caption{The Universe}
\label{fig:univerise}
\end{figure}
\section{Conclusion}
``I always thought something was fundamentally wrong with the universe'' \citep{adams1995hitchhiker}
\bibliographystyle{plain}
\bibliography{references}
\end{document}
帮我把文本部分放在垂直顶部或垂直中心位置。谢谢!
答案1
我建议使用另一种代码,不带multirow
: 因为图片是其列中唯一的单元格,所以简单\smash{\raisebox…
操作即可。我添加了一个变体,没有垂直规则,但水平规则较粗booktabs
,在我看来这样看起来更美观:
\documentclass[12pt]{article}
% For removing number order at section header.
\makeatletter
\def\@seccntformat#1{%
\expandafter\ifx\csname c@#1\endcsname\c@section\else
\csname the#1\endcsname\quad
\fi}
\makeatother
% For font-size header
\usepackage{sectsty}
\sectionfont{\fontsize{12}{15}\selectfont}
% For top-align and left-align size.
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=25mm,
top=20mm,
}
\usepackage{array, booktabs}
\usepackage[x11names]{xcolor}
% Define tab length.
\newcommand\tab[1][1cm]{\hspace*{#1}}
\title{\textbf{\large{CURRICULUM VITAE}}}
\author{\textbf{\textit{Do Nhu Vy}}}
\date{July 2016}
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{BASIC INFORMATION}
\setlength\extrarowheight{2pt}
\begin{tabular}{|l|>{\itshape}l|l|}
\hline
Full name & Do Nhu Vy & \raisebox{\dimexpr-\height +1pt}[0pt][0pt]{\includegraphics[scale=0.5]{sendak}} \\
Date of birth & 26\textsuperscript{th} August 1987 & \\
Hometown/Residence & Cat Que -- Hoai Duc -- Hanoi, Vietnam & \\
Marital status & Single & \\
Email & [email protected] & \\
Skype & dnv2006 & \\
Mobile number & +84 90 323 7207 & \\
\hline
\end{tabular}
\vspace{1cm}
\section{BASIC INFORMATION}
\setlength\extrarowheight{3pt}
\begin{tabular}{@{\,}>{\textcolor{CadetBlue3}{\textbullet}\enspace}l>{\itshape}ll@{}}
\toprule
Full name & Do Nhu Vy & \raisebox{-\height}[0pt][0pt]{\includegraphics[scale=0.5]{sendak}} \\
Date of birth & 26\textsuperscript{th} August 1987 & \\
Hometown/Residence & Cat Que -- Hoai Duc -- Hanoi, Vietnam & \\
\bottomrule
\end{tabular}
\end{document}