BibTeX, biblatex and biber ⇒ Editing unsrt output ...or similar .bst package?
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Editing unsrt output ...or similar .bst package?
Hi, I've written my thesis and need to edit the output of my references/biblography. I used the unsrt.bst package for all my references because I (a) needed to cite things using the [1,2,5] format in the body of work, and I (b) have the bibliography set up so the refs are ordered as they were cited in the body of work.
Now here's my problem/question/issue... As of now, the output for the articles I've referenced looks like this:
[27] A. Author, C. O. Author. This would be the title of the paper. Journal Title, vol(issue): page-range, year.
However, I cannot have the Journal Title underlined and I do not know how to edit this or ammend this. Is there any way to un-underline it while keeping the function of unsrt? Ideally I should have the title of the paper italicised but if it's too much trouble I can just 'skip' that.
So in short I would ideally like the ref to look like the following in my bibliograhy:
[27] A. Author, C. O. Author. This would be the title of the paper. Journal Title, vol(issue): page-range, year.
If anyone has ANY idea how to help me, please let me know... or alternatively if there is a package SIMILAR to the unsrt one that will give me the output I desire, let me know! Thanks in advance!
Ricky
Now here's my problem/question/issue... As of now, the output for the articles I've referenced looks like this:
[27] A. Author, C. O. Author. This would be the title of the paper. Journal Title, vol(issue): page-range, year.
However, I cannot have the Journal Title underlined and I do not know how to edit this or ammend this. Is there any way to un-underline it while keeping the function of unsrt? Ideally I should have the title of the paper italicised but if it's too much trouble I can just 'skip' that.
So in short I would ideally like the ref to look like the following in my bibliograhy:
[27] A. Author, C. O. Author. This would be the title of the paper. Journal Title, vol(issue): page-range, year.
If anyone has ANY idea how to help me, please let me know... or alternatively if there is a package SIMILAR to the unsrt one that will give me the output I desire, let me know! Thanks in advance!
Ricky
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Editing unsrt output ...or similar .bst package?
There are lots of pre-defined styles that might help, or you could use custom-bib, or you could edit unsrt.bst (with a new name). What subject area are you in?
Joseph Wright
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Re: Editing unsrt output ...or similar .bst package?
Hi Joseph, well firstly I was mentioning 'packages', but I did mean 'styles'. Sorry! Secondly, the subject area is physics. Generally the title would NOT be included in research papers, etc, but it's the general style/format for the university, but either way, the research journal title would not be underlined as the unsrt style is doing. Sometimes it can be italicised depending on the journal.
As for creating my own, I know LaTeX enough to do the general formatting and even some of the trickier things (both thanks to wikibook latex and other forums) but I'm not sure I'd have the know-how to do it properly myself. I opened the unsrt.bst file (a copy of it!) just to look through and see if i can edit out the underlining -- but it was 1000 lines of code and the parts I found and assumed would deal with commanding the journal's title to output as underlined just was not what I expected. I thought there would just be a \uline in there that i could change or delete...
Also I had a look through quite a few of the other styles but none of them really suited as a substitution for the unsrt that I aleady used
I still reckon that editing the unsrt.bst code would be easiest, but I just dont know where/how to edit it. Any suggestions?
Ricky
As for creating my own, I know LaTeX enough to do the general formatting and even some of the trickier things (both thanks to wikibook latex and other forums) but I'm not sure I'd have the know-how to do it properly myself. I opened the unsrt.bst file (a copy of it!) just to look through and see if i can edit out the underlining -- but it was 1000 lines of code and the parts I found and assumed would deal with commanding the journal's title to output as underlined just was not what I expected. I thought there would just be a \uline in there that i could change or delete...
Also I had a look through quite a few of the other styles but none of them really suited as a substitution for the unsrt that I aleady used

I still reckon that editing the unsrt.bst code would be easiest, but I just dont know where/how to edit it. Any suggestions?
Ricky
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Editing unsrt output ...or similar .bst package?
There is something odd going: it's been a while since I used unsrt, so I read it through. As I suspected, you should be getting italic text and not underlined. So I think you are loading something else which is redefining \emph. Can you post a minimal example of your LaTeX code?
Joseph Wright
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Re: Editing unsrt output ...or similar .bst package?
The only things in relation to bibtex that I have would be...
In my preamble:
\usepackage[sort&compress]{natbib}
\usepackage{chapterbib}
\renewcommand\bibname{References}
Each chapter is it's own .tex file and at the start of each I have:
\bibliographystyle{unsrt}
% Body of chapter here...
% Then at the end of each chapter/.tex-file have:
\newpage
\bibliography{Chapter7Refs}
Other than that, here's just a sample of a bibtex reference I have (most all are @article):
@article{Sun2004,
title = "Growth of aligned {ZnO} nanorod arrays by catalyst-free pulsed laser deposition methods",
journal = "Chemical Physics Letters",
volume = "396",
number = "1-3",
pages = "21-26",
year = "2004",
author = "Y. Sun and G. M. Fuge and M. N. R. Ashfold"
}
And as you said... when I looked through the code, I found there was a definied \em for the title... and nowhere in my thesis did I redefine \em as \uline or something similar! The ONLY thing I've redefined at all was what I included above -- renaming the Bibliography as "References". hah, so I haven't a clue! -- like I said it was not what I expected to see there so I thought that I was not looking at the correct portion of the code.
Also there's no rush on replying back for the moment... I'm getting fairly tired at this point and just might be calling it quits for the night/morning. (currently 4:30am here). Thank you for looking into it!
In my preamble:
\usepackage[sort&compress]{natbib}
\usepackage{chapterbib}
\renewcommand\bibname{References}
Each chapter is it's own .tex file and at the start of each I have:
\bibliographystyle{unsrt}
% Body of chapter here...
% Then at the end of each chapter/.tex-file have:
\newpage
\bibliography{Chapter7Refs}
Other than that, here's just a sample of a bibtex reference I have (most all are @article):
@article{Sun2004,
title = "Growth of aligned {ZnO} nanorod arrays by catalyst-free pulsed laser deposition methods",
journal = "Chemical Physics Letters",
volume = "396",
number = "1-3",
pages = "21-26",
year = "2004",
author = "Y. Sun and G. M. Fuge and M. N. R. Ashfold"
}
And as you said... when I looked through the code, I found there was a definied \em for the title... and nowhere in my thesis did I redefine \em as \uline or something similar! The ONLY thing I've redefined at all was what I included above -- renaming the Bibliography as "References". hah, so I haven't a clue! -- like I said it was not what I expected to see there so I thought that I was not looking at the correct portion of the code.
Also there's no rush on replying back for the moment... I'm getting fairly tired at this point and just might be calling it quits for the night/morning. (currently 4:30am here). Thank you for looking into it!
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Editing unsrt output ...or similar .bst package?
Please post a minimal example showing the problem, not just snippets. I suspect that the issue is nothing to do with "packages to do with BibTeX" as the actual BibTeX part of the operation is working just fine. A minimal example typically starts \documentclass and ends \end{document}.
Joseph Wright
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Re: Editing unsrt output ...or similar .bst package?
OK sorry joseph... i thought the trouble might be there. I'm not sure how minimal i should be with an example becuase there's a lot in there to be honest. Also I've split my preamble and chapters each into seperate .tex files (each in their own folder). Below, I'll put what's in my preamble and when i 'call' the other .tex with \include, I'll put it in a commented-out 'box'. I dont know if that's even what you were looking for...?
Before I put the example, I have a question. I was trying to play around with editing the unsrt.bst file and it didnt work. I was just renaming them to somehting like unsrtmodified.bst and running that style. However, at last resort, i noticed that for some reason, if I EXACTLY copy and rename the original unsrt.bst file (so unsrt and unsrtmodified are identical), it would not create a bibliography (and the normal [3, 4] refs in the body would just be question marks) Now i know there's question marks insead of [#]-like refs because the biblio wasnt created, but my question is why wouldn't the renamed identical copy work even if i call it as: \bibliographystyle{unsrtmodified} ? Is there some LaTeX rule where it won't recognise new style file names?
Anyhow, here's (I hope!!!!) an example of the relevant text I think you were asking for....
\documentclass[12pt]{report}
\usepackage[sort&compress]{natbib}
\usepackage{chapterbib}
\begin{document}
\renewcommand\bibname{References}
\pagenumbering{roman}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\clearpage\pagenumbering{arabic}
\include{1_Introduction/Chapter1}
%%%%%%%%% Here's a sample from the Chapter1.tex I just called in \include %%%%%%%%%
\bibliographystyle{unsrt}
\chapter[Introduction]{Introduction}
This thesis... example of citing a reference~\cite{Sun2004} and so on...
\newpage
\bibliography{Chapter1Refs}
%%%%%%%%%%%%%%%%%%%% End of the sample from the Chapter1.tex %%%%%%%%%%%%%%%%%%%%%%
\end{document}
And for your info, the reference 'Sun2004' i cited in he example is the one I posted in the last post/example.
Now I have NO clue if that's what you were looking for.... if not, please excuse me becuase like i said, i know LaTeX enough to get by with writing the thesis, but not enouh maybe for these finer points....
Before I put the example, I have a question. I was trying to play around with editing the unsrt.bst file and it didnt work. I was just renaming them to somehting like unsrtmodified.bst and running that style. However, at last resort, i noticed that for some reason, if I EXACTLY copy and rename the original unsrt.bst file (so unsrt and unsrtmodified are identical), it would not create a bibliography (and the normal [3, 4] refs in the body would just be question marks) Now i know there's question marks insead of [#]-like refs because the biblio wasnt created, but my question is why wouldn't the renamed identical copy work even if i call it as: \bibliographystyle{unsrtmodified} ? Is there some LaTeX rule where it won't recognise new style file names?
Anyhow, here's (I hope!!!!) an example of the relevant text I think you were asking for....
\documentclass[12pt]{report}
\usepackage[sort&compress]{natbib}
\usepackage{chapterbib}
\begin{document}
\renewcommand\bibname{References}
\pagenumbering{roman}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\clearpage\pagenumbering{arabic}
\include{1_Introduction/Chapter1}
%%%%%%%%% Here's a sample from the Chapter1.tex I just called in \include %%%%%%%%%
\bibliographystyle{unsrt}
\chapter[Introduction]{Introduction}
This thesis... example of citing a reference~\cite{Sun2004} and so on...
\newpage
\bibliography{Chapter1Refs}
%%%%%%%%%%%%%%%%%%%% End of the sample from the Chapter1.tex %%%%%%%%%%%%%%%%%%%%%%
\end{document}
And for your info, the reference 'Sun2004' i cited in he example is the one I posted in the last post/example.
Now I have NO clue if that's what you were looking for.... if not, please excuse me becuase like i said, i know LaTeX enough to get by with writing the thesis, but not enouh maybe for these finer points....
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Re: Editing unsrt output ...or similar .bst package?
Hi Joseph,
So i've been trying to sort out the issue of tweaking the output of my bibliography references, and I eventually tried to make my own... well using a MAKEBST or custom-bib progam (...guessing you might know if it as you suggested it?)
Anyhow i've finally got it so my references look the way I want them to in the bibliography.... however, now for some reason, in the main body of the document when i Textiy it, instead of my ref-links looking like [2, 3, 5] they look like this: (2; 3; 5) Any ideas?
As an aside... I randomly just tested the command \emph{SomeRandomText} and sure enough it was UNDERLINED instead of being ITALIC-ish. I scoured my .tex file and just cannot see where it might be renamed. So i'm giving up on that one (especially since i got the refs to work now... unless i cannot sort out this [2,3,5]/(2;3;5) issue.
I'm going to re-post this as a new topic, so if you happen to see my other post, don't be annoyed. Again thanks for the help so far!!
Ricky
So i've been trying to sort out the issue of tweaking the output of my bibliography references, and I eventually tried to make my own... well using a MAKEBST or custom-bib progam (...guessing you might know if it as you suggested it?)
Anyhow i've finally got it so my references look the way I want them to in the bibliography.... however, now for some reason, in the main body of the document when i Textiy it, instead of my ref-links looking like [2, 3, 5] they look like this: (2; 3; 5) Any ideas?
As an aside... I randomly just tested the command \emph{SomeRandomText} and sure enough it was UNDERLINED instead of being ITALIC-ish. I scoured my .tex file and just cannot see where it might be renamed. So i'm giving up on that one (especially since i got the refs to work now... unless i cannot sort out this [2,3,5]/(2;3;5) issue.
I'm going to re-post this as a new topic, so if you happen to see my other post, don't be annoyed. Again thanks for the help so far!!
Ricky
-
- Posts: 8
- Joined: Sat Jan 09, 2010 8:50 am
Re: Editing unsrt output ...or similar .bst package?
Joseph,
Thank you for all the help... I've just finally sorted out the issue I had with [2, 3, 5] being displayed as (2; 3; 5). I only just realised that if I added:
\bibpunct{(}{)}{;}{a}{,}{,}
into my preamble and changed it to:
\bibpunct{[}{]}{,}{a}{,}{,}
I got EXACTLY what I needed! Again thanks for all the previous help!!
Thank you for all the help... I've just finally sorted out the issue I had with [2, 3, 5] being displayed as (2; 3; 5). I only just realised that if I added:
\bibpunct{(}{)}{;}{a}{,}{,}
into my preamble and changed it to:
\bibpunct{[}{]}{,}{a}{,}{,}
I got EXACTLY what I needed! Again thanks for all the previous help!!