我想添加簡歷圖片以添加此部分的右側(請參閱圖片)。圖片必須幾乎適合數據部分。我嘗試了很多方法,但沒有一個有效。有人知道我該怎麼做嗎?
%Section: Personal Data
\section{Personal Data}
\begin{tabular}{rl}
\textsc{Full Name:} & Rick \\
\textsc{Place and Date of Birth:} & place and birth \\
\textsc{Sex:} & Male\\
\textsc{Address:} & address \\
\textsc{Phone:} & +number\\
\textsc{email:} & \href{mailto:mail} {mail!}\\
\textsc{Skype:} & skype.name\\
\end{tabular}
答案1
您可以使用 TiKZ 建立不會幹擾佈局其餘部分的覆蓋影像。我不知道您使用什麼包來創建上面的螢幕截圖,所以我無法準確地重現您的佈局。這就是我們堅持提供最低工作範例(MWE)的原因之一——請參閱上面我的評論。不過,以下內容應該可以幫助您入門:
\documentclass{article}
\usepackage{fullpage}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\begin{document}
\begin{tikzpicture}[overlay, remember picture]
\node[anchor=north east, inner sep=0pt] at (current page text area.north east)
{\includegraphics[height=4cm]{rick.jpg}};
\end{tikzpicture}
\begin{center}
\Huge \textbf{Rick}
\end{center}
\section{Personal Data}
\begin{tabular}{rl}
\textsc{Full Name:} & Rick \\
\textsc{Place and Date of Birth:} & place and birth \\
\textsc{Sex:} & Male\\
\textsc{Address:} & address \\
\textsc{Phone:} & +number\\
\textsc{email:} & \href{mailto:mail}{mail!}\\
\textsc{Skype:} & skype.name\\
\end{tabular}
\end{document}
也許我誤解了你的問題;如果你想放圖片裡面在個人資料部分,您可以使用以下套件在表格中使用多行儲存格multirow
:
\documentclass{article}
\usepackage{fullpage}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{multirow}
\begin{document}
\section{Personal Data}
\begin{tabular}{rp{8cm}r}
\textsc{Full Name:} & Rick & \multirow{7}{3cm}{\includegraphics[height=3cm]{rick.jpg}}\\
\textsc{Place and Date of Birth:} & place and birth \\
\textsc{Sex:} & Male\\
\textsc{Address:} & address \\
\textsc{Phone:} & +number\\
\textsc{email:} & \href{mailto:mail} {mail!}\\
\textsc{Skype:} & skype.name\\
\end{tabular}
\section{Education}
\end{document}