3 Automation tools

  • The most common automation tool is numbering, such as page numbers, chapter numbers, etc., which have been seen earlier.
  • More important automated layouts include catalogs, cross-references, references and vocabulary index tables,
  • Some can directly use the TX typesetting engine to complete the work, and some require other external programs.
    • These automated tools are also especially talked about by X

3.1 Master Record

3.1.1 Directory and chart directory

  • \ tableofcontents output

Insert picture description here

  • In the article, the format of the table of contents header is equivalent to a section starting with \ section: *,
  • In the report and book categories, the format of the directory title is equivalent to a chapter starting with \ chapter *, and the format of the directory title can be controlled according to the method in section 2.3.4.
  • \ listoffigures and \ listoftables collect the chart titles of the \ Caption command in the figure environment and table environment, and generate the table of contents of the table, the format is similar to the chapter table.

  • To generate the correct chapter catalog and chart catalog, you must compile the ex file at least twice without modifying the content

3.1.2 Control directory content

  • The principle of generating a directory.
  • Unlike many "advanced" typesetting tools that generate directories through special styles and search extraction functions, latex is implemented through a simple auxiliary file (see Figure 3.1).
  • When using chapter commands such as \ chapter, \ section,
    • The latex engine also writes the chapter number and title into a directory file with the extension .toc,
    • When encountering \ tableofcontents, latex will read the catalog file (if it exists) and generate the catalog.

Insert picture description here

  • The picture directory is a directory file with an extension of .lof,
  • The table directory is realized by a directory file with the extension .lot.

Insert picture description here

  • Three commands define each directory item,
    • The three parameters are directory level, numbered title and page number,
    • They are generated by the two \ sections in Example 3-1-1
    • \ numberline is used to output chapter numbers in \ contentsline.

Published 589 original articles · 300 praises · 80,000 + views

Guess you like

Origin blog.csdn.net/zhoutianzi12/article/details/105562878