Closed baderas closed 4 years ago
Yes, this can be considered a bug (see #5). However, I am not sure, whether the output is corrupt as well.
The pdf does not contain author names and the references seem to be not working correctly.
Okay, thank you. I'll check.
Any news? Did you check it?
I had a quick look, but yet no time for a deeper analysis. I am on vacation at the moment and will investigate the problem next week.
Gesendet mit TypeApp
Am 25. Aug. 2016 14:51, um 14:51, Andreas Bader notifications@github.com schrieb:
Any news? Did you check it?
You are receiving this because you were assigned. Reply to this email directly or view it on GitHub: https://github.com/sieversMartin/LNI/issues/6#issuecomment-242374389
I fixed it by using the following code:
%%% biblatex
%%%
%biblatex statt bibtex
\usepackage[
style = lni,
backend = biber, %minalphanames only works with biber backend
sortcites = true,
bibstyle = alphabetic,
citestyle = alphabetic,
firstinits = true,
useprefix = false, %"von, van, etc." will be printed, too. See below.
minnames = 1,
minalphanames = 3,
maxalphanames = 4,
maxbibnames = 99,
maxcitenames = 3,
doi = false, %source: http://tex.stackexchange.com/a/23118/9075
isbn = false, %source: http://tex.stackexchange.com/a/23118/9075
url = false,
backref = true]{biblatex}
%Do not put "vd" in the label, but put it at "\citeauthor"
%Source: http://tex.stackexchange.com/a/30277/9075
\makeatletter
\AtBeginDocument{\toggletrue{blx@useprefix}}
\AtBeginBibliography{\togglefalse{blx@useprefix}}
%Thin spaces between initials
%http://tex.stackexchange.com/a/11083/9075
\renewrobustcmd*{\bibinitdelim}{\,}
%Keep first and last name together in the bibliography
%http://tex.stackexchange.com/a/196192/9075
\renewcommand*\bibnamedelimc{\addnbspace}
\renewcommand*\bibnamedelimd{\addnbspace}
%Replace last "and" by comma in bibliography
%See http://tex.stackexchange.com/a/41532/9075
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{\addcomma\space}%
}
%enable hyperlinked author names when using \citeauthor
%source: http://tex.stackexchange.com/a/75916/9075
\DeclareCiteCommand{\citeauthor}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
%natbib compatibility
\newcommand{\citep}[1]{\cite{#1}}
\newcommand{\citet}[1]{\citeauthor{#1} \cite{#1}}
%Beginning of sentence - analogous to cleveref - important for names such as "zur Muehlen"
\newcommand{\Citep}[1]{\cite{#1}}
\newcommand{\Citet}[1]{\Citeauthor{#1} \cite{#1}}
%%%
and \printbibliography[heading=bibintoc,title={References}]
at the appropriate place
it comes from https://github.com/baderas/uni-stuttgart-computer-science-template/blob/template/preambel/packages_and_options.tex
Thank you. However, I would like to have a bibtex solution as well. The reason is, that there are a lot of people using older distributions. Thus they don't have the latest biblatex packages or are not familiar with using biber etc.
In additionstyle=lni
should be redundant as you name alphabetic
explicitly.
The biblatex solution has been implemented with a huge help of @LukasCBossert and @georgd in https://github.com/latextemplates/LNI/pull/3 https://github.com/latextemplates/biblatex-lni.
The biblatex-lni style can be is packaged for CTAN. I have it as TODO: https://github.com/latextemplates/LNI/issues/4 https://www.ctan.org/pkg/biblatex-lni
We are hitting the version issues in the context of the BTW conference (http://btw-konferenz.de/), but most issues seem to be solvable by keeping his system up to date. We have hints for Windows https://github.com/latextemplates/LNI#installation-hints-for-windows and Ubuntu: https://github.com/latextemplates/LNI#installation-hints-for-ubuntu
I'm experiencing the same problem but could solve it using biblatex resp. biber (https://tex.stackexchange.com/questions/13509/biblatex-in-a-nutshell-for-beginners#13513).
Is this considered as the solution, that maybe it would be good to write this into the README.
Well, for me and many other users, using biblatex
should be considered best practise.
However, there are still users not familiar with biblatex
. Therefore the old bst
file have to be supported.
BTW: The README contains a hint to biblatex
as well.
...and the documentation, too.
In our conference 2017, approx 1/5 of the papers used biblatex all others bibtex... Also because of the high installation effort of a recent version in recent Ubuntu distris...
This issue has been around for quite a while. I am a biblatex/biber user whenever I can. For the sake of compatibility, I found a ridiculously easy solution in #80. Hope it is useful. Have fun!
When using the following
test.tex
:with the following
test.bib
:latexmk -pdf -latexoption="-shell-escape" test
returns: