这是我目前拥有的:
\documentclass{article}
\usepackage[margin=1.0in]{geometry}
\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\begin{itemize}
\begin{flushright}
\huge\textbf{First Last}
\end{flushright}
\end{itemize}
\columnbreak
\renewcommand{\arraystretch}{0.7}
\begin{tabular}{rl}
\footnotesize \textbf{Email} & \footnotesize \href{mailto:[email protected]} \\
\footnotesize \textbf{Website} & \footnotesize Website \\
\footnotesize \textbf {LinkedIn} & \footnotesize https://linkedin.com/ \\
\footnotesize \textbf {Phone} & \footnotesize ()
\end{tabular}
\end{multicols}
\end{document}
就定位而言,这就是我想要的(不一定想增加“First Last”的字体大小):
简而言之,我希望水平平衡名称列和名称右侧的链接列。我该如何复制所附图片的布局?
答案1
我可能会使用某种表格环境,或者为了提供更多的功能和灵活性,tabularray 包, 像这样:
\documentclass{article}
\usepackage[margin=0.6in]{geometry} % set margins
\usepackage[T1]{fontenc}
\usepackage{tgheros}% font like in picture
\renewcommand{\familydefault}{\sfdefault} % use sans font
\usepackage{tabularray}% for fancier tables
\usepackage[colorlinks,urlcolor=black]{hyperref}% for urls
\renewcommand{\UrlFont}{\color{black}}% remove ttshape from urls
\begin{document}
\begin{center}
% tblr with three columns, one left and vertically-middle assigned,
% one bold right aligned, one left aligned
\noindent\begin{tblr}{colspec={Q[l,m]>{\bfseries}rl},
vborder{2} = {leftspace=5em},% extra space before second column break
vborder{3} = {leftspace=1em} % extra space before third column
}
\SetCell[r=4]{c}{\fontsize{60}{60}\selectfont \textbf{First Last}}
& Email & \href{mailto:[email protected]}{[email protected]}\\
& Website & \url{https://example.com/}\\
& LinkedIn & \url{https://linkedin.com/in/test}\\
& Github & \url{https://github.com/test}
\end{tblr}
\end{center}
\end{document}