OLD | NEW |
| (Empty) |
1 <refentry xmlns="http://docbook.org/ns/docbook" | |
2 xmlns:xlink="http://www.w3.org/1999/xlink" | |
3 xmlns:xi="http://www.w3.org/2001/XInclude" | |
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" | |
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
6 version="5.0" xml:id="toc.line.properties"> | |
7 <refmeta> | |
8 <refentrytitle>toc.line.properties</refentrytitle> | |
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo> | |
10 </refmeta> | |
11 <refnamediv> | |
12 <refname>toc.line.properties</refname> | |
13 <refpurpose>Properties for lines in ToCs and LoTs</refpurpose> | |
14 </refnamediv> | |
15 | |
16 <refsynopsisdiv> | |
17 <src:fragment xml:id="toc.line.properties.frag"> | |
18 <xsl:attribute-set name="toc.line.properties"> | |
19 <xsl:attribute name="text-align-last">justify</xsl:attribute> | |
20 <xsl:attribute name="text-align">start</xsl:attribute> | |
21 <xsl:attribute name="end-indent"><xsl:value-of select="concat($toc.indent.widt
h, 'pt')"/></xsl:attribute> | |
22 <xsl:attribute name="last-line-end-indent"><xsl:value-of select="concat('-', $
toc.indent.width, 'pt')"/></xsl:attribute> | |
23 </xsl:attribute-set> | |
24 </src:fragment> | |
25 </refsynopsisdiv> | |
26 | |
27 <refsection><info><title>Description</title></info> | |
28 | |
29 <para>Properties which are applied to every line in ToC (or LoT). You can | |
30 modify them in order to change appearance of all, or some lines. For | |
31 example, in order to make lines for chapters bold, specify the | |
32 following in your customization layer:</para> | |
33 | |
34 <programlisting><xsl:attribute-set name="toc.line.properties"> | |
35 <xsl:attribute name="font-weight"> | |
36 <xsl:choose> | |
37 <xsl:when test="self::chapter">bold</xsl:when> | |
38 <xsl:otherwise>normal</xsl:otherwise> | |
39 </xsl:choose> | |
40 </xsl:attribute> | |
41 </xsl:attribute-set></programlisting> | |
42 | |
43 </refsection> | |
44 </refentry> | |
OLD | NEW |