2 <!--#############################################################################
3 | $Id: vars.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
4 |- #############################################################################
7 | PURPOSE: User and stylesheets XSL variables
8 + ############################################################################## -->
10 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
12 exclude-result-prefixes="doc" version='1.0'>
15 <doc:reference id="vars" xmlns="">
17 <releaseinfo role="meta">
18 $Id: vars.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
21 <author><surname>Casellas</surname><firstname>Ramon</firstname></author>
22 <author><surname>Devenish</surname><firstname>James</firstname></author>
25 <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
26 <holder>Ramon Casellas</holder>
30 <title>XSL Variables and Parameters</title>
33 <section><title>Introduction</title>
35 <para>This is technical reference documentation for the DocBook XSL
36 Stylesheets. It documents (some of) the parameters, templates, and
37 other elements of the stylesheets.</para>
43 <!--#############################################################################
45 |- #############################################################################
48 + ############################################################################## -->
49 <xsl:variable name="default-classsynopsis-language">java</xsl:variable>
51 <xsl:variable name="author.othername.in.middle" select="1"/>
52 <xsl:variable name="refentry.xref.manvolnum" select="1"/>
53 <xsl:variable name="funcsynopsis.style">kr</xsl:variable>
54 <xsl:variable name="funcsynopsis.decoration" select="1"/>
55 <xsl:variable name="function.parens">0</xsl:variable>
56 <xsl:variable name="refentry.generate.name" select="1"/>
58 <doc:param name="show.comments" xmlns="">
59 <refpurpose> Display <sgmltag class="element">comment</sgmltag> elements? </refpurpose>
61 <para>Control the display of <sgmltag class="element">comment</sgmltag>s and <sgmltag class="element">remark</sgmltag>s.</para>
64 <xsl:param name="show.comments" select="1"/>
66 <xsl:variable name="section.autolabel" select="1"/>
67 <xsl:variable name="section.label.includes.component.label" select="0"/>
68 <xsl:variable name="chapter.autolabel" select="1"/>
69 <xsl:variable name="preface.autolabel" select="0"/>
70 <xsl:variable name="part.autolabel" select="1"/>
71 <xsl:variable name="qandadiv.autolabel" select="1"/>
72 <xsl:variable name="autotoc.label.separator" select="'. '"/>
73 <xsl:variable name="qanda.inherit.numeration" select="1"/>
74 <xsl:variable name="qanda.defaultlabel">number</xsl:variable>
75 <xsl:param name="biblioentry.item.separator">, </xsl:param>
76 <doc:param name="toc.section.depth" xmlns="">
77 <refpurpose> Cull table-of-contents entries that are deeply nested </refpurpose>
79 <para>Specifies the maximum depth before sections are omitted from the table of contents.</para>
82 <xsl:param name="toc.section.depth">4</xsl:param>
84 <doc:param name="section.depth" xmlns="">
85 <refpurpose> Control the automatic numbering of section, parts, and chapters </refpurpose>
88 Specifies the maximum depth before sections cease to be uniquely numbered.
89 This is passed to LaTeX using the <literal>secnumdepth</literal> counter.
90 Therefore, it is possible to use a value of <quote>0</quote> (zero) to disable section numbering.
91 A value of <quote>-1</quote> will disable the numbering of parts and chapters, too.
95 <xsl:param name="section.depth">4</xsl:param>
96 <xsl:variable name="graphic.default.extension"></xsl:variable>
97 <xsl:variable name="check.idref">1</xsl:variable>
99 <xsl:variable name="link.mailto.url"></xsl:variable>
100 <xsl:variable name="toc.list.type">dl</xsl:variable>
103 <doc:param name="use.role.for.mediaobject" xmlns="">
104 <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose>
106 <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">figure</sgmltag> contains
107 multiple <sgmltag class="element">mediaobject</sgmltag>s. When enabled, DB2LaTeX will choose
108 the mediaobject with the "LaTeX" or "TeX" role, if present. Otherwise, the first mediaobject
112 <xsl:param name="use.role.for.mediaobject">1</xsl:param>
114 <doc:param name="preferred.mediaobject.role" xmlns="">
115 <refpurpose> Control <sgmltag class="element">mediaobject</sgmltag> selection methods </refpurpose>
117 <para>When <xref linkend="param.use.role.for.mediaobject"/> is enabled, this variable
118 can be used to specify the mediaobject role that your document uses for LaTeX output.
119 DB2LaTeX will try to use this role before using the "LaTeX" or "TeX" roles.
120 For example, some authors may choose to set this to "PDF".</para>
123 <xsl:param name="preferred.mediaobject.role"></xsl:param>
125 <doc:param name="formal.title.placement" xmlns="">
126 <refpurpose> Specifies where formal object titles should occur </refpurpose>
129 Titles for the formal object types (figure, example, quation, table, and procedure)
130 can be placed before or after those objects. The keyword <quote>before</quote>
131 is recognised. All other strings qualify as <quote>after</quote>.
135 <xsl:param name="formal.title.placement">
143 <doc:param name="insert.xref.page.number" xmlns="">
144 <refpurpose> Control the appearance of page numbers in cross references </refpurpose>
147 When enabled, <sgmltag class="element">xref</sgmltag>s will include page
148 numbers after their generated cross-reference text.
152 <xsl:param name="insert.xref.page.number">0</xsl:param>
154 <doc:param name="ulink.show" xmlns="">
155 <refpurpose> Control the display of URLs after ulinks </refpurpose>
158 When this option is enabled, and a ulink has a URL that is different
159 from the displayed content, the URL will be typeset after the content.
160 If the URL and content are identical, only one of them will appear.
161 Otherwise, the URL is hyperlinked and the content is not.
165 <xsl:param name="ulink.show">0</xsl:param>
167 <doc:param name="ulink.footnotes" xmlns="">
168 <refpurpose> Control the generation of footnotes for ulinks </refpurpose>
171 When this option is enabled, a ulink that has content different to its
172 URL will have an associated footnote. The contents of the footnote
173 will be the URL. If the ulink is within a footnote, the URL is shown
178 <xsl:param name="ulink.footnotes">0</xsl:param>
180 <!--#############################################################################
182 |- #############################################################################
185 | PURPOSE: User and stylesheets XSL variables
186 + ############################################################################## -->
188 <doc:param name="latex.override" xmlns="">
189 <refpurpose> Override DB2LaTeX's preamble with a custom preamble. </refpurpose>
192 When this variable is set, the entire DB2LaTeX premable will be superseded.
193 <emphasis>You should not normally need or want to use this.</emphasis>
194 It may cause LaTeX typesetting problems. This is a last resort or
195 <quote>expert</quote> feature.
199 <xsl:param name="latex.override"></xsl:param>
201 <doc:param name="latex.entities" xmlns="">
202 <refpurpose> Control Unicode character handling. </refpurpose>
205 Normally, XSLT processors will convert SGML character entities into
206 Unicode characters and DB2LaTeX doesn't have much chance to do anything
207 toward converting them to LaTeX equivalents. We do not yet know how we
208 can solve this problem best.
211 Proposed values: 'catcode', 'unicode', 'extension'.
212 Currently only 'catcode' is supported. All other values will
213 cause no special handling except for certain mappings in MathML.
214 In future, perhaps the 'unicode' LaTeX package could be of assistance.
215 'Extension' could be an XSLT extension that handles the characters
216 using a mapping table.
220 <xsl:param name="latex.entities"></xsl:param>
222 <doc:param name="latex.alt.is.latex" xmlns="">
223 <refpurpose> Control the escaping of <sgmltag class="element">alt</sgmltag> text </refpurpose>
226 Text within <sgmltag class="element">alt</sgmltag> elements is assumed to
227 be valid LaTeX and is passed through unescaped by default. If this is not
228 appropriate for your document, set this variable to something other than
233 <xsl:param name="latex.alt.is.latex">1</xsl:param>
235 <doc:param name="latex.alt.is.preferred" xmlns="">
236 <refpurpose> Control the use of <sgmltag class="element">alt</sgmltag> text </refpurpose>
239 By default, DB2LaTeX assumes that <sgmltag class="element">alt</sgmltag>
240 text should be typeset in preference to any
241 <sgmltag class="element">mediaobject</sgmltag>s.
245 <xsl:param name="latex.alt.is.preferred">1</xsl:param>
248 <doc:variable name="latex.figure.position" xmlns="">
249 <refpurpose> How to place floats. </refpurpose>
252 This variable is used as the positioning argument for floats.
253 In future, this may be replaced by a dynamic mechanism that can
254 honour DocBook placement attributes.
258 <xsl:variable name="latex.figure.position">[hbt]</xsl:variable>
261 <doc:param name="latex.apply.title.templates" xmlns="">
262 <refpurpose> Whether to apply templates for section titles. </refpurpose>
265 Controls whether section titles will be generated by
266 applying templates or by conversion to string values.
267 When enabled, templates will be applied. This enables template
268 expression in titles but may have problematic side-effects such
273 This variable does not influence all <sgmltag class="element">title</sgmltag>
274 elements. Some may have their own variables or not be configurable.
279 <xsl:param name="latex.apply.title.templates">1</xsl:param>
285 <doc:param name="latex.apply.title.templates.admonitions" xmlns="">
286 <refpurpose> Whether to apply templates for admonition titles. </refpurpose>
289 Controls whether admonition titles will be generated by
290 applying templates or by conversion to string values.
291 When enabled, templates will be applied.
295 <xsl:param name="latex.apply.title.templates.admonitions">1</xsl:param>
302 <doc:param name="latex.graphics.formats" xmlns="">
303 <refpurpose> Control <sgmltag class="element">imagedata</sgmltag> selection. </refpurpose>
305 <para>This controls how DB2LaTeX behaves when a <sgmltag class="element">mediaobject</sgmltag> contains
306 multiple <sgmltag class="element">imagedata</sgmltag>. When non-empty, DB2LaTeX will exclude
307 imagedata that have a format no listed within this variable.</para>
310 <xsl:param name="latex.graphics.formats"></xsl:param>
317 <doc:param name="latex.caption.swapskip" xmlns="">
318 <refpurpose> Improved typesetting of captions </refpurpose>
321 DB2LaTeX supports <link linkend="param.formal.title.placement">$formal.title.placement</link>
322 as a mechanism for choosing whether captions will appear above or below the objects they describe.
324 ($formal.title.placement is described in the <ulink
325 url="http://docbook.sourceforge.net/release/xsl/current/doc/html/formal.title.placement.html">DocBook
326 XSL Stylesheet HTML Parameter Reference</ulink>.)
328 However, LaTeX will often produce an ugly result when captions occur
329 above their corresponding content. This usually arises because of
330 unsuitable \abovecaptionskip and \belowcaptionskip.
333 This variable, when set to '1', authorises DB2LaTeX to swap the caption
334 'skip' lengths when a caption is placed <emphasis>above</emphasis> its
335 corresponding content. This is enabled by default.
339 <xsl:param name="latex.caption.swapskip">1</xsl:param>
345 <doc:param name="latex.titlepage.file" xmlns="">
346 <refpurpose> DB2LaTeX allows using an (externally generated) cover page </refpurpose>
349 You may supply a LaTeX file that will supersede DB2LaTeX's default
350 cover page or title. If the value of this variable is non-empty, the
351 generated LaTeX code includes \input{filename}. Otherwise, it uses the
355 Bear in mind that using an external cover page breaks the
356 "encapsulation" of DocBook. Further revisions of these stylesheets
357 will add chunking support, and the automation of the cover file
362 <xsl:param name="latex.titlepage.file">title</xsl:param>
367 <doc:param name="latex.documentclass" xmlns="">
368 <refpurpose> DB2LaTeX document class </refpurpose>
371 This variable is normally empty and the stylesheets will determine
372 the correct document class according to whether the document is a
373 book or an article. If you wish to use your own document class,
374 put its non-empty value in this variable. It will apply for both
379 <xsl:param name="latex.documentclass"></xsl:param>
381 <doc:param name="latex.documentclass.common" xmlns="">
382 <refpurpose> DB2LaTeX document class options </refpurpose>
385 These are the first options to be passed to <literal>\documentclass</literal>
386 The common options are set to <literal>french,english</literal> by default.
387 They will be augmented or superseded by article/book options (see $latex.documentclass.article and $latex.documentclass.book) and pdftex/dvips options (see $latex.documentclass.pdftex and $latex.documentclass.dvips).
391 <xsl:param name="latex.documentclass.common">french,english</xsl:param>
393 <doc:param name="latex.documentclass.article" xmlns="">
394 <refpurpose> DB2LaTeX document class options for articles</refpurpose>
397 The article options are set to <literal>a4paper,10pt,twoside,twocolumn</literal> by default.
398 These are the intermediate options to be passed to <literal>\documentclass</literal>,
399 between the common options and the pdftex/dvips options.
403 <xsl:param name="latex.documentclass.article">a4paper,10pt,twoside,twocolumn</xsl:param>
405 <doc:param name="latex.documentclass.book" xmlns="">
406 <refpurpose> DB2LaTeX document class options for books</refpurpose>
409 The book options are set to <literal>a4paper,10pt,twoside,openright</literal> by default.
410 These are the intermediate options to be passed to <literal>\documentclass</literal>,
411 between the common options and the pdftex/dvips options.
415 <xsl:param name="latex.documentclass.book">a4paper,10pt,twoside,openright</xsl:param>
417 <doc:param name="latex.documentclass.pdftex" xmlns="">
418 <refpurpose> DB2LaTeX document class options for pdfTeX output</refpurpose>
421 The pdfTeX options are empty by default.
422 These are the last options to be passed to <literal>\documentclass</literal>
423 and override the common/article/book options.
427 <xsl:param name="latex.documentclass.pdftex"></xsl:param>
429 <doc:param name="latex.documentclass.dvips" xmlns="">
430 <refpurpose> DB2LaTeX document class options for dvips output</refpurpose>
433 The dvips options are empty by default.
434 These are the last options to be passed to <literal>\documentclass</literal>
435 and override the common/article/book options.
439 <xsl:param name="latex.documentclass.dvips"></xsl:param>
441 <doc:param name="latex.admonition.path" xmlns="">
442 <refpurpose> LaTeX location for admonition graphics </refpurpose>
444 <para>The file path that will be passed to LaTeX in order to find admonition graphics.</para>
445 <para>An empty value suppresses the use of admonition graphics.</para>
446 <para>If your figures are in <quote>the current directory</quote> then use a value of
447 <quote>.</quote> (i.e. the full stop or period on its own) to signify this.</para>
450 <xsl:param name="latex.admonition.path">figures</xsl:param>
453 <doc:param name="latex.admonition.imagesize" xmlns="">
454 <refpurpose> DB2LaTeX graphics admonitions size</refpurpose>
457 Is passed as an optional parameter for <literal>\includegraphics</literal> and
458 can take on any such legal values (or be empty).
462 <xsl:param name="latex.admonition.imagesize">width=1cm</xsl:param>
466 <xsl:param name="latex.chapter.label">1</xsl:param>
468 <doc:param name="latex.chapter.hypertarget" xmlns="">
469 <refpurpose> Hypertarget Chapters </refpurpose>
475 <xsl:param name="latex.chapter.hypertarget">1</xsl:param>
479 <doc:param name="latex.biblio.output" xmlns="">
480 <refpurpose> Control which references are cited in the bibliography </refpurpose>
483 The DB2LaTeX generated bibliography (bibitems) may either
484 include all biblioentries found in the document, or only thee ones explicitly
485 cited with <sgmltag class="element">citation</sgmltag>.
487 <para>Two values are possible: <quote>all</quote> or <quote>cited</quote>.</para>
490 <xsl:param name="latex.biblio.output">all</xsl:param>
493 <doc:param name="latex.bibfiles" xmlns="">
495 Control the output of the \bibliography{.bib}.
498 <para>The value of this parameter is output.</para>
499 <para>An example is <quote><filename>citations.bib</filename></quote>,
500 if your BibTeX file has that name.</para>
503 <xsl:param name="latex.bibfiles"></xsl:param>
506 <doc:param name="latex.bibwidelabel" xmlns="">
507 <refpurpose> Adjust bibliography formatting </refpurpose>
509 <para>The environment bibliography accepts a parameter that indicates
510 the widest label, which is used to correctly format the bibliography
511 output. The value of this parameter is output inside the
512 <literal>\begin{thebibliography[]}</literal> LaTeX command.</para>
515 <xsl:param name="latex.bibwidelabel">WIDELABEL</xsl:param>
518 <xsl:variable name="latex.dont.label">0</xsl:variable>
519 <xsl:variable name="latex.dont.hypertarget">0</xsl:variable>
522 <doc:param name="latex.use.ucs" xmlns="">
523 <refpurpose> Choose whether to use the <productname>unicode</productname> LaTeX package</refpurpose>
524 <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription>
526 <xsl:param name="latex.use.ucs">0</xsl:param>
528 <doc:param name="latex.ucs.options" xmlns="">
529 <refpurpose>Select the optional parameter(s) for the <productname>unicode</productname> LaTeX package</refpurpose>
530 <refdescription><para>See the <productname>unicode</productname> documentation for details.</para></refdescription>
532 <xsl:param name="latex.ucs.options"></xsl:param>
534 <doc:param name="latex.babel.language" xmlns="">
535 <refpurpose>Select the optional parameter for the <productname>babel</productname> LaTeX package</refpurpose>
536 <refdescription><para>See the <productname>babel</productname> documentation for details.</para></refdescription>
538 <xsl:param name="latex.babel.language">french</xsl:param>
540 <doc:param name="latex.use.isolatin1" xmlns="">
541 <refpurpose>Toggle the use of the <productname>isolatin1</productname> LaTeX package</refpurpose>
543 <xsl:variable name="latex.use.isolatin1">1</xsl:variable>
545 <doc:param name="latex.use.hyperref" xmlns="">
546 <refpurpose>Toggle the use of the <productname>hyperref</productname> LaTeX package</refpurpose>
547 <refdescription><para>This is used extensively for hyperlinking within documents.</para></refdescription>
549 <xsl:variable name="latex.use.hyperref">1</xsl:variable>
551 <doc:param name="latex.use.fancybox" xmlns="">
552 <refpurpose>Toggle the use of the <productname>fancybox</productname> LaTeX package</refpurpose>
553 <refdescription><para>This is essential for admonitions.</para></refdescription>
555 <xsl:variable name="latex.use.fancybox">1</xsl:variable>
557 <doc:param name="latex.use.fancyvrb" xmlns="">
558 <refpurpose>Toggle the use of the <productname>fancyvrb</productname> LaTeX package</refpurpose>
559 <refdescription><para>Provides support for tabbed whitespace in verbatim environments.
560 See also <xref linkend="param.latex.fancyvrb.tabsize"/>.</para></refdescription>
562 <xsl:param name="latex.use.fancyvrb">1</xsl:param>
564 <doc:param name="latex.fancyvrb.tabsize" xmlns="">
565 <refpurpose>Choose indentation for tabs in verbatim environments</refpurpose>
566 <refdescription><para>When <xref linkend="param.latex.use.fancyvrb"/> is enabled,
567 this variable sets the width of a tab in terms of an equivalent number of spaces.</para></refdescription>
569 <xsl:param name="latex.fancyvrb.tabsize">3</xsl:param>
571 <doc:param name="latex.use.fancyhdr" xmlns="">
572 <refpurpose>Toggle the use of the <productname>fancyhdr</productname> LaTeX package</refpurpose>
573 <refdescription><para>Provides page headers and footers. Disabling support for
574 this package will make headers and footer go away.</para></refdescription>
576 <xsl:param name="latex.use.fancyhdr">1</xsl:param>
578 <doc:param name="latex.use.parskip" xmlns="">
579 <refpurpose>Toggle the use of the <productname>parskip</productname> LaTeX package</refpurpose>
580 <refdescription><para>Support a <quote>block</quote> paragraph style as opposed to
581 <quote>indented</quote>.</para></refdescription>
583 <xsl:param name="latex.use.parskip">0</xsl:param>
585 <doc:param name="latex.use.subfigure" xmlns="">
586 <refpurpose>Toggle the use of the <productname>subfigure</productname> LaTeX package</refpurpose>
587 <refdescription><para>Used to provide nice layout of multiple mediaobjects in figures.</para></refdescription>
589 <xsl:param name="latex.use.subfigure">1</xsl:param>
591 <doc:param name="latex.use.rotating" xmlns="">
592 <refpurpose>Toggle the use of the <productname>rotating</productname> LaTeX package</refpurpose>
594 <xsl:param name="latex.use.rotating">1</xsl:param>
596 <doc:param name="latex.use.tabularx" xmlns="">
597 <refpurpose>Toggle the use of the <productname>tabularx</productname> LaTeX package</refpurpose>
598 <refdescription><para>Used to provide certain table features. Has some incompatabilities
599 with packages, but also solves some conflicts that the regular tabular
600 environment has.</para></refdescription>
602 <xsl:param name="latex.use.tabularx">1</xsl:param>
604 <doc:param name="latex.use.umoline" xmlns="">
605 <refpurpose>Toggle the use of the <productname>umoline</productname> LaTeX package</refpurpose>
606 <refdescription><para>Provide underlining.</para></refdescription>
608 <xsl:param name="latex.use.umoline">0</xsl:param>
610 <doc:param name="latex.use.url" xmlns="">
611 <refpurpose>Toggle the use of the <productname>url</productname> LaTeX package</refpurpose>
612 <refdescription><para>Provide partial support for hyperlinks.</para></refdescription>
614 <xsl:param name="latex.use.url">1</xsl:param>
616 <doc:param name="latex.use.makeidx" xmlns="">
617 <refpurpose>Toggle the use of the <productname>makeidx</productname> LaTeX package</refpurpose>
618 <refdescription><para>Support index generation.</para></refdescription>
620 <xsl:param name="latex.use.makeidx">1</xsl:param>
622 <doc:param name="latex.hyphenation.tttricks" xmlns="">
623 <refpurpose> DB2LaTeX hyphenation linebreak tricks </refpurpose>
626 Usually, LaTeX does not perform hyphenation in <quote>teletype</quote> (monospace)
627 text. This can lead to formatting problems. But certain monospace texts, such as
628 URLs and filenames, have <quote>natural</quote> breakpoints such as full stops
629 and slashes. DB2LaTeX's <quote>tttricks</quote> exploit a hyphenation trick in
630 order to provide line wrapping in the middle of monospace text. Set this to '1'
631 to enable these tricks (they are not enabled by default). See also the FAQ.
635 <xsl:variable name="latex.hyphenation.tttricks">0</xsl:variable>
637 <doc:param name="latex.hyperref.param.common" xmlns="">
638 <refpurpose> DB2LaTeX hyperref options</refpurpose>
641 The hyperref options are set to <literal>bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</literal> by default.
642 You may wish to specify additional options using <literal>latex.hyperref.param.pdftex</literal>
643 or <literal>latex.hyperref.param.dvips</literal>.
647 <xsl:variable name="latex.hyperref.param.common">bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage</xsl:variable>
649 <doc:param name="latex.hyperref.param.pdftex" xmlns="">
650 <refpurpose> DB2LaTeX hyperref options for pdfTeX output</refpurpose>
653 This variable is empty by default. See the hyperref documentation for further information.
657 <xsl:variable name="latex.hyperref.param.pdftex">pdfstartview=FitH</xsl:variable>
659 <doc:param name="latex.hyperref.param.dvips" xmlns="">
660 <refpurpose> DB2LaTeX hyperref options for dvips output</refpurpose>
663 This variable is empty by default. See the hyperref documentation for further information.
667 <xsl:variable name="latex.hyperref.param.dvips"></xsl:variable>
669 <xsl:variable name="latex.fancyhdr.lh">Left Header</xsl:variable>
670 <xsl:variable name="latex.fancyhdr.ch">Center Header</xsl:variable>
671 <xsl:variable name="latex.fancyhdr.rh">Right Header</xsl:variable>
672 <xsl:variable name="latex.fancyhdr.lf">Left Footer</xsl:variable>
673 <xsl:variable name="latex.fancyhdr.cf">Center Footer</xsl:variable>
674 <xsl:variable name="latex.fancyhdr.rf">Right Footer</xsl:variable>
676 <doc:param name="latex.step.title.style" xmlns="">
677 <refpurpose> Control the style of step titles </refpurpose>
679 <para>Step titles are typeset in small caps but if
680 this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
681 that command will precede the title and it will be typeset accordingly.</para>
684 <xsl:variable name="latex.step.title.style">\bf</xsl:variable>
686 <doc:param name="latex.book.article.title.style" xmlns="">
687 <refpurpose> Control the style of article titles within books </refpurpose>
691 <xsl:variable name="latex.book.article.title.style">\Large\textbf</xsl:variable>
693 <doc:param name="latex.article.title.style" xmlns="">
694 <refpurpose> Control the style of article titles </refpurpose>
698 <xsl:variable name="latex.article.title.style">\textbf</xsl:variable>
700 <doc:param name="latex.pagestyle" xmlns="">
701 <refpurpose> Override DB2LaTeX's choice of LaTeX page numbering style </refpurpose>
703 <para>By default, DB2LaTeX will choose the 'plain' or 'fancy' page styles,
704 depending on <xref linkend="param.latex.use.fancyhdr"/>. If non-empty, this
705 variable overrides the automatic selection. An example would be the literal
706 string 'empty', to eliminate headers and page numbers.</para>
709 <xsl:variable name="latex.pagestyle"></xsl:variable>
711 <doc:param name="latex.procedure.title.style" xmlns="">
712 <refpurpose> Control the style of procedure titles </refpurpose>
714 <para>Procedure titles are typeset in small caps but if
715 this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
716 that command will precede the title and it will be typeset accordingly.</para>
719 <xsl:variable name="latex.procedure.title.style">\sc</xsl:variable>
721 <doc:param name="latex.figure.title.style" xmlns="">
722 <refpurpose> Control the style of figure titles </refpurpose>
724 <para>Figure titles are typeset in the default typeface (usually 'roman') but if
725 this option is set to a LaTeX command, such as <literal>\itshape{}</literal>, then
726 that command will precede the title and it will be typeset accordingly.</para>
729 <xsl:variable name="latex.figure.title.style"></xsl:variable>
731 <doc:param name="latex.pdf.support" xmlns="">
732 <refpurpose> Controls the output of LaTeX commands to support the generation
733 of PDF files.</refpurpose>
735 <para>If this parameter is set to 1, the stylesheets generate code to
736 detect if it is either <literal>latex</literal> or <literal>pdflatex</literal>
737 the shell command that is being used to compile the LaTeX text file. Some
738 packages (<literal>graphicx</literal>, <literal>hyperref</literal>) are used
739 with the right parameters. Finally, the graphic extensions declared, to use in
740 <literal>\includegraphics</literal> commands depends also on which command is
741 being used. If this parameter is set to zero, such code is not generated (which
742 does not mean that the file cannot compile with pdflatex, but some strange issues
743 may appear). <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
747 <xsl:variable name="latex.pdf.support">1</xsl:variable>
751 <doc:param name="latex.thead.row.entry" xmlns="">
752 <refpurpose> Format the output of tabular headings. </refpurpose>
756 <xsl:template name="latex.thead.row.entry">
757 <xsl:apply-templates/>
762 <doc:param name="latex.math.support" xmlns="">
763 <refpurpose> Controls the output of LaTeX packages and commands to support
764 documents with math commands and environments..</refpurpose>
766 <para>If this parameter is set to 1, the stylesheets generate code to
767 <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
771 <xsl:variable name="latex.math.support">1</xsl:variable>
775 <doc:param name="latex.output.revhistory" xmlns="">
776 <refpurpose> Controls if the revision history table is generated as the first document
780 <para>If this parameter is set to 1, the stylesheets generate code to
781 <emphasis>DEFAULT: 1</emphasis> Only more code is generated.
785 <xsl:variable name="latex.output.revhistory">1</xsl:variable>
790 <xsl:variable name="latex.book.preamble.pre">
793 <xsl:variable name="latex.book.preamble.post">
796 <doc:param name="latex.book.varsets" xmlns="">
798 All purpose commands to change text width, height, counters, etc.
799 Defaults to a two-sided margin layout.
804 <xsl:variable name="latex.book.varsets">
805 <xsl:text>\usepackage{anysize} </xsl:text>
806 <xsl:text>\marginsize{3cm}{2cm}{1.25cm}{1.25cm} </xsl:text>
809 <doc:param name="latex.book.begindocument" xmlns="">
811 Begin document command
816 <xsl:variable name="latex.book.begindocument">
817 <xsl:text>\begin{document} </xsl:text>
824 <doc:param name="latex.book.afterauthor" xmlns="">
826 LaTeX code that is output after the author (e.g.
827 <literal>\makeindex, \makeglossary</literal>
832 <xsl:variable name="latex.book.afterauthor">
833 <xsl:text>% -------------------------------------------- </xsl:text>
834 <xsl:text>\makeindex </xsl:text>
835 <xsl:text>\makeglossary </xsl:text>
836 <xsl:text>% -------------------------------------------- </xsl:text>
842 <doc:param name="latex.book.end" xmlns="">
844 LaTeX code that is output at the end of the document
845 <literal>\end{document}</literal>
850 <xsl:variable name="latex.book.end">
851 <xsl:text>% -------------------------------------------- </xsl:text>
852 <xsl:text>% End of document </xsl:text>
853 <xsl:text>% -------------------------------------------- </xsl:text>
854 <xsl:text>\end{document} </xsl:text>
859 <!--#############################################################################
860 | XSL VARIABLES FOR ARTICLES
861 |- #############################################################################
864 + ############################################################################## -->
868 <xsl:variable name="latex.article.preamble.pre">
871 <xsl:variable name="latex.article.preamble.post">
874 <doc:param name="latex.article.begindocument" xmlns="">
875 <refpurpose> The begin document </refpurpose>
876 <refdescription>The value of this variable is output from the article template
877 <xref linkend="template.article"/> after the author command. The default value
878 (shown below) is just the begin document command. Users of the XSL LaTeX
879 stylesheet may override this parameter in order to output what they want.
881 <refreturn><literal>\begin{document}</literal></refreturn>
883 <xsl:variable name="latex.article.begindocument">
884 <xsl:text>\begin{document} </xsl:text>
888 <doc:param name="latex.article.varsets" xmlns="">
889 <refpurpose> Controls what is output after the LaTeX preamble. </refpurpose>
891 <para>Default values decrease edge margins and allow a large quantity of figures to be set on each page. </para>
895 <xsl:variable name="latex.article.varsets">
898 \marginsize{2cm}{2cm}{2cm}{2cm}
899 \renewcommand\floatpagefraction{.9}
900 \renewcommand\topfraction{.9}
901 \renewcommand\bottomfraction{.9}
902 \renewcommand\textfraction{.1}
909 <doc:param name="latex.maketitle" xmlns="">
910 <refpurpose> The <literal>\maketitle</literal> for books and articles. </refpurpose>
912 <para>Some users may wish to override or eliminate <literal>\maketitle</literal>.</para>
913 <note><para>Does not apply to <sgmltag class="element">article</sgmltag>s within <sgmltag class="element">book</sgmltag>s.</para></note>
914 <para>By default, uses LaTeX <literal>\maketitle</literal> with the 'empty' pagestyle
915 for the first page. The page style of subsequent pages is determined by
916 <xref linkend="template.generate.latex.pagestyle"/>.</para>
919 <xsl:variable name="latex.maketitle">
920 <xsl:text>{\maketitle</xsl:text>
921 <xsl:call-template name="generate.latex.pagestyle"/>
922 <xsl:text>\thispagestyle{empty}} </xsl:text>
926 <doc:param name="latex.article.end" xmlns="">
927 <refpurpose> Controls what is output at the end of the article. Basically the <literal>\end{document}</literal>
928 command, with some markup comments. </refpurpose>
932 <xsl:variable name="latex.article.end">
933 <xsl:text> </xsl:text>
934 <xsl:text>% -------------------------------------------- </xsl:text>
935 <xsl:text>% End of document </xsl:text>
936 <xsl:text>% -------------------------------------------- </xsl:text>
937 <xsl:text>\end{document} </xsl:text>