BibTeX, biblatex and biber ⇒ Author name not printing in Bibliography
Author name not printing in Bibliography
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
@article{breiman2001random,
title={Random forests},
author={Breiman, Leo},
journal={Machine learning},
volume={45},
number={1},
pages={5--32},
year={2001},
publisher={Springer}
}
output : @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{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{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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Author name not printing in Bibliography
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},
Click on "Run LaTeX here" to see the output.
Stefan
Author name not printing in Bibliography
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}
Code: Select all
\documentclass[a4paper,12pt,leqno,openbib,oneside]{memoir} %This is a change done by Upasana to make itonesideso all pages have same margin __works for PDF.%%%% Make sure to use the original command if needto print thesis double sided%%%%%
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
Reason: code marked
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Author name not printing in Bibliography
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}
\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},
Author name not printing in Bibliography
Hi Stefan,Stefan Kottwitz wrote:That's better!
Looks like you only need to add the optionoldfontcommands
to the document class:
The reason is, that your bibliography style uses the obsoleteCode: Select all
\documentclass[a4paper,12pt,leqno,openbib,oneside,oldfontcommands]{memoir}\sc
command for the author names, that's not working any more by default.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Author name not printing in Bibliography
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
Author name not printing in Bibliography
KR
Rainer
Author name not printing in Bibliography
Hirais 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
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 (48.55 KiB) Viewed 29012 times
-
- B.PNG (26.08 KiB) Viewed 29012 times
-
- M.PNG (86.53 KiB) Viewed 29012 times
-
- T.PNG (35.83 KiB) Viewed 29012 times
Author name not printing in Bibliography
Thank you for helping me look through the code. Really appreciate your time and effort.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
Author name not printing in Bibliography
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.Upasana wrote:I did a workaround by modifying the first name a bit so that the entry is different and now it prints well.
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},

KR
Rainer