我正在使用文档类“res”制作简历,但在对齐各个部分时遇到了一些问题。如下图所示,地址线不符合测试在里面研究兴趣
下面给出代码。如何解决这个问题?
\documentclass[line, margin]{res}
\makeatletter
\def\@classoptionslist{<class options except `margin` OR empty>}
\makeatother
\usepackage{geometry}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{url}
\hypersetup{colorlinks=true,allcolors=black}
\usepackage{hypcap}
\linespread{1.1}
%\topmargin=-0.45in
%\evensidemargin=0in
%\oddsidemargin=0in
%\textwidth=5.5in
%\textheight=9.0in
%\headsep=0.25in
%\hoffset=1in
\geometry{
a4paper,
total={210mm,297mm},
left=20mm,
right=50mm,
top=20mm,
bottom=20mm,
}
\begin{document}
\name{My Name}
\begin{resume}
\vspace{0.5cm}
\section{\textsc{Contact Information}}
\begin{tabular}{l l}
\begin{tabular}{l}
c/o Address line 1 \\
Address Line 2 \\
City, Country
\end{tabular} &
\begin{tabular}{l}
\textit{Cell:} \texttt {\href{tel:+xx xxx xxxx xxx}{{+xx xxx xxxx xxx}}}\\
\textit{Email:} \texttt{\href{mailto:[email protected]}{\nolinkurl{[email protected]}}}\\
\textit{LinkedIn:} \texttt{\url{linkedin.com/in/arbitraryurl}}
\end{tabular}
\end{tabular}
\section{\textsc{Research Interests}}
Test \\
\section{\textsc{Education}}
\textbf{M.Sc. in Test, Sept xxx - ongoing} \\
University, Country
\end{resume}
\end{document}
答案1
我不知道,res.cls
也不确定这种tabular
方式是否是实现此目的的最佳方式,但如果tabular
使用,则必须消除列说明符左右两侧的额外列间距:
\begin{tabular}{@{}ll}
将删除 s 的额外空格6pt
(标准值\tabcolsep
)tabular
。这必须在外部以及第一个内部tabular
环境中完成。
\documentclass[line, margin]{res}
\makeatletter
\def\@classoptionslist{<class options except `margin` OR empty>}
\makeatother
\usepackage{geometry}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{url}
\hypersetup{colorlinks=true,allcolors=black}
\usepackage{hypcap}
\linespread{1.1}
%\topmargin=-0.45in
%\evensidemargin=0in
%\oddsidemargin=0in
%\textwidth=5.5in
%\textheight=9.0in
%\headsep=0.25in
%\hoffset=1in
\geometry{
a4paper,
total={210mm,297mm},
left=20mm,
right=50mm,
top=20mm,
bottom=20mm,
}
\begin{document}
\name{My Name}
\begin{resume}
\vspace{0.5cm}
\section{\textsc{Contact Information}}
\begin{tabular}{@{}l l}
\begin{tabular}{@{}l@{}}
c/o Address line 1 \\
Address Line 2 \\
City, Country
\end{tabular} &
\begin{tabular}{l}
\textit{Cell:} \texttt {\href{tel:+xx xxx xxxx xxx}{{+xx xxx xxxx xxx}}}\\
\textit{Email:} \texttt{\href{mailto:[email protected]}{\nolinkurl{[email protected]}}}\\
\textit{LinkedIn:} \texttt{\url{linkedin.com/in/arbitraryurl}}
\end{tabular}
\end{tabular}
\section{\textsc{Research Interests}}
Test \\
\section{\textsc{Education}}
\textbf{M.Sc. in Test, Sept xxx - ongoing} \\
University, Country
\end{resume}
\end{document}