Debian Codegraph @

debian/patches/20_subtitle_handling.patch

raw
1 Author: Andreas Hoenen <[email protected]>
2 Description: Hotfix for BTS report #584669:
3 - Don't pass through a subtitle as plain text into document body due to a
4 missing stylesheet (problem is style independent).
5 - Display subtitle below title in simple style, just as it is done in db2latex
6 style.
7 --- a/xsl/common/titles.xsl
8 +++ b/xsl/common/titles.xsl
9 @@ -81,6 +81,9 @@
10 </xsl:choose>
11 </xsl:template>
12
13 +<!-- Don't include subtitles in document body. -->
14 +<xsl:template match="subtitle"/>
15 +
16 <!-- only occurs in HTML Tables! -->
17 <xsl:template match="caption" mode="title.markup">
18 <xsl:param name="allow-anchors" select="0"/>
19 --- a/latex/contrib/example/dbsimple.sty
20 +++ b/latex/contrib/example/dbsimple.sty
21 @@ -87,3 +87,12 @@
22 \end{minipage}\end{Sbox}\shadowbox{\TheSbox}%
23 }
24
25 +%
26 +% Subtitle handling
27 +%
28 +\let\stdtitle=\title
29 +\def\title#1{
30 + \def\DBKtitle{#1}
31 + \stdtitle{\bfseries #1%
32 + \ifthenelse{\equal{\DBKsubtitle}{}}{}{\\[12pt]\normalsize \DBKsubtitle}}
33 +}