你好,我正在制作简历。我想以垂直方式写一些详细信息,例如住宅地址、Skype 地址、电话号码。我该怎么做?这是我的代码。
\namesection{}{name}{ \urlstyle{same}
\href{mailto:[email protected]}{[email protected]}}
现在我如何以垂直方式以及并排的两列添加更多详细信息?
答案1
这里有两种方法可以做到(应该适用于任何类),一种是使用flushleft
和flushright
,另一种是使用tabularx
包:
\documentclass[12pt]{article}
\usepackage{tabularx}
\begin{document}
% flushright/flushleft method
\begin{flushright}
{\Huge Foo Bar} \\
{\Large Curriculum Vitae} \\[1em]
+1123581321 \\
100 Quux Lane, Bazland
\end{flushright}
\vspace{-1.95cm} % Big downside is the need for this manual re-spacing
\begin{flushleft}
Lot's of other \\
Random detail
\end{flushleft}
\vspace{2cm}
% tabularx method, better IMHO. There are three columns, the middle X column is
% the filler, and the left and right are for content.
\noindent \begin{tabularx}{\textwidth}{l X r}
& & {\Huge Foo Bar} \\
& & {\Large Curriculum Vitae} \\[1em]
Lot's of other & & +1123581321 \\
Random detail & & 100 Quux Lane, Bazland
\end{tabularx}
\end{document}