我希望在下面的文档中重现列式对齐:
请注意,标题既有左对齐的文本,也有右对齐的文本,不知何故,左侧的大文本占据了右侧的两行。正文似乎只是不同宽度的列,但其他方面都很标准。
我以为这会很简单,但我花了太多时间而且遇到了不少麻烦。
编辑(2022-08-15):自从我发布这篇文章以来,我对已接受的答案做了一些修改,并形成了自己的简历模板。它不包含原始示例中的图像。它在这里:
\documentclass[12pt]{article}
\usepackage[margin=0.5in]{geometry}
\pagestyle{empty}
\raggedright
\usepackage{titlesec}
\titleformat{\section}{
\vspace{-8pt}\scshape\bfseries\large
}{}{0em}{}[\titlerule \vspace{-5pt}]
\usepackage{enumitem}
\setlist[itemize,2]{label=\textopenbullet}
%-------------------------
% Custom commands
\newcommand{\resumeheading}[4]{
\begin{tabular*}{\textwidth}[t]{l@{\extracolsep{\fill}}r}
\textbf{#1} & {\small#2}\\
\textsl{\small#3} & {\small#4}
\end{tabular*}
}
% Enable bold small caps: https://tex.stackexchange.com/a/386933
\usepackage{lmodern} % Switch to Latin Modern
\usepackage[T1]{fontenc}
\rmfamily
\DeclareFontShape{T1}{lmr}{b}{sc}{<->ssub*cmr/bx/sc}{}
\DeclareFontShape{T1}{lmr}{bx}{sc}{<->ssub*cmr/bx/sc}{}
\usepackage[dvipsnames]{xcolor}
\setlength{\tabcolsep}{0pt}
\usepackage{enumitem}
\setlist{leftmargin=*, noitemsep, topsep=0.25em}
\usepackage[hidelinks]{hyperref}
\urlstyle{same}
\newcommand\textbox[1]{%
\parbox{.333\textwidth}{#1}%
}
\begin{document}
{\centering
\textbox{\href{mailto:[email protected]}{[email protected]}}%
\hfill {\huge \scshape {First Last}} \hfill%
\textbox{\hfill \href{https://www.linkedin.com/in/firstlast/}
{linkedin.com/in/firstlast}}\par
}
\vspace{-0.5em}
\hrulefill
\begin{minipage}[t]{0.15\textwidth}\vspace{-0.5em}%
{\color{Red} \textbf{\textsc{Education}}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.82\textwidth}\vspace{-0.5em}%
\vspace{-1pt}
\resumeheading{Example College}{Graduation Date}{Degree}
{Location}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit
\end{itemize}
\end{minipage}
\vspace{0.75em}
{\color{Red} \hrulefill}
\begin{minipage}[t]{0.15\textwidth}\vspace{-0.5em}%
{\color{Red} \textbf{\textsc{Work\\Experience}}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.82\textwidth}\vspace{-0.5em}%
\resumeheading{Company 1}{Start Date -- End Date}{Job Title}{Location}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit
\end{itemize}
\vspace{0.5em}
\resumeheading{Company 2}{Start Date -- End Date}{Job Title}{Location}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit
\end{itemize}
\end{minipage}
\vspace{0.75em}
{\color{Red} \hrulefill}
\begin{minipage}[t]{0.15\textwidth}\vspace{-0.5em}%
{\color{Red} \textbf{\textsc{Leadership}}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.82\textwidth}\vspace{-0.5em}%
\begin{tabular*}{\textwidth}[t]{l@{\extracolsep{\fill}}r}
\textbf{Organization 1} \textsl{\small Role} & {\small Start Date -- End Date}
\end{tabular*}
\begin{tabular*}{\textwidth}[t]{l@{\extracolsep{\fill}}r}
\textbf{Organization 2} \textsl{\small Role} & {\small Start Date -- End Date}
\end{tabular*}
\end{minipage}
\vspace{0.75em}
{\color{Red} \hrulefill}
\begin{minipage}[t]{0.15\textwidth}\vspace{-0.5em}%
{\color{Red} \textbf{\textsc{Skills}}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.82\textwidth}\vspace{-0.5em}%
\textbf{Languages}: JavaScript/HTML/CSS, Java, Python, C++, OCaml, SQL
\textbf{Frameworks}: Node.js
\textbf{Tools}: Git, Docker, Kubernetes
\end{minipage}
\end{document}
答案1
\documentclass[14pt]{extreport}
\usepackage[left=1.5cm,right=1.5cm,
top=1.5cm,bottom=2cm,bindingoffset=0cm]{geometry}
\usepackage{graphicx}
\usepackage{color}
\usepackage{tabularx}
\begin{document}
\noindent{\color{red} \rule{\linewidth}{0.2mm} }\\
\begin{minipage}[m]{0.15\textwidth}
\textcolor{red}{Proffesional Expirience}
\end{minipage}
\hfill
\begin{minipage}[m]{0.8\textwidth}
\begin{minipage}{0.5\textwidth}
\begin{flushleft}
\textbf{Facebook}\\
\textit{Software Engineer}
\end{flushleft}
\end{minipage}
\hfill
\begin{minipage}{0.5\textwidth}
\begin{flushright}
\textbf{August 2017 - present}\\
\textit{Menlo Park, CA}
\end{flushright}
\end{minipage}
\end{minipage}
\vspace{1cm}
\noindent{\color{red} \rule{\linewidth}{0.2mm} }\\
\begin{minipage}{0.15\textwidth}
\vspace{-3.1cm}
\includegraphics[width=1\linewidth]{amazon.jpg}
\end{minipage}
\hfill
\begin{minipage}{0.8\textwidth}
\begin{minipage}{0.5\textwidth}
\begin{flushleft}
\textbf{Amazon.com}\\
\begin{itemize}
\item text text text text text text text text
text text text
\item text text text text text text text text
text text text text
\end{itemize}
\end{flushleft}
\end{minipage}
\hfill
\begin{minipage}{0.5\textwidth}
\begin{flushright}
\textbf{August 2017 - present}\\
\textit{Menlo Park, CA}
\end{flushright}
\end{minipage}
\end{minipage}
\end{document}