履歷地址與照片對齊

履歷地址與照片對齊

我的簡歷對齊有問題。我想在履歷的左上角顯示我的地址,在右上角顯示我的照片。這是一個程式碼片段:

\begin{document}
\thispagestyle{empty} % this page has no header  
\name{john smith\\[12pt]}
\vspace{0pt} 
        \address{{\bf Permanent Address} \\ lablab12, 12345\\
 somewhere, Europe\\ Tel:(+9) 1238421\\Email :[email protected]}     
\address{\includegraphics[width=3cm]{CV}}

PS:作為一個技巧,為了顯示我名字下的照片,我使用了\address命令,但照片再次以這種形式出現:

在此輸入影像描述

正如您所看到的,照片出現在地址頂部,但未與地址對齊。

答案1

從您所顯示的情況來看,不需要使用(古老的)res文件類。但是,如果您堅持,我建議不要使用與標題相關的巨集來設定文件的該部分。只需按原樣設置它們即可:

在此輸入影像描述

\documentclass{res}

\usepackage[export]{adjustbox}

\begin{document}

\thispagestyle{empty} % this page has no header  

\begin{center}
  \bfseries John Smith
\end{center}

\begin{tabular}[t]{@{}l}
  \bfseries Permanent Address \\
  lablab12, 12345 \\
  somewhere, Europe \\
  Tel:(+9) 1238421 \\
  Email :[email protected]
\end{tabular}
\hfill
\includegraphics[width=3cm,valign=t]{example-image}%

\begin{resume}

Some content here.

\end{resume}

\end{document}

地址設置在[t]op-aligned內tabular,並將照片推到右側(使用\hfill)。adjustboxexport選項使選項可用graphicx\includegraphics命令。因此,圖像也透過 被align附加vt圖像的 op上valign=t

相關內容