我正在尝试用部分样式来更改列表样式,但遇到了问题。
第一项和“Hello”之间似乎没有换行符
\documentclass{article}
\usepackage{enumitem}
\begin{document}
{\bf Hello:}
\begin{itemize}[noitemsep, nolistsep]
\item Autocomplete
\item Randomized queue and deque
\end{itemize}
{\bf Hello1:}
\begin{itemize}[noitemsep, nolistsep]
\item Autocomplete
\item Ramdomized queue and deque
\end{itemize}
\end{document}
但是这个解决方案在第一项和“Hello”之间添加了新行。
\documentclass{article}
\usepackage{enumitem}
\newenvironment{rSection}[1]{ % 1 input argument - section name
\sectionskip
\MakeUppercase{\bf #1} % Section title
\sectionlineskip
\hrule % Horizontal line
\begin{list}{}{ % List for each individual item in the section
\setlength{\leftmargin}{0em} % Margin within the section
}
\item[]
}{
\end{list}
}
\begin{document}
\begin{rSection}{University Projects}
{\bf Hello:}
\begin{itemize}[noitemsep, nolistsep]
\item Autocomplete
\item Ramdomized queue and deque
\end{itemize}
{\bf Hello1:}
\begin{itemize}[noitemsep, nolistsep]
\item Autocomplete
\item Ramdomized queue and deque
\end{itemize}
\end{rSection}
\end{document}
我从这里复制了一个 rSection 函数:https://tex.stackexchange.com/questions/156869/changing-heading-style-of-a-section#=
请帮我删除这一行空行。