我有一份使用以下方式创建的简历resume.cls
。我有一个自定义nitemize
环境,以便删除文档本身内项目之间的分隔。在文档中,在我的实习之一下,我有小节,然后nitemize
每个小节下都有一个。我无法删除开头和结尾之间的空格nitemize
。
我已经阅读了针对我的问题的 Google 搜索结果的前三页,但似乎没有任何效果,我想这可能是因为我使用了不同的方法.cls
,或者是我缺少一些包或东西。
如果您需要查看该.cls
文件或我的.tex
文件,我很乐意提供。
以下是该文档的最小示例:
\documentclass[letterpaper]{resume}
\usepackage{paralist}
\definecolor{ruleendcolor}{rgb}{0.6, 0.6, 0.6}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\linespread{0}
\setlength{\parskip}{0\parsep}
\newenvironment{nitemize}{
\begin{itemize}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
}{
\end{itemize}
}
\begin{document}
\maketitle
\subsection{Linux Development}
\begin{nitemize}
\item Planned and designed a customized thin client OS based on Linux
\item Utilized a virtual environment to compare several different prototypes
\item Designed an unattended distribution method for customized Linux installs
\item Developed custom configuration scripts to simplify user experience
\item Facilitated initial user testing
\end{nitemize}
\subsection{Virtualized Infrastructure Analysis}
\begin{nitemize}
\item Maintained Navistar's Virtual Desktop Infrastructure using Citrix Desktop Studio and Microsoft VMM
\item Deployed packages using System Center Configuration Manager
\item Able to diagnose problems using knowledge of VLANs, Remote Distribution Points, Powershell Scripting
\item Made a proposal to implement Xen's dynamic resource allocation features to save money and provide a better user experience
\end{nitemize}
\end{document}
答案1
你可以借助enumitem
包裹。
将您的环境定义nitemize
为
\newenvironment{nitemize}{%
\begin{itemize}[topsep=0pt,itemsep=0pt,parsep=0pt]%
}{%
\end{itemize}%
}
和代码
\documentclass[letterpaper]{resume}
\usepackage{paralist}
\definecolor{ruleendcolor}{rgb}{0.6, 0.6, 0.6}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumitem}
\linespread{0}
%\setlength{\parskip}{0\parsep}
\newenvironment{nitemize}{%
\begin{itemize}[topsep=0pt,itemsep=0pt,parsep=0pt]%
}{%
\end{itemize}%
}
\begin{document}
\maketitle
\subsection{Linux Development}
\begin{nitemize}
\item Planned and designed a customized thin client OS based on Linux
\item Utilized a virtual environment to compare several different prototypes
\item Designed an unattended distribution method for customized Linux installs
\item Developed custom configuration scripts to simplify user experience
\item Facilitated initial user testing
\end{nitemize}
\subsection{Virtualized Infrastructure Analysis}
\begin{nitemize}
\item Maintained Navistar's Virtual Desktop Infrastructure using Citrix Desktop Studio and Microsoft VMM
\item Deployed packages using System Center Configuration Manager
\item Able to diagnose problems using knowledge of VLANs, Remote Distribution Points, Powershell Scripting
\item Made a proposal to implement Xen's dynamic resource allocation features to save money and provide a better user experience
\end{nitemize}
\end{document}
将输出
这是原始代码的结果
请注意,正如 Werner 指出的那样,你可以\newenvironment
用以下定义替换
\newlist{nitemize}{itemize}{1}
\setlist[nitemize]{topsep=0pt,itemsep=0pt,parsep=0pt,label=\textbullet}
哪个更排队与enumitem
包裹一起。
topsep=0pt,itemsep=0pt,parsep=0pt
用nosep
you also have进行替换partopsep=0pt
可以消除更多空间,但我不会这么做,因为结果(IMHO)不太好。