LaTeX forum ⇒ BibTeX, biblatex and biberAuthor name not printing in Bibliography Topic is solved

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

Postby Upasana » Tue Mar 30, 2021 1:14 am

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 :
Ref1.PNG
inproceedings{bansal2019data
Ref1.PNG (14.1 KiB) Viewed 310 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 :
Ref2.PNG
article{breiman2001random
Ref2.PNG (4.5 KiB) Viewed 310 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 :
Ref3.PNG
article{chebrolu2005feature
Ref3.PNG (35.69 KiB) Viewed 310 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 :
Ref4.PNG
article{moustafa2017hybrid
Ref4.PNG (41.15 KiB) Viewed 310 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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9678
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Mar 30, 2021 9:20 pm

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:

\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

Postby Upasana » Wed Mar 31, 2021 12:55 am

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.

\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
\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):

\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: 9678
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Mar 31, 2021 1:18 am

That's better!

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

\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:

\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

Postby Upasana » Sun Apr 04, 2021 1:08 am

Stefan Kottwitz wrote:That's better!

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

\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: 9678
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Apr 04, 2021 1:50 am

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: 287
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sun Apr 04, 2021 9:37 am

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

Postby Upasana » Tue Apr 06, 2021 12:16 am

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 161 times
B.PNG
B.PNG (26.08 KiB) Viewed 161 times
M.PNG
M.PNG (86.53 KiB) Viewed 161 times
T.PNG
T.PNG (35.83 KiB) Viewed 161 times

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

Postby Upasana » Tue Apr 06, 2021 12:18 am

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: 287
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Tue Apr 06, 2021 7:11 pm

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
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


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 4 guests