diff options
author | Nathan Gass <gass@search.ch> | 2010-12-15 13:50:21 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-15 10:21:56 -0800 |
commit | a312d2a8aec49343ec9e8353098a2142a7c7851f (patch) | |
tree | c41a3048f868677830111381b532acd7cea4abcc /templates/latex.template | |
parent | 8f60176511d006cc1c9fb8146f4e38cb9b760dc6 (diff) | |
download | pandoc-a312d2a8aec49343ec9e8353098a2142a7c7851f.tar.gz |
Use top-level header at end as bibliography title for natbib and biblatex output.
Diffstat (limited to 'templates/latex.template')
-rw-r--r-- | templates/latex.template | 17 |
1 files changed, 12 insertions, 5 deletions
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)$ |