blob: 2a8aeec290af3e49e7e172d6c460ef335562a248 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<?xml version='1.0' encoding="iso-8859-1"?>
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015 Martin Gieseking -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:param name="xetex.font">
<xsl:text>\setmainfont{Source Sans Pro} </xsl:text>
<xsl:text>\setsansfont{Source Sans Pro} </xsl:text>
<xsl:text>\setmonofont{Source Code Pro} </xsl:text>
</xsl:param>
<xsl:param name="doc.toc.show">0</xsl:param>
<xsl:param name="refentry.numbered">0</xsl:param>
<xsl:param name="figure.caution">caution</xsl:param>
<xsl:param name="figure.note">note</xsl:param>
<xsl:param name="table.default.tabstyle">tabular</xsl:param>
<xsl:param name="table.in.float">0</xsl:param>
<xsl:param name="term.breakline">1</xsl:param>
<xsl:param name="literal.layout.options">
<xsl:text>basicstyle=\ttfamily\small,backgroundcolor=\color[gray]{0.9},columns=fullflexible,frame=single</xsl:text>
</xsl:param>
<!-- ensure processing of refmiscinfo elements -->
<xsl:template match="refentry">
<xsl:apply-templates select="refmeta/refmiscinfo"/>
<xsl:apply-imports/>
</xsl:template>
<!-- put refmiscinfo data into the TeX file -->
<xsl:template match="refmiscinfo[@class]">
<xsl:value-of select="concat('\def\refmiscinfo', @class, '{', ., '} ')"/>
</xsl:template>
<!-- output TOC before synopsis section -->
<xsl:template match="refsynopsisdiv">
<xsl:text>\tableofcontents </xsl:text>
<xsl:call-template name="makeheading">
<xsl:with-param name="level">2</xsl:with-param>
<xsl:with-param name="num">1</xsl:with-param>
</xsl:call-template>
<xsl:apply-templates/>
</xsl:template>
<!-- force non-star \subsection commands -->
<xsl:template match="refsect1">
<xsl:call-template name="makeheading">
<xsl:with-param name="level">2</xsl:with-param>
<xsl:with-param name="num">1</xsl:with-param>
</xsl:call-template>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
|