良好的通用 LaTeX 风格实践

良好的通用 LaTeX 风格实践

我刚刚用 LaTeX 创建了我的第一份文档(一份简历),虽然我熟悉编程的良好做法,但我不熟悉 LaTeX 等标记语言的良好做法。以下是我的简历代码(内容已编辑以保护隐私)。

我想知道我使用的哪些样式/格式做法是好的,哪些是坏的。例如,我猜用$\bullet$ .... \\代替itemize不是一个好的做法,但我不确定如何在不创建列表和列表上方内容之间的额外空间的情况下嵌入itemize一个cvlist

\documentclass[11pt,a4paper,oneside]{report}
% margins
\usepackage[top=1in, bottom=1in, left=0.5in, right=0.5in]{geometry}
% arranging headers spacing
\newcommand\textbox[1]{\parbox{.333\textwidth}{#1}}
\usepackage[NoDate, LabelsAligned]{currvita}
\usepackage{enumitem}

\begin{document}

% remove page number
\pagestyle{empty}

\begin{cv}{}
% distance between labels and body
\setlength{\cvlabelwidth}{22mm}

% heading
\noindent\textbox{Term Address:\hfill}\textbox{\hfil \LARGE \textbf{Name}\hfil}\textbox{\hfill Home Address:}\\
\noindent\textbox{Street \hfill}\textbox{\hfil [email protected] \hfil}   \textbox{\hfill Street}\\
\noindent\textbox{City \hfill}\textbox{\hfil (555)-555-5555 \hfil}\textbox{\hfill Address}

% horizontal line
\noindent\rule{\textwidth}{0.3mm}

% Education
\begin{cvlist}{}
\item[\textbf{Education}]
\textbf{School} \hfill Cambridge, MA\\
\textit{Candidate for Bachelor of Science in Everything} \hfill June 2099 (expected)\\
Relevant Coursework: Cooking (Fall `13), Puppetry \hfill GPA: 5.0/5.0\\
for Fun (Fall `13), Probability and Stuff (Fall `13),\\
Differential Differentiation
\end{cvlist}

% Experience
\begin{cvlist}{}
\item[\textbf{Experience}]
\textbf{Company} \hfill City\\
\textit{Position} \hfill June - August 2015\\
$\bullet$ Task\\
$\bullet$ Task

\textbf{Company} \hfill City\\
\textit{Position} \hfill January - May 1908\\
$\bullet$ Task\\
$\bullet$ Task\\
$\bullet$ Task
\end{cvlist}

%Leadership
\begin{cvlist}{}
\item[\textbf{Leadership}]
\textbf{Organization} \hfill City\\
\textit{Position} \hfill August 2000 - present\\
$\bullet$ Task\\
$\bullet$ Task

\textbf{Program} \hfill City \\
\textit{Position} \hfill August 2055 - present\\
$\bullet$ Task\\
$\bullet$ Task

\textbf{Organization} \hfill City\\
\textit{Position} \hfill December 1856 - June 2010\\
$\bullet$ Task\\
$\bullet$ Task\\
$\bullet$ Task
\end{cvlist}

%Skills
\begin{cvlist}{}
\item[\textbf{Skills}]
 Everything, \LaTeX
\end{cvlist}

\end{cv}

\end{document}

答案1

更详细的解释,请从终端enumitem调用阅读手册。texdoc enumitem

\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{enumitem}

\begin{document}
My compact items:
\begin{itemize}[leftmargin=0pt,noitemsep]
  \item haha
  \item hihi
  \item hoho
\end{itemize}

My more compact items:
\begin{itemize}[nolistsep]
  \item haha
  \item hihi
  \item hoho
\end{itemize}
\end{document}

在此处输入图片描述

相关内容