Re: Modifying a bst file for full page range
BcBob wrote: BcBob wrote: In my last email, i forgot to attach the modified file http://n2.nabble.com/file/n2804517/aip2.bst aip2.bst OK, try this one: FUNCTION {format.vol.num.pages} { volume field.or.null embolden " " swap$ * * pages empty$ 'skip$ { duplicate$ empty$ { pop$ format.pages * } { ", " * format.pages * } if$ } if$ } rh
Re: Modifying a bst file for full page range
BcBob wrote: > > In my last email, i forgot to attach the modified file > http://n2.nabble.com/file/n2804517/aip2.bst aip2.bst > > Bob > > And the bib file http://n2.nabble.com/file/n2805308/BobRefs.bib BobRefs.bib -- View this message in context: http://n2.nabble.com/Modifying-a-bst-file-for-full-page-range-tp2801705p2805308.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Modifying a bst file for full page range
BcBob wrote: In my last email, i forgot to attach the modified file http://n2.nabble.com/file/n2804517/aip2.bst aip2.bst Send you bib file, too. rh
Re: Modifying a bst file for full page range
In my last email, i forgot to attach the modified file http://n2.nabble.com/file/n2804517/aip2.bst aip2.bst Bob BcBob wrote: > > > BcBob wrote: >> >> I am trying to format a bibliography for a paper to a physics journal >> using the aip.bst style (see the attached file). >> >> Now the problem is that it looks this style only gives the first page of >> an article, not the full page range as required by the journal. >> > > rgheck wrote: >> >> Replace this function: >> >> FUNCTION {format.vol.num.pages} >> { volume field.or.null embolden >> " " swap$ * * >> pages empty$ >>'skip$ >>{ duplicate$ empty$ >> { pop$ format.pages.a } >> { ", " * pages first.page * } >> if$ >>} >> if$ >> >> >> } >> >> with: >> >> FUNCTION {format.vol.num.pages} >> { volume field.or.null embolden >> " " swap$ * * >> pages empty$ >>'skip$ >>{ duplicate$ empty$ >> { pop$ format.pages } >> { ", " * format.pages } >> if$ >>} >> if$ >> >> >> } >> > > That does not work so well. It does change the pages to a range but it > messes up other fields. > I am attaching the original aip.bst, the Lyx file I am using to test > http://n2.nabble.com/file/n2803827/DEpaper2.lyx DEpaper2.lyx , > and a ps file of the output. > http://n2.nabble.com/file/n2803827/DEpaper2.ps DEpaper2.ps > > http://n2.nabble.com/file/n2791032/aip.bst aip.bst > -- View this message in context: http://n2.nabble.com/Modifying-a-bst-file-for-full-page-range-tp2801705p2804517.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Modifying a bst file for full page range
BcBob wrote: > > I am trying to format a bibliography for a paper to a physics journal > using the aip.bst style (see the attached file). > > Now the problem is that it looks this style only gives the first page of > an article, not the full page range as required by the journal. > rgheck wrote: > > Replace this function: > > FUNCTION {format.vol.num.pages} > { volume field.or.null embolden > " " swap$ * * > pages empty$ >'skip$ >{ duplicate$ empty$ > { pop$ format.pages.a } > { ", " * pages first.page * } > if$ >} > if$ > > > } > > with: > > FUNCTION {format.vol.num.pages} > { volume field.or.null embolden > " " swap$ * * > pages empty$ >'skip$ >{ duplicate$ empty$ > { pop$ format.pages } > { ", " * format.pages } > if$ >} > if$ > > > } > That does not work so well. It does change the pages to a range but it messes up other fields. I am attaching the original aip.bst, the Lyx file I am using to test http://n2.nabble.com/file/n2803827/DEpaper2.lyx DEpaper2.lyx , and a ps file of the output. http://n2.nabble.com/file/n2803827/DEpaper2.ps DEpaper2.ps http://n2.nabble.com/file/n2791032/aip.bst aip.bst -- View this message in context: http://n2.nabble.com/Modifying-a-bst-file-for-full-page-range-tp2801705p2803827.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Modifying a bst file for full page range
BcBob wrote: I am trying to format a bibliography for a paper to a physics journal using the aip.bst style (see the attached file). Thanks to Paul Rubin's help, I am now able to get Lyx to utilize this to format the bibliography. Now the problem is that it looks this style only gives the first page of an article, not the full page range as required by the journal. BTW, I checked by bibtex database and all my entries include a full page range and other styles like unsrt create entries with the page range. The aip.bst does almost everything I want. So my question is how to modify it so it uses the full range. Please make answers as explicit as possible (e.g. suggesting line numbers in the file) as I am a total beginner at latex, bibtex, etc. Replace this function: FUNCTION {format.vol.num.pages} { volume field.or.null embolden " " swap$ * * pages empty$ 'skip$ { duplicate$ empty$ { pop$ format.pages.a } { ", " * pages first.page * } if$ } if$ } with: FUNCTION {format.vol.num.pages} { volume field.or.null embolden " " swap$ * * pages empty$ 'skip$ { duplicate$ empty$ { pop$ format.pages } { ", " * format.pages } if$ } if$ } That'll get us close. If it still isn't quite right, we'll try again. rh
Modifying a bst file for full page range
I am trying to format a bibliography for a paper to a physics journal using the aip.bst style (see the attached file). Thanks to Paul Rubin's help, I am now able to get Lyx to utilize this to format the bibliography. Now the problem is that it looks this style only gives the first page of an article, not the full page range as required by the journal. BTW, I checked by bibtex database and all my entries include a full page range and other styles like unsrt create entries with the page range. The aip.bst does almost everything I want. So my question is how to modify it so it uses the full range. Please make answers as explicit as possible (e.g. suggesting line numbers in the file) as I am a total beginner at latex, bibtex, etc. TIA Bob http://n2.nabble.com/file/n2791032/aip.bst aip.bst -- View this message in context: http://n2.nabble.com/Modifying-a-bst-file-for-full-page-range-tp2801705p2801705.html Sent from the LyX - Users mailing list archive at Nabble.com.