I am trying to customize the bibtex environment using spbasic.bst file according to this answer. I would like to italicize journal titles while underlining book titles.
Now if we provide command \usepackage{ulem}, then all the titles (journal and book) are underlined. If it is suppressed, then all titles are italicized. How can I separate the two?