source: stylesheets/lfs-xsl/pdf/lfs-admon.xsl@ 52dcb7d

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 52dcb7d was 52dcb7d, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

remove $Date$ and $LastChangedBy$

They are unsupported by Git.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 version="1.0">
6
7 <!-- This stylesheet controls how admonitions are displayed -->
8
9 <!-- Use graphics in admonitions? 1 = yes, 0 = no -->
10 <xsl:param name="admon.graphics" select="1"/>
11
12 <!-- Path to admonition graphics relative to index.xml -->
13 <xsl:param name="admon.graphics.path" select="'images/'"/>
14
15 <!-- Global admonitions properties -->
16 <xsl:attribute-set name="graphical.admonition.properties">
17 <xsl:attribute name="keep-together.within-column">
18 <xsl:variable name="keep.together">
19 <xsl:call-template name="pi.dbfo_keep-together"/>
20 </xsl:variable>
21 <xsl:choose>
22 <xsl:when test="$keep.together != ''">
23 <xsl:value-of select="$keep.together"/>
24 </xsl:when>
25 <xsl:otherwise>always</xsl:otherwise>
26 </xsl:choose>
27 </xsl:attribute>
28 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
29 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
30 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
31 <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
32 <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
33 <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
34 <xsl:attribute name="padding-start">5pt</xsl:attribute>
35 <xsl:attribute name="padding-top">5pt</xsl:attribute>
36 <xsl:attribute name="padding-bottom">5pt</xsl:attribute>
37 <xsl:attribute name="border-style">solid</xsl:attribute>
38 <xsl:attribute name="border-width">0.5pt</xsl:attribute>
39 <xsl:attribute name="background-color">#FFFFE6</xsl:attribute>
40 <xsl:attribute name="border-color">
41 <xsl:choose>
42 <xsl:when test="self::note | self::tip">#E0E0E0</xsl:when>
43 <xsl:otherwise>#DCC</xsl:otherwise>
44 </xsl:choose>
45 </xsl:attribute>
46 </xsl:attribute-set>
47
48 <!-- Properties for admonitions titles -->
49 <xsl:attribute-set name="admonition.title.properties">
50 <xsl:attribute name="font-size">14pt</xsl:attribute>
51 <xsl:attribute name="font-weight">bold</xsl:attribute>
52 <xsl:attribute name="hyphenate">false</xsl:attribute>
53 <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
54 <xsl:attribute name="color">
55 <xsl:choose>
56 <xsl:when test="ancestor-or-self::important | ancestor-or-self::warning
57 | ancestor-or-self::caution">#500</xsl:when>
58 <xsl:otherwise>#000</xsl:otherwise>
59 </xsl:choose>
60 </xsl:attribute>
61 </xsl:attribute-set>
62
63 <!-- Properties for admonitions text -->
64 <xsl:attribute-set name="admonition.properties">
65 <xsl:attribute name="margin-right">5pt</xsl:attribute>
66 </xsl:attribute-set>
67
68 <!-- admon.graphic.width:
69 Making the graphic smaller. -->
70 <!-- The original template is in {docbook-xsl}/fo/admon.xsl -->
71 <xsl:template match="*" mode="admon.graphic.width">
72 <xsl:param name="node" select="."/>
73 <xsl:text>24pt</xsl:text>
74 </xsl:template>
75
76</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.