lot

- SourceForge
- Home Page
- Samples

- Reference Contents |
- Download & Install |
- User Guides |
- Notes, E-mail & Bugs |
- Q&A

Suggestions
Search:
Next: generate.latex.pagestyle
Previous: toc Up: Books and Articles book article.mod.xsl

Reference Section

## Name

lot — Generate and typeset a `toc` [2.0.9]

## Synopsis

    <xsl:template match="lot" name="lot">
    <xsl:param name="prefer">
    			<xsl:choose>
    				<xsl:when test="@condition!=''">
    					<xsl:value-of select="@condition"/>
    				</xsl:when>
    				<xsl:when test="@role!=''">
    					<xsl:value-of select="@role"/>
    				</xsl:when>
    				<xsl:otherwise>
    					<xsl:value-of select="@label"/>
    				</xsl:otherwise>
    			</xsl:choose>
    		</xsl:param>
      ...
    </xsl:template>

## A. Description

Produce a chapter-level table of contents in LaTeX.

## B. Pertinent Variables

There are no configuration variables for this template.

## C. Template Parameters

prefer

  LaTeX can provide `\listoffigures` and `\listoftables` by default. This parameter allows you to select which should be used. Recognised values are “figures” and “tables”. If the value is empty or not recognised, both lists will be output. By default, the value of the current node's non-empty `condition`, `role` or `label` attribute will be used.

## D. DocBook Compliance and LaTeX Notes

This template ignores its contents and instead invokes the LaTeX `\listoffigures` or `\listoftables` commands. You will need to run your typesetter at least twice, and possibly three times, to have the table of contents generated normally. The headers, footers, and chapter title will be generated by LaTeX.

## E. Samples and Tests

`test_lot_test1.pdf` from `test_lot/test1.xml`, `test_lot_test2.pdf` from `test_lot/test2.xml`, `test_lot_test3.pdf` from `test_lot/test3.xml`

## F. Further Reading

- latex.bridgehead.in.lot
- latex.noparskip
- latex.restoreparskip

## G. Variations

Variations on this template:

- toc

Prev | Up | Next
toc | Home | generate.latex.pagestyle