Author: Andreas Hoenen 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 @@ -138,8 +138,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 @@ } + \usepackage{ifthen} + \newboolean{DBKIsBook} + \setboolean{DBKIsBook}{ + + true + false + + }