latex.hyperref.preamble

- SourceForge
- Home Page
- Samples

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

Suggestions
Search:
Next: latex.math.preamble
Previous: latex.pdf.preamble Up: Variables and Templates used in LaTeX Preamble Generation

Reference Section

## Name

latex.hyperref.preamble — Manage the part of the preamble that handles the hyperref package.

## Synopsis

    <xsl:template name="latex.hyperref.preamble"/>

## A. Description

This template outputs the LaTeX code `\usepackage[...]{hyperref}` in order to use hyperlinks, backrefs and other goodies. If PDF support is activated, outputs laTeX code to detect whether the document is being compiled with `pdflatex` or `latex` to supply the right parameters (pdftex, dvips, etc). The package options should be optained from XSL variables.

Default Value with PDF support:

    				% --------------------------------------------
    				% Load hyperref package with pdf if needed
    				% --------------------------------------------
    				\ifpdf
    				\usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}
    				\else
    				\usepackage[bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}
    				\fi
    				% --------------------------------------------

Default Value without PDF support:

    				% --------------------------------------------
    				% Load hyperref package
    				% --------------------------------------------
    				\usepackage[bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage]{hyperref}

## B. Pertinent Variables

- latex.pdf.support
- latex.hyperref.param.common
- latex.hyperref.param.pdftex
- latex.hyperref.param.dvips

Prev | Up | Next
latex.pdf.preamble | Home | latex.math.preamble