Skip to content

Commit 027aa9b

Browse files
committed
Use style plainnat with natbib package
In the documentation (answer and comments of https://tex.stackexchange.com/questions/729789/how-can-i-arrange-my-bibliography-in-alphabetical-order) it is advised to use `plainnat` together with the `natbib` package and not the `plain` style. For compatibility with the old style (and e.g. HTML) the option `numbers` should be used with the `natbib` package.
1 parent dfec5ed commit 027aa9b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ The following block name is set based on whether or not a feature is used in the
32973297
]]>
32983298
</docs>
32993299
</option>
3300-
<option type='string' id='LATEX_BIB_STYLE' format='string' defval='plain' depends='GENERATE_LATEX'>
3300+
<option type='string' id='LATEX_BIB_STYLE' format='string' defval='plainnat' depends='GENERATE_LATEX'>
33013301
<docs>
33023302
<![CDATA[
33033303
The \c LATEX_BIB_STYLE tag can be used to specify the style to use for the

src/latexgen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static QCString substituteLatexKeywords(const QCString &str,
798798
QCString style = Config_getString(LATEX_BIB_STYLE);
799799
if (style.isEmpty())
800800
{
801-
style="plain";
801+
style="plainnat";
802802
}
803803

804804
TextStream tg;

templates/latex/header.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
169169
% ToC, LoF, LoT, bibliography, and index
170170
% Indices & bibliography
171-
\usepackage{natbib}
171+
\usepackage[numbers]{natbib}
172172
\usepackage[titles]{tocloft}
173173
\setcounter{tocdepth}{3}
174174
\setcounter{secnumdepth}{5}

0 commit comments

Comments
 (0)