latex.book.preamblestart

- SourceForge
- Home Page
- Samples

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

Suggestions
Search:
Next: document.xml.language
Previous: latex.article.preamblestart Up: Variables and Templates used in LaTeX Preamble Generation

Reference Section

## Name

latex.book.preamblestart — Generate `\documentclass` for `books` [2.0.9]

## Synopsis

    <xsl:param name="latex.book.preamblestart">
    		<xsl:text>% ------------------------------------------------------------
    </xsl:text>
    		<xsl:text>% Autogenerated LaTeX file for books
    </xsl:text>
    		<xsl:text>% ------------------------------------------------------------
    </xsl:text>
    		<xsl:text>\ifx\pdfoutput\undefined
    </xsl:text>
    		<xsl:text>\documentclass[</xsl:text>
    		<xsl:value-of select="$latex.documentclass.common"/>
    		<xsl:text>,</xsl:text>
    		<xsl:value-of select="$latex.documentclass.book"/>
    		<xsl:text>,</xsl:text>
    		<xsl:value-of select="$latex.documentclass.pdftex"/>
    		<xsl:text>]{</xsl:text>
    		<xsl:choose>
    			<xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass"/></xsl:when>
    			<xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise>
    		</xsl:choose>
    		<xsl:text>}
    </xsl:text>
    		<xsl:text>\else
    </xsl:text>
    		<xsl:text>\documentclass[pdftex,</xsl:text>
    		<xsl:value-of select="$latex.documentclass.common"/>
    		<xsl:text>,</xsl:text>
    		<xsl:value-of select="$latex.documentclass.book"/>
    		<xsl:text>,</xsl:text>
    		<xsl:value-of select="$latex.documentclass.dvips"/>
    		<xsl:text>]{</xsl:text>
    		<xsl:choose>
    			<xsl:when test="$latex.documentclass!=''"><xsl:value-of select="$latex.documentclass"/></xsl:when>
    			<xsl:otherwise><xsl:text>report</xsl:text></xsl:otherwise>
    		</xsl:choose>
    		<xsl:text>}
    </xsl:text>
    		<xsl:text>\fi
    </xsl:text>
    	</xsl:param>

## B. Pertinent Variables

- latex.documentclass.common
- latex.documentclass.book
- latex.documentclass.pdftex
- latex.documentclass.dvips
- latex.documentclass

## A. Description

## G. Uses

Documented templates that use this parameter:

- generate.latex.book.preamble

Prev | Up | Next
latex.article.preamblestart | Home | document.xml.language