summaryrefslogtreecommitdiff
path: root/doc/manual/dcpomatic-pdf.xsl
blob: 06f083866374d4b03bd22b5bab66aacba8f75d51 (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
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'>

<!-- colour links in blue -->
<xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,urlcolor=blue</xsl:param>

<!-- no revhistory table -->
<xsl:param name="doc.collab.show">0</xsl:param>
<xsl:param name="latex.output.revhistory">0</xsl:param>

<!-- set up screenshots to be the right size; diagrams are set up individually -->
<xsl:param name="imagedata.default.scale">scale=0.5</xsl:param>

<!-- don't make too-ridiculous section numbers -->
<xsl:param name="doc.section.depth">3</xsl:param>

<!-- guilabel in sans-serif -->
<xsl:template name="inline.frobozz">
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>
  <xsl:text>\textsf{</xsl:text>
  <xsl:copy-of select="$content"/>
  <xsl:text>}</xsl:text>
</xsl:template>

<xsl:template match="guibutton|guiicon|guilabel|guimenu">
  <xsl:call-template name="inline.frobozz"/>
</xsl:template>

<!-- <note> in a box with \dbend -->
<xsl:template name="note.frobozz">
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>
  <xsl:text>\begin{center}\fbox{\begin{minipage}{0.8\textwidth}\raisebox{10pt}{\dbend}\quad</xsl:text>
  <xsl:copy-of select="$content"/>
  <xsl:text>\end{minipage}}\end{center}\par</xsl:text>
</xsl:template>

<xsl:template match="note">
  <xsl:call-template name="note.frobozz"/>
</xsl:template>

</xsl:stylesheet>