19.4.7 LaTeX Customization Variables

warning: LaTeX output customization is experimental. Nothing is decided, everything can change, and we would welcome any feedback.

This table gives the customization variables which apply to LaTeX output only.

CLASS_BEGIN_USEPACKAGE

If set, the corresponding text will replace the LaTeX \documentclass, package imports that are always output and are output right after \documentclass, and package imports that depend on the document encoding setting the input and font encoding (inputenc and fontenc).

The text replaced is along:

\documentclass{book}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[gen]{eurosym}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{etoolbox}
\usepackage{titleps}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
END_USEPACKAGE

If set, the corresponding text will replace the package imports that depend on the Texinfo commands used, and the last packages imports that are always output and output after all the other packages imports. The last package imports corresponds to ‘\usepackage[hidelinks]{hyperref}’.

Here is an example of the corresponding text for a document with indices, @need, @multitable, definition commands, @cartouche, lists, and @float:

\usepackage{imakeidx}
\usepackage{needspace}
\usepackage{array}
\usepackage{embrac}
\usepackage{expl3}
\usepackage{tabularx}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{enumitem}
\usepackage{float}
\usepackage[hidelinks]{hyperref}