Skip to content

Commit

Permalink
[ieee] Improve bibliography handling (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed May 2, 2023
1 parent 47ffb1d commit 6a89a6d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions inst/rmarkdown/templates/ieee/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -329,17 +329,15 @@
%% BEGIN MY ADDITIONS %%

$if(natbib)$
\usepackage{natbib}
\usepackage[$natbiboptions$]{natbib}
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
$endif$
$if(biblatex)$
\usepackage[backend=bibtex,citestyle=ieee,style=numeric$if(citation_sorting)$,sorting=$citation_sorting$$endif$]{biblatex}
$if(bibliography)$
\usepackage[citestyle=ieee,$if(biblio-style)$style=$biblio-style$,$endif$$if(citation_sorting)$sorting=$citation_sorting$$endif$,$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
$for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
$endif$

\usepackage[unicode=true]{hyperref}

Expand Down Expand Up @@ -615,16 +613,15 @@
$body$
$if(natbib)$
$if(biblio-files)$
$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
$if(has-chapters)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$biblio-files$}
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$endif$
$endif$
$if(biblatex)$
Expand Down

0 comments on commit 6a89a6d

Please sign in to comment.