LaTeX forum ⇒ BibTeX, biblatex and biberName and author number changes in unsrnat.bst not reflecting in bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
novicegeek
Posts: 1
Joined: Mon Oct 30, 2017 12:04 pm

Name and author number changes in unsrnat.bst not reflecting in bibliography

Postby novicegeek » Mon Oct 30, 2017 12:20 pm

I am working on customising the unsrnat.bst file as per my requirements. I have already edited it to remove the url and doi. This works well. After checking different posts in the forum, I also edited the code to have the first and the middle name initials and the full last name. But, this change to the author name does not reflect in the bibliography.
  1. { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=


Secondly, abbreviations are shown in lowercase, whereas I would like to have them in uppercase. I also changed the code to specify the number of authors after which et al should be used. But even this does not reflect in the bibliogrpahy.

  1. FUNCTION {format.names}
  2. { 's :=
  3. #1 'nameptr :=
  4. s num.names$ 'numnames :=
  5. numnames 'namesleft :=
  6. { namesleft #0 > }
  7. { s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't :=
  8. nameptr #1 >
  9. {
  10. nameptr #3
  11. #1 + =
  12. numnames #5
  13. > and
  14. { "others" 't :=
  15. #1 'namesleft := }
  16. 'skip$
  17. if$
  18. namesleft #1 >
  19. { ", " * t * }
  20. { numnames #2 >
  21. { "," * }
  22. 'skip$
  23. if$
  24. t "others" =
  25. { " et~al." * }
  26. { " and " * t * }
  27. if$
  28. }
  29. if$
  30. }
  31. 't
  32. if$
  33. nameptr #1 + 'nameptr :=
  34. namesleft #1 - 'namesleft :=
  35. }
  36. while$
  37. }


Can someone please help me with this? I have alos attached the customised bst file with this post.
At present the a biblipgraphic entry looks like this:

Norris, Jeremy L and Cornett, Dale S and Mobley, James A and Andersson, Malin and Seeley, Erin H and Chaurand, Pierre and Caprioli, Richard M. Processing maldi mass spectra to improve mass spectral direct tissue analysis. Int J Mass Spectrom, 260(2):212{221, 2007.


Within this, only the initials of the first name should be visible and abbreviation like "maldi" should be in uppercase. Also, the connecting "and: between the author names should be replaced by comma.

Here is the corresponding bib entry:
  1. @Article{norris07processing,
  2. author = {Norris, Jeremy L and Cornett, Dale S and Mobley, James A and Andersson, Malin and Seeley, Erin H and Chaurand, Pierre and Caprioli, Richard M},
  3. title = {Processing MALDI mass spectra to improve mass spectral direct tissue analysis},
  4. journal = {Int J Mass Spectrom},
  5. year = {2007},
  6. volume = {260},
  7. number = {2},
  8. pages = {212--221},
  9. abstract = {Profiling and imaging biological specimens using MALDI mass spectrometry has significant potential to contribute to our understanding and diagnosis of disease. The technique is efficient and high-throughput providing a wealth of data about the biological state of the sample from a very simple and direct experiment. However, in order for these techniques to be put to use for clinical purposes, the approaches used to process and analyze the data must improve. This study examines some of the existing tools to baseline subtract, normalize, align, and remove spectral noise for MALDI data, comparing the advantages of each. A preferred workflow is presented that can be easily implemented for data in ASCII format. The advantages of using such an approach are discussed for both molecular profiling and imaging mass spectrometry.},
  10. doi = {10.1016/j.ijms.2006.10.005},
  11. file = {NorrisEtAl_ProcessingMALDIMassSpectraDirectTissueAnalysis_IJMS_2007.pdf:2007/NorrisEtAl_ProcessingMALDIMassSpectraDirectTissueAnalysis_IJMS_2007.pdf:PDF},
  12. keywords = {Profiling; Imaging; Mass spectrometry; MALDI; Pre-processing},
  13. owner = {adm},
  14. publisher = {Elsevier},
  15. timestamp = {2015.01.07}
  16. }
Attachments
myunsrtnat.bst
The customized myunsrtnat.bst file
(23.87 KiB) Downloaded 5 times

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Oct 31, 2017 9:31 am

I get lots and lots and lots of errors, because the bibstyle file has errors.

Have you thought about using the modern biblatex? https://en.wikibooks.org/wiki/LaTeX/Bib ... _and_biber

  1. \begin{filecontents}{\jobname.bib}
  2. @Article{norris07processing,
  3. author = {Norris, Jeremy L and Cornett, Dale S and Mobley, James A and Andersson, Malin and Seeley, Erin H and Chaurand, Pierre and Caprioli, Richard M},
  4. title = {Processing MALDI mass spectra to improve mass spectral direct tissue analysis},
  5. journal = {Int J Mass Spectrom},
  6. year = {2007},
  7. volume = {260},
  8. number = {2},
  9. pages = {212--221},
  10. doi = {10.1016/j.ijms.2006.10.005},
  11. file = {NorrisEtAl_ProcessingMALDIMassSpectraDirectTissueAnalysis_IJMS_2007.pdf:2007/NorrisEtAl_ProcessingMALDIMassSpectraDirectTissueAnalysis_IJMS_2007.pdf:PDF},
  12. keywords = {Profiling; Imaging; Mass spectrometry; MALDI; Pre-processing},
  13. owner = {adm},
  14. publisher = {Elsevier},
  15. timestamp = {2015.01.07}
  16. }
  17. \end{filecontents}
  18. \documentclass{article}
  19. \usepackage[giveninits=true,doi=false,url=false,minbibnames=3]{biblatex}
  20. \addbibresource{\jobname.bib}
  21. \begin{document}
  22. \cite{norris07processing}
  23. \printbibliography
  24. \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 3 guests