减少项目符号和子项目符号之间的间距

减少项目符号和子项目符号之间的间距

这是我的代码:

\documentclass[a4paper,10pt]{article}
\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\usepackage{graphicx}
\usepackage{url}
\usepackage{palatino}
\usepackage{tabularx}
\usepackage{enumitem}
\usepackage{pifont}

\begin{itemize}
    \item \textbf{Cluster Middleware}
    %%%%%%%%%%%%% Decrease space here %%%%%%%%%%%
        \begin{itemize}
            \item{Designed a cluster middleware for distributed processing and storage, being fault tolerant}
        \end{itemize}
\end{itemize}

它看起来是这样的: 党卫军 有没有办法改变这个间距?任何帮助都将不胜感激。

答案1

topsep子项的长度可以改变:

\documentclass[a4paper,10pt]{article}
\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\usepackage{graphicx}
\usepackage{url}
\usepackage{palatino}
\usepackage{tabularx}
\usepackage{enumitem}
\usepackage{pifont}

\begin{document}

\begin{itemize}
    \item \textbf{Cluster Middleware}
    %%%%%%%%%%%%% Decrease space here %%%%%%%%%%%
        \begin{itemize}[topsep=-5pt]
            \item{Designed a cluster middleware for distributed processing and storage, being fault tolerant}
        \end{itemize}
\end{itemize}

\end{document}

答案2

如果您指的是减少水平和垂直间距,则可以这样做:

\documentclass[a4paper,10pt]{article}
\usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry}
\usepackage{graphicx}
\usepackage{url}
\usepackage{palatino}
\usepackage{tabularx}
\usepackage{textcomp}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\setlist[itemize, 2]{label=$\circ$, wide= 0pt, nosep, itemsep=2pt}
\usepackage{pifont}

\begin{document}

\begin{itemize}

    \item \textbf{Cluster Middleware}
    %%%%%%%%%%%%% Decrease space here %%%%%%%%%%%
        \begin{itemize}
            \item Designed a cluster middleware for distributed processing and storage, being fault tolerant
        \end{itemize}
    \item \textbf{Park EZ}
        \begin{itemize}
            \item A smart parking appt which helps in finding and booking a parking spot.
            \item Updates the user in real time about the status of the parking spot using ultrasonic sensors.
        \end{itemize}
\end{itemize}

\end{document} 

在此处输入图片描述

相关内容