1

Can someone please tell me the problem?

My pages in bibliography should be in "(" and ")" - exampe: (71-83).

enter image description here

enter image description here

This is the content of the reference: enter image description here

  • 2
    Welcome to TeX.SE! There may be something wrong in the entry whose key is DruckmanKam2011students. Please post its contents. Please also indicate if you've somehow modified the file apalike.bst to have parentheses placed around the pages. (Surrounding the pages with parentheses isn't the default method of this bibliography style.) – Mico Oct 29 '13 at 19:13
  • I have added the content above. – A. F. Oct 29 '13 at 20:46
  • I have also edited my .bst. I have added (1) "(" (2) * extra.label * ")" * – A. F. Oct 29 '13 at 20:53
  • Have you tried changing title to title={Students as Experimental Pariticipants: {A} {D}efense of the "{N}arrow {D}ata {B}ase"} ? – yo' Oct 29 '13 at 21:31
  • Yes, I have. It change nothing. If I remove "* extra.label * ")" * from my .bst, bib works well. – A. F. Oct 29 '13 at 21:34
1

Suppose your version of apalike.bst is called myapalike.bst. In the function format.pages, I suggest you replace the current two lines just below "pages multi.page.check" with

    { " (" pages n.dashify ")" * * }
    { " (" pages ")" * *  }

After saving the file myapalike.bst, either to the directory where your main tex file is located or to a directory that's searched by your TeX distribution (in which case you'll probably need to update the TeX filename database as well), start using it via \bibliographystyle{myapalike}.

  • Thank you, Mico. My bibliography was right, but I would like to know if there was a way to remove the "harmless error message"? :-) – A. F. Oct 30 '13 at 16:43
  • I do that in a moment. When I run BibTex I still receive the message. My function look like this: – A. F. Oct 31 '13 at 7:33
  • FUNCTION {format.pages} { pages empty$ { "" } { pages multi.page.check { " (" pages n.dashify * ")" * * } { " (" pages * ")" * * } if$ } if$ } – A. F. Oct 31 '13 at 7:34
  • 1
    @A.F. - I just noticed that you do not seem to have taken on board the updated code I posted yesterday. You definitely need to delete the * immediately before ")", on both lines. – Mico Oct 31 '13 at 8:37
  • 1
    I'll make a new query in a moment. :-) – A. F. Oct 31 '13 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.