BibTeX, biblatex and biberAuthor name not printing in Bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Upasana
Posts: 8
Joined: Tue Mar 30, 2021 12:38 am

Author name not printing in Bibliography

Post by Upasana »

Dear Latex members,
I am a bigenner using latex. I have an issue with printing the author name in the bibliography for particular references.

The entry in the latex bibliography is as below

@inproceedings{bansal2019data,
title={Data dimensionality reduction (DDR) scheme for intrusion detection system using ensemble and standalone classifiers},
author={Bansal, Ashu and Kaur, Sanmeet},
booktitle={International Conference on Advances in Computing and Data Sciences},
pages={436--451},
year={2019},
organization={Springer}
}

output :
inproceedings{bansal2019data
inproceedings{bansal2019data
Ref1.PNG (14.1 KiB) Viewed 26959 times
inproceedings{bansal2019data

@article{breiman2001random,
title={Random forests},
author={Breiman, Leo},
journal={Machine learning},
volume={45},
number={1},
pages={5--32},
year={2001},
publisher={Springer}
}

output :
article{breiman2001random
article{breiman2001random
Ref2.PNG (4.5 KiB) Viewed 26959 times
@article{chebrolu2005feature,
title={Feature deduction and ensemble design of intrusion detection systems},
author={Chebrolu, Srilatha and Abraham, Ajith and Thomas, Johnson P},
journal={Computers \& security},
volume={24},
number={4},
pages={295--307},
year={2005},
publisher={Elsevier}
}
Output :
article{chebrolu2005feature
article{chebrolu2005feature
Ref3.PNG (35.69 KiB) Viewed 26959 times
@article{moustafa2017hybrid,
title={A hybrid feature selection for network intrusion detection systems: Central points},
author={Moustafa, Nour and Slay, Jill},
journal={arXiv preprint arXiv:1707.05505},
year={2017}
}

Output :
article{moustafa2017hybrid
article{moustafa2017hybrid
Ref4.PNG (41.15 KiB) Viewed 26959 times
@article{thakkar2021attack,
title={Attack classification using feature selection techniques: a comparative study},
author={Thakkar, Ankit and Lohiya, Ritika},
journal={Journal of Ambient Intelligence and Humanized Computing},
volume={12},
number={1},
pages={1249--1266},
year={2021},
publisher={Springer}
}


However, there is no author name printed for this in the final output. I am attaching the output screenshots for each of these entries. Everything looks ok according to me but something somewhere is going wrong and I cant see what.

Can someone please help? I am due to submit my thesis tomorrow and I am really hoping to fix this urgently.

Kind regards
Upasana

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Author name not printing in Bibliography

Post by Stefan Kottwitz »

Hi Upasana,

please provide more details. For example, which bibliography style are you using? Do you run bibtex or biber? And with which options?

It simply doesn't happen for me or possibly other readers here.

Here is a compilable example that shows it:

Code: Select all

\begin{filecontents}{test.bib}
@inproceedings{bansal2019data,
title={Data dimensionality reduction (DDR) scheme for intrusion detection system using ensemble and standalone classifiers},
author={Bansal, Ashu and Kaur, Sanmeet},
booktitle={International Conference on Advances in Computing and Data Sciences},
pages={436--451},
year={2019},
organization={Springer}
}
@article{breiman2001random,
title={Random forests},
author={Breiman, Leo},
journal={Machine learning},
volume={45},
number={1},
pages={5--32},
year={2001},
publisher={Springer}
}
@article{chebrolu2005feature,
title={Feature deduction and ensemble design of intrusion detection systems},
author={Chebrolu, Srilatha and Abraham, Ajith and Thomas, Johnson P},
journal={Computers \& security},
volume={24},
number={4},
pages={295--307},
year={2005},
publisher={Elsevier}
}
@article{moustafa2017hybrid,
title={A hybrid feature selection for network intrusion detection systems: Central points},
author={Moustafa, Nour and Slay, Jill},
journal={arXiv preprint arXiv:1707.05505},
year={2017}
}
@article{thakkar2021attack,
title={Attack classification using feature selection techniques: a comparative study},
author={Thakkar, Ankit and Lohiya, Ritika},
journal={Journal of Ambient Intelligence and Humanized Computing},
volume={12},
number={1},
pages={1249--1266},
year={2021},
publisher={Springer}
}
\end{filecontents}
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{test.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
Perhaps describe the issue with more details about every relevant thing that's used. Like I did with this example, that's complete. (I used the filecontents environment to embed the test bib entries in the document).

Click on "Run LaTeX here" to see the output.

Stefan
LaTeX.org admin
Upasana
Posts: 8
Joined: Tue Mar 30, 2021 12:38 am

Author name not printing in Bibliography

Post by Upasana »

Hi Stefan,

Thank you for pointing out what more I needed to add to describe my issue better. Apology for not posting the same before and thank you for showing a working example.

I am using a thesis template with Overleaf Latex. After looking at your code, I tried searching in the latex code that I have.

I found the below.

Code: Select all

\bibliographystyle{siam}  
%\bibliographystyle{unsrt}  In the Original template and commented out by Upasana to change to unsrt
\refstepcounter{chapter}
\bibliography{thesisbiblio}
The document class being used is

Code: Select all

\documentclass[a4paper,12pt,leqno,openbib,oneside]{memoir}    %This is a change done by Upasana to make it 
                                                                                                   oneside 
                                                                                                 so all pages have same margin __works for PDF.         
                                                                                                  %%%% Make sure to use the original command if need 
                                                                                                  to print thesis double sided%%%%%
And the code with "bib" in it is below (I that all this code would be related to bibliography):

Code: Select all

\usepackage[square,numbers,sort&compress]{natbib}   %Calls bibliography commands
		     
\usepackage{url}                                 %Supports url commands
\def\UrlBreaks{\do\/\do-}                    %Added by Upasana to break long url line in bibliography       
\usepackage{pbsi}
\usepackage{hyperref}                        %Added by Upasana as was having issues with inserting URLS in bibliography


I hope this is meaningful in some way. Thank you for spending time and looking into this issue. Would you be able to now comment on what is wrong with the code?

Kind Regards,
Upasana
Last edited by Stefan Kottwitz on Wed Mar 31, 2021 1:11 am, edited 1 time in total.
Reason: code marked
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Author name not printing in Bibliography

Post by Stefan Kottwitz »

That's better!

Looks like you only need to add the option oldfontcommands to the document class:

Code: Select all

\documentclass[a4paper,12pt,leqno,openbib,oneside,oldfontcommands]{memoir}
The reason is, that your bibliography style uses the obsolete \sc command for the author names, that's not working any more by default.

You can test it here:

Code: Select all

\begin{filecontents}{thesisbiblio.bib}
@inproceedings{bansal2019data,
title={Data dimensionality reduction (DDR) scheme for intrusion detection system using ensemble and standalone classifiers},
author={Bansal, Ashu and Kaur, Sanmeet},
booktitle={International Conference on Advances in Computing and Data Sciences},
pages={436--451},
year={2019},
organization={Springer}
}
@article{breiman2001random,
title={Random forests},
author={Breiman, Leo},
journal={Machine learning},
volume={45},
number={1},
pages={5--32},
year={2001},
publisher={Springer}
}
@article{chebrolu2005feature,
title={Feature deduction and ensemble design of intrusion detection systems},
author={Chebrolu, Srilatha and Abraham, Ajith and Thomas, Johnson P},
journal={Computers \& security},
volume={24},
number={4},
pages={295--307},
year={2005},
publisher={Elsevier}
}
@article{moustafa2017hybrid,
title={A hybrid feature selection for network intrusion detection systems: Central points},
author={Moustafa, Nour and Slay, Jill},
journal={arXiv preprint arXiv:1707.05505},
year={2017}
}
@article{thakkar2021attack,
title={Attack classification using feature selection techniques: a comparative study},
author={Thakkar, Ankit and Lohiya, Ritika},
journal={Journal of Ambient Intelligence and Humanized Computing},
volume={12},
number={1},
pages={1249--1266},
year={2021},
publisher={Springer}
}
\end{filecontents}
\documentclass[a4paper,12pt,leqno,openbib,oneside,oldfontcommands]{memoir}
\usepackage[square,numbers,sort&compress]{natbib}   %Calls bibliography commands
		     
\usepackage{url}                                 %Supports url commands
\def\UrlBreaks{\do\/\do-}                    %Added by Upasana to break long url line in bibliography       
\usepackage{pbsi}
\usepackage{hyperref}                        %Added by Upasana as was having issues with inserting URLS in bibliography
%\bibliographystyle{unsrt}  In the Original template and commented out by Upasana to change to unsrt
\refstepcounter{chapter}
\begin{document}
\nocite{*}
\bibliographystyle{siam}  
\bibliography{thesisbiblio}
\end{document}
Stefan
LaTeX.org admin
Upasana
Posts: 8
Joined: Tue Mar 30, 2021 12:38 am

Author name not printing in Bibliography

Post by Upasana »

Stefan Kottwitz wrote:That's better!

Looks like you only need to add the option oldfontcommands to the document class:

Code: Select all

\documentclass[a4paper,12pt,leqno,openbib,oneside,oldfontcommands]{memoir}
The reason is, that your bibliography style uses the obsolete \sc command for the author names, that's not working any more by default.

Stefan
Hi Stefan,
Good morning.
I made the change and tried re-running the latex code. However, I am still not able to get the same output as you.
What else could be amiss? I have submitted my thesis with the error as I was running out of time. But I still will need to fix this issue for these particular bibliography entries. Kindly help.
Kind regards,
Upasana
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Author name not printing in Bibliography

Post by Stefan Kottwitz »

Hi Upasana,

as it's working for me, I don't know what you are doing differently.

If you make a code example that shows the issue, based on your real document, we can probably fix it. You can take a copy of your document, remove text stuff, compile and make sure the error is still present in the code, and post it here.

Stefan
LaTeX.org admin
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Author name not printing in Bibliography

Post by rais »

Well, the dash you see is not an error, rather a design decision of the siam's author: If the current author matches the author from the previous entry in the bibliography, it's replaced by that dash (`idem', I think, is the term for it).

KR
Rainer
Upasana
Posts: 8
Joined: Tue Mar 30, 2021 12:38 am

Author name not printing in Bibliography

Post by Upasana »

rais wrote:Well, the dash you see is not an error, rather a design decision of the siam's author: If the current author matches the author from the previous entry in the bibliography, it's replaced by that dash (`idem', I think, is the term for it).

KR
Rainer
Hi
Thanks for pointing it out. You are correct. Indeed if the author is same as the previous entry, then the name is not printed. Thank you heaps as I have learnt something new today. I did a workaround by modifying the first name a bit so that the entry is different and now it prints well.


I am so glad. Thank you
Attachments
Bansal.PNG
Bansal.PNG (48.55 KiB) Viewed 26810 times
B.PNG
B.PNG (26.08 KiB) Viewed 26810 times
M.PNG
M.PNG (86.53 KiB) Viewed 26810 times
T.PNG
T.PNG (35.83 KiB) Viewed 26810 times
Upasana
Posts: 8
Joined: Tue Mar 30, 2021 12:38 am

Author name not printing in Bibliography

Post by Upasana »

Stefan Kottwitz wrote:Hi Upasana,

as it's working for me, I don't know what you are doing differently.

If you make a code example that shows the issue, based on your real document, we can probably fix it. You can take a copy of your document, remove text stuff, compile and make sure the error is still present in the code, and post it here.

Stefan
Thank you for helping me look through the code. Really appreciate your time and effort.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Author name not printing in Bibliography

Post by rais »

Upasana wrote:I did a workaround by modifying the first name a bit so that the entry is different and now it prints well.
oh, you seem to have changed the first author's first name in the author list. Since its abbreviated to initials, it doesn't matter to you.
BTW, the entry in [119] looks like you've added an additional a to the first author's last name (Moustafaa instead of Moustafa). Try

Code: Select all

author={{Moustafa}, Nour and Slay, Jill},
for that entry: the additional braces around the first author's last name should suffice in throwing the prev/current author list comparator off its scent ;)

KR
Rainer
Post Reply