
我的簡歷對齊有問題。我想在履歷的左上角顯示我的地址,在右上角顯示我的照片。這是一個程式碼片段:
\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
)。adjustbox
的export
選項使選項可用graphicx
的\includegraphics
命令。因此,圖像也透過 被align
附加v
到t
圖像的 op上valign=t
。