在Latex使用條列式清單itemize , enumerate , description

在latex中有三種條列式方法 itemize  、 enumerate 、 discription很常被使用。

本文討論主題有:行距設定, 編號設定, 以及全文設定方式 

 

  • 排版之後, 每一條列項之前會有一文字或符號標籤(label)。在itemize 與enumerate 指令環境下,

     條列項之標籤有內定之符號,但也可以自行設定。description 指令環境之標籤則由使用者自行輸入。

  • 每個條列項底下可以再放一層,最多可放六層。


(1) 行距設定-項目與項目間的距離 :

    在begin{itemize}使用\itemsep 調整  -1pt即縮小1pt,1pt則增加1pt.

(2) 調整enumerate數字清單的編號

     參考文件: The enumerate package documentation

enumerate    預設的第一層是阿拉拍數字, 第二層是(a),(b),(c)

\documentclass{article}
\usepackage{enumerate}
\begin{document}
  \begin{enumerate}
    \item This is an example of \ldots
    \item \ldots the usual enumeration.
    \begin{enumerate}[a)]
      \item And this is a \ldots
      \item \ldots couple of \ldots
    \end{enumerate}
    \item
    \begin{enumerate}[-- i --]
      \item \ldots examples of \ldots
      \item \ldots custom-tailored \ldots
      \item \ldots enumerations.
      \newcounter{enumii_saved}
      \setcounter{enumii_saved}{\value{enumii}}
    \end{enumerate}
    Some general comments
    \begin{enumerate}[-- i --]
      \setcounter{enumii}{\value{enumii_saved}}
     如果要換另一個條列式項目, 但編號接續, 使用\newcounter{enumii_saved}來操作
 
      \item My next point.
      \setcounter{enumii}{7}
      使用setcounter{enumii}{數字}來指定編號號碼
      \item My eighth point.
    \end{enumerate}
  \end{enumerate}
\end{document}


(3) enumerate也可以在全文指令環境中調整預設值: 層、標籤格式

表示條列的層:\labelitemi  \labelitemii 
 
前者代表最外層之item指令環境;後者代表次一層之指令環境。再下一層之指令則為\labelitemiii..

此一指令環境之標籤是以阿拉伯數字或英文字母依序標出,控制指令有: \arabic, \roman, \Roman,與\Alph。譬如,

\renewcommand{\labelenumi}{\arabic{enumi})}


將把指令環境最外層之標籤改變成1), 2), . . .之形式。同理,下列指令則把標籤變成大寫羅馬字: I., II., . . . 。

\renewcommand{\labelenumi}{\Roman{enumi}}


(4) 設定每一層列舉條文的內縮距離 


第一層列舉項之內 縮距離是以\leftmargini 控制,

最後的字母i 代表第一層; 第二層列舉項則以\leftmarginii 控制

用法

在\begin{itemize}之前 先下兩行,表示第一層內縮7mm,第2層縮6mm


\leftmargini=7mm
\leftmarginii=6mm

转载于:https://www.cnblogs.com/dearjustine/archive/2010/04/05/1704508.html

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值