目前,我正在写我的简历,我写
\documentclass[a4paper,12pt]{letter}
\usepackage{tabularx}
\usepackage{graphicx}
\graphicspath{ {C:/Users/asus_user/Pictures/} }
\begin{document}
\vspace*{-6cm}
\flushright
\begin{frame}{}
\includegraphics[width=2.75cm, height=4cm]{head}
\end{frame}
\begin{center}
WANG \\
Tel.(Mobile) : 12345 \\
Tel. (Home) : 12345 \\
Email : alanwang@my
\end{center}
\end{document}
我想在这四行的右侧插入我的照片。
但我想要的并没有实现。我该如何解决?谢谢
答案1
这是一种嵌套tabular
方法。当然,根据照片的实际尺寸,需要进行一些调整,以及左/右对齐(例如删除环境center
)和页面的几何形状,例如顶部边距。
\documentclass[a4paper,12pt]{letter}
\usepackage{graphicx}
%\graphicspath{ {C:/Users/asus_user/Pictures/} }
\begin{document}
%\vspace*{-6cm}
\begin{center}
\begin{tabular}{lr}
\begin{tabular}[b]{ll}
\multicolumn{2}{c}{WANG} \tabularnewline
Tel.(Mobile): &12345 \tabularnewline
Tel. (Home): & 12345 \tabularnewline
Email: & alanwang@my \tabularnewline
\end{tabular}
&
\begin{tabular}[b]{r}
\includegraphics[width=2.75cm, height=4cm]{beeduck}
\end{tabular}
\end{tabular}
\begin{tabular}{lr}
\begin{tabular}{ll}
\multicolumn{2}{c}{WANG} \tabularnewline
Tel.(Mobile): &12345 \tabularnewline
Tel. (Home): & 12345 \tabularnewline
Email: & alanwang@my \tabularnewline
\end{tabular}
&
\begin{tabular}{r}
\includegraphics[width=2.75cm, height=4cm]{beeduck}
\end{tabular}
\end{tabular}
\end{center}
\end{document}
答案2
您可以使用列环境并创建适当的列以实现所需的效果。这是我用来生成图片的代码
\begin{columns}[T] \column{0.43\linewidth}\begin{block}{Assumption} \begin{itemize} \item Text. \item Text. \item Text. \item Text. \end{itemize} \end{block} \column{0.5\linewidth} \begin{figure}[p] \centering \includegraphics[width=1\textwidth]{../01_pic/architecture.pdf} \end{figure} \end{columns}