]> git.stg.codes - stg.git/blob - doc/xslt/params/monospace.properties.xml
Use namespace instead of prefix.
[stg.git] / doc / xslt / params / monospace.properties.xml
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="monospace.properties">
7 <refmeta>
8 <refentrytitle>monospace.properties</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">attribute set</refmiscinfo>
10 </refmeta>
11 <refnamediv>
12 <refname>monospace.properties</refname>
13 <refpurpose>Properties of monospaced content</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17 <src:fragment xml:id="monospace.properties.frag">
18 <xsl:attribute-set name="monospace.properties">
19   <xsl:attribute name="font-family">
20     <xsl:value-of select="$monospace.font.family"/>
21   </xsl:attribute>
22 </xsl:attribute-set>
23 </src:fragment>
24 </refsynopsisdiv>
25
26 <refsection><info><title>Description</title></info>
27
28 <para>Specifies the font name for monospaced output. This property set
29 used to set the font-size as well, but that doesn't work very well
30 when different fonts are used (as they are in titles and paragraphs,
31 for example).</para>
32
33 <para>If you want to set the font-size in a customization layer, it's
34 probably going to be more appropriate to set font-size-adjust, if your
35 formatter supports it.</para>
36
37 </refsection>
38 </refentry>