latex 使用 enumitem 宏包调整 enumerate 或 itemize 的上下左右缩进间距

调整 LaTeX 中的列表环境时,使用 enumitem 宏包可以方便的调整间距。
调整间距的参数命令包括两类。

1. 垂直间距

  • topsep       列表环境与上文之间的距离
  • parsep       条目里面段落之间的距离
  • itemsep       条目之间的距离
  • partopsep     条目与下面段落的距离

2. 水平间距

  • leftmargin       列表环境左边的空白长度
  • rightmargin       列表环境右边的空白长度
  • labelsep       标号与列表环境左侧的距离
  • itemindent       条目的缩进距离
  • labelwidth       标号的宽度
  • listparindent       条目下面段落的缩进距离

举例:

\usepackage{enumitem}

This is an example of enumitem spacing.
\begin{itemize}[itemsep= 15 pt,topsep = 20 pt]
    \item first item.
    
    contents.
    \item second item.
    
    contents.
    \item third item.
    
    contents.
\end{itemize}

效果:
在这里插入图片描述

下面一张图清晰的展示了不同间距的含义:
在这里插入图片描述

转载于:https://www.cnblogs.com/robinchen/p/11047533.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值