Your message dated Mon, 21 Jun 2010 21:18:27 +0200
with message-id <[email protected]>
has caused the report #584670,
regarding dblatex: Double title and author in article with -Tdb2latex
to be marked as having been forwarded to the upstream software
author(s) Benoit Guillon <[email protected]>
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
584670: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584670
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Roland Stigge <[email protected]> wrote:
> Package: dblatex
> Version: 0.3-1
> Severity: normal
>
> Hi,
>
> I'm attaching an example demo2.xml together with the resulting demo2.pdf from
> "dblatex -Tdb2latex demo2.xml" where you can seen that on a simple article,
> the
> title and author are mentioned twice. I propose removing the second
> mentioning.
Hi BenoƮt,
I want to inform you about Debian BTS report #584670 [1]:
For articles in db2latex style the title and author information is shown
twice on the title page. It seems the repetition has been introduced
with book documents in mind: there the repeated elements are placed on a
separate page together with some other header information. Thus Roland
Stigge's idea of just omitting the repetition should probably be
restricted to article documents.
I've attached a patch [2] as a suggestion how to avoid the repetition
for article documents, as usual it is meant as a temporary workaround
until you choose an upstream solution.
[1] http://bugs.debian.org/584670
[2]
Author: Andreas Hoenen <[email protected]>
Description: Hotfix for BTS report #584670:
Avoid duplication of title and author on title page for articles in db2latex
style.
--- a/latex/contrib/db2latex/db2latex.sty
+++ b/latex/contrib/db2latex/db2latex.sty
@@ -113,8 +113,10 @@
\def\maketitle{
\stdmaketitle
\noindent
- \textbf{\DBKtitle \\}
- \ifx\DBKauthor\empty\else{by \DBKauthor \\}\fi
+ \ifthenelse{\boolean{DBKIsBook}}{
+ \textbf{\DBKtitle \\}
+ \ifx\DBKauthor\empty\else{by \DBKauthor \\}\fi
+ }{}
\hspace{0pt}\\
\ifthenelse{\equal{\DBKedition}{}}{}{Edition \DBKedition \\}
\ifthenelse{\equal{\DBKpubdate}{}}{}{Published \DBKpubdate \\}
--- a/xsl/preamble.xsl
+++ b/xsl/preamble.xsl
@@ -52,6 +52,14 @@
</xsl:otherwise>
</xsl:choose>
<xsl:text>} </xsl:text>
+ <xsl:text>\usepackage{ifthen} </xsl:text>
+ <xsl:text>\newboolean{DBKIsBook} </xsl:text>
+ <xsl:text>\setboolean{DBKIsBook}{</xsl:text>
+ <xsl:choose>
+ <xsl:when test="self::book">true</xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>} </xsl:text>
<xsl:variable name="external.docs">
<xsl:call-template name="make.external.docs"/>
Regards, Andreas
--
Andreas Hoenen <[email protected]>
GPG: 1024D/B888D2CE
A4A6 E8B5 593A E89B 496B
82F0 728D 8B7E B888 D2CE
pgppbNo61PJ1m.pgp
Description: PGP signature
--- End Message ---