blob: 175f7fb96220a04b40e7ff821181617f569c6c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015-2024 Martin Gieseking <martin.gieseking@uos.de> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- output monospaced text in bold -->
<xsl:template match="literal">
<xsl:text>\fB</xsl:text>
<xsl:apply-templates/>
<xsl:text>\fR</xsl:text>
</xsl:template>
<!-- append URL to hyperlinked text pointing to external targets -->
<xsl:template match="ulink[not(contains(., '://')) and not(contains(@url, 'mailto:'))]">
<xsl:apply-templates/>
<xsl:text> (\m[blue]</xsl:text>
<xsl:value-of select="@url"/>
<xsl:text>\m[])</xsl:text>
</xsl:template>
<!-- expand width of last table column up to the line end -->
<xsl:template match="cell" mode="table.format">
<xsl:apply-imports/>
<xsl:if test="not(following-sibling::cell) or following-sibling::cell[1]/@row != @row">
<xsl:text>x</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|