new LaTeX/BibTeX user here. I've downloaded Bib-it to create my own bibliography style file (*.bst) and it works great! Unfortunately, some of the journals I publish in are obscure and don't have standard styles that I can just download. (Either that, or I'm terrible at searching.)
Anyway, one particular style does not use the page range itself, it only uses the first page given in the range. So, for example, if the page range was
201-205
, the citation (in the bibliography) would just have "p. 201" or something similar, where as most journals would have "p. 201-205". In the database file (*.bib) export by any of my reference managers, under the "pages" heading, it has 201-205
, so for BibTeX to be able to use only the "first" page it'd have to cut that field in half essentially.I have no idea how to do this. I downloaded Bib-it because I took one look at the bibliography style files, scrolled for about five minutes to get to the bottom, said "heck no" and found a tool to do it for me.
Now, there are a few ways I could easily get around it. I could write a little bash script that would erase the "-205" and similar from any line that started out with the "pages" heading. That's easy enough, but not everyone has access to bash. I could also play around with the BibTeX output format in Bookends (my reference manager) and probably get it to only output the first page. But again, this isn't universal. If I were to send this style file to my professor or the internet, it has to work 100%.
Now, does anyone know how I'd do this, or, if you have a format that also only uses the first page in the page range, I could take a look at it and copy it over, however I have not found one.
Either way, if you could help me out that would be great!
EDIT: I've searched for a good hour to an answer to this subject, I've only found one result on G00gle, however that link is currently down, so I've found no help whatsoever.
EDIT 2: I attached a ZIP file with a sample .bib, .tex, and .bst. Just run the .tex through latex, then bibtex, then latex a few times and you should have a working example. I think I also included the .save from Bib-it.
EDIT 3 ... Note: This isn't a problem, everything works as advertised currently, I'm asking how to do something that I have no idea where to start, and providing a working environment to do it with.
EDIT 4: As I suspected, it has something to do with the format.pages.whatever function. The format phjcp uses only the first page, and has a few functions that I bet I could copy and paste over, I'm just not sure where.