Next: , Previous: LaTeX cfg file, Up: Configurability

### 4.4 LaTeX sty file

With the XSLT parameter sty-file you can include an arbitrary LaTeX package instead of the default tbook-pl.sty. In this file you may change the default behaviour in a cleaner way than it is possible with a cfg file. But you have to pay attention to the following:

• If you change page layout (margins), you may only do so if it's no a gallery:

```
\ifgallery\else
\RequirePackage[...]{geometry}
\fi
```

See LaTeX cfg file, for a complete example.

• Notice that at the beginning of the document, the command \pagestyle{fancy} is included. This means that you should change the style of headers and footers using the fancyhdr package. You can assume that the fancyhdr package is already loaded.

• You may also change the creating of the title page in \MakeTitlePage in your sty file. The meaning of the parameters and a template for it can be found in tbook.sty.

You can give the name of the desired LaTeX package in the class attribute of your top-level element. So if you say

```<book class="mystyle.sty">
...
```

then mystyle.sty is included, and not the default tbook-pl.sty. The file extension .sty in the class attribute is mandatory, otherwise it's ignored in the LaTeX output. However, an explicit sty-file parameter on the command line has the highest priority.