我是 LaTeX 新手,正在尝试创建简历。我知道有类似 moderncv 的替代方案,但我想尝试从头开始创建。
我希望日期显示在左侧,就像这样http://www.artbizblog.com/2010/11/tables-for-resume.html
有什么好方法可以做到这一点吗?
尝试在表内创建描述列表,但是不起作用。
\begin{tabular}{l|c}
\textbf{date should be here} &
\begin{description}
\item[item should be here]
description should be here
\end{description} \\
\end{tabular}
答案1
这是一个它的宏:
\documentclass[draft]{article}
\usepackage{enumitem}
\usepackage{kantlipsum}
\usepackage{xparse}
%%% syntax
%%% \cventry{<year>}{<item>}[<optional>|<description>]
\NewDocumentCommand\cventry{mmo}{%
\IfValueTF{#3}{%
\noindent
\begin{tabular*}{\textwidth}{@{}p{2cm}p{\dimexpr\linewidth-2cm-2\tabcolsep\relax}@{}}%
{\bfseries #1} & {%
\begin{minipage}[t]{\linewidth}%
\begin{description}[nolistsep,font=\sffamily\bfseries, leftmargin=*,style=nextline]%
\item[#2] \raggedright #3
\end{description}%
\end{minipage}%
}%
\end{tabular*}%
\par\addvspace{0.5\baselineskip}%
}%
{%
\noindent%
\begin{tabular*}{\textwidth}{@{}p{2cm}p{\dimexpr\linewidth-2cm-2\tabcolsep\relax}@{}}%
{\bfseries #1} & {%
\begin{minipage}[t]{\linewidth}%
\begin{description}[nolistsep,font=\sffamily\bfseries, leftmargin=*,style=nextline]%
\item[#2]
\end{description}%
\end{minipage}%
}%
\end{tabular*}%
\par\addvspace{0.5\baselineskip}%
}%
}%
\begin{document}
\cventry{2014}{Education}%[some text here]
\cventry{2014}{I worked some times}[As any dedicated reader can clearly see]
\end{document}