From a312d2a8aec49343ec9e8353098a2142a7c7851f Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 15 Dec 2010 13:50:21 +0100 Subject: Use top-level header at end as bibliography title for natbib and biblatex output. --- templates/latex.template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'templates/latex.template') diff --git a/templates/latex.template b/templates/latex.template index 371484ffc..e1dbdae83 100644 --- a/templates/latex.template +++ b/templates/latex.template @@ -19,8 +19,8 @@ $if(natbib)$ $endif$ $if(biblatex)$ \usepackage{biblatex} -$if(biblio)$ -\bibliography{$biblio$} +$if(biblio-files)$ +\bibliography{$biblio-files$} $endif$ $endif$ $if(lhs)$ @@ -104,13 +104,20 @@ $if(toc)$ $endif$ $body$ -$if(biblio)$ +$if(biblio-files)$ $if(natbib)$ -\bibliography{$biblio$} +$if(biblio-title)$ +$if(book-class)$ +\renewcommand\bibname{$biblio-title$} +$else$ +\renewcommand\refname{$biblio-title$} +$endif$ +$endif$ +\bibliography{$biblio-files$} $endif$ $endif$ $if(biblatex)$ -\printbibliography +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ $endif$ $for(include-after)$ -- cgit v1.2.3