我正在尝试制作一份右侧带有照片的简历。
\begin{tabular}{l*{3}{l}r}
\large\textsc{Name:} &\large\bf{Dale Cooper} & \\
\textsc{Date of Birth:} & April 19 1954 \\
\textsc{Address:} & Maple Ave. 15, 92391 Twin Peaks, USA \\
\textsc{Tel:} & +154141165162141\\
\textsc{email:} & \href{mailto:[email protected]}{[email protected]}
\end{tabular}
我需要放这样的照片。
答案1
\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
\begin{minipage}{.6\linewidth}
\begin{tabular}{l*{3}{l}r}
\large\textsc{Name:} &\large\bf{Dale Cooper} & \\
\textsc{Date of Birth:} & April 19 1954 \\
\textsc{Address:} & Maple Ave. 15,\\
& 92391 Twin Peaks, USA \\
\textsc{Tel:} & +154141165162141\\
\textsc{email:} & \href{mailto:[email protected]}{[email protected]}
\end{tabular}
\end {minipage}
\hfill
\begin{minipage}{.35\linewidth}
\centering
\includegraphics[width=.8\linewidth]{example-image}
\end{minipage}
\end{document}
答案2
可以通过\raisebox
一张好照片来完成:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{erewhon}
\usepackage{geometry}
\usepackage[justification=raggedright,singlelinecheck=false, format=hang]{caption}
\usepackage{array, graphicx} %
\usepackage{hyperref}
\begin{document}
\centering\setlength\extrarowheight{3pt}
\begin{tabular}{>{\scshape}l*{3}{l}r}
\large Name: & \large\textbf{Pepé le Pew} & \qquad\raisebox{\dimexpr-\height+1.7ex}[0pt][0pt]{\includegraphics[scale=0.3]{pepe-le-pew1}} \\
Date of Birth: & January 6 1945\\
Address: & Warner Blvd 4000, CA 9915522 Burbank, USA \\
Tel: & +154141165162141\\
email: & \href{mailto:[email protected]}{[email protected]}
\end{tabular}
\end{document}