如何避免每顆子彈之間的“空間”

如何避免每顆子彈之間的“空間”

我在每個項目符號後得到一個空行,我正在尋找一種方法來避免每行之間出現空行,或者至少使該空間行的高度更小。這是我所做的:

\documentclass [11pt] {article}
\usepackage{epsfig}
\usepackage{url}
\usepackage{epstopdf}
\input std-defs
\input EECE2323-header
\begin{document}
\noindent
\lab{3}{LAB3 }

%------------------------------------------------------------------------------

\section{Objective}
\begin{description}
  \item[$\cdot$ At the end of this lab you will:] 
  \item[\qquad $\bullet$ Add Shift operations and Branch operations to your ALU]
  \item[\qquad $\bullet$ Create a memory of 4 word deep, 9 bit wide to hold data]
  \item[\qquad $\bullet$ Learn about sequential logic]
  \item[\qquad $\bullet$ Assemble the complete Datapath ]
  \item[\qquad $\bullet$ Familiarize yourself with Xilinx device xc7z020clg484-1]
\end{description}

這是我得到的 pdf 的片段: 這是我得到的 pdf 的片段:

謝謝!

答案1

不要手動新增清單中每個項目的格式;讓列表格式自行處理:

在此輸入影像描述

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{Objective}
\begin{itemize}[label=$\cdot$,nosep]
  \item At the end of this lab you will:
  \begin{itemize}[label=\textbullet,nosep]
    \item Add Shift operations and Branch operations to your ALU
    \item Create a memory of 4 word deep, 9 bit wide to hold data
    \item Learn about sequential logic
    \item Assemble the complete Datapath
    \item Familiarize yourself with Xilinx device xc7z020clg484-1
  \end{itemize}
\end{itemize}
\end{document}

上面我用過enumitem將每個項目的 設定label為該特定等級。等級 1 的標籤設定為$\cdot$,等級 2 的標籤設定為\textbullet。這可以在全域範圍內調整/設置,但為了範例起見,我將其保留在本地。

透過使用清單選項,可以最大程度地抑制(或至少壓縮)每個項目之間的間隙nosepnoitemsep將在清單之間提供一些分隔(空間),但在同一清單中的項目之間不提供空間。

許多其他調整也是可能的(例如邊距/縮排),但這超出了問題的範圍。

相關內容