任意物件的目錄

任意物件的目錄

我正在處理一個包含大量不同類型內容的文檔,需要在多個目錄中列出。

例如

Contents
Chapter 1........................1
  Section 1.1....................1
  Section 1.2....................2
Chapter 2.......................14

List of Figures
Figure 1.........................7
Figure 2........................15

List of Tables
Table 1..........................4
Table 5..........................8

List of ItemTypeA
Group I
  ItemTypeA Description............3
  ItemTypeA Description...........14
Group II
  ItemTypeA Description............5
  ItemTypeA Description...........52

Lit of ItemTypeB
Group I
  ItemTypeB Description............7
  ItemTypeB Description...........11
  ItemTypeB Description...........21

可以使用指令

\tableofcontents

\listoffigures

\listoftables

自動產生前三個目錄。

  • 如何將\lipsum類型物件(例如或幾段內容)包裝ItemType為單一單元並將其添加到個人化目錄中?

  • 我怎麼能顯示這樣的目錄?


編輯:我的問題不同於因為我需要支援每個自訂目錄中的某種程度的嵌套。

答案1

你可以使用這個tocloft包。文檔 ( texdoc tocloft) 部分2.4 新列表...描述如何建立新的內容清單、如何格式化條目以及如何標記文件中的條目。給了幾個例子。

相關內容