Debian Codegraph @

debian/patches/20_db2latex_title_page.patch

raw
1 Author: Andreas Hoenen <[email protected]>
2 Description: Hotfix for BTS report #584670:
3 Avoid duplication of title and author on title page for articles in db2latex
4 style.
5 --- a/latex/contrib/db2latex/db2latex.sty
6 +++ b/latex/contrib/db2latex/db2latex.sty
7 @@ -138,8 +138,10 @@
8 \def\maketitle{
9 \stdmaketitle
10 \noindent
11 - \textbf{\DBKtitle \\}
12 - \ifx\DBKauthor\empty\else{by \DBKauthor \\}\fi
13 + \ifthenelse{\boolean{DBKIsBook}}{
14 + \textbf{\DBKtitle \\}
15 + \ifx\DBKauthor\empty\else{by \DBKauthor \\}\fi
16 + }{}
17 \hspace{0pt}\\
18 \ifthenelse{\equal{\DBKedition}{}}{}{Edition \DBKedition \\}
19 \ifthenelse{\equal{\DBKpubdate}{}}{}{Published \DBKpubdate \\}
20 --- a/xsl/preamble.xsl
21 +++ b/xsl/preamble.xsl
22 @@ -52,6 +52,14 @@
23 </xsl:otherwise>
24 </xsl:choose>
25 <xsl:text>}&#10;</xsl:text>
26 + <xsl:text>\usepackage{ifthen}&#10;</xsl:text>
27 + <xsl:text>\newboolean{DBKIsBook}&#10;</xsl:text>
28 + <xsl:text>\setboolean{DBKIsBook}{</xsl:text>
29 + <xsl:choose>
30 + <xsl:when test="self::book">true</xsl:when>
31 + <xsl:otherwise>false</xsl:otherwise>
32 + </xsl:choose>
33 + <xsl:text>}&#10;</xsl:text>
34
35 <xsl:variable name="external.docs">
36 <xsl:call-template name="make.external.docs"/>