Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Some journals, such as Phys. Rev. B., use unusual page numbering conventions, such as 081401-1–081401-4. (Depending on the way this gets rendered by your computer, you may not be able to discern that the center dash is an en-dash and the others are hyphens, however it's clear to see the difference in my compiled document)

This poses a problem as BibTeX appears to turn all of my hyphens into en-dashes. Wrapping the pages field in double curly braces doesn't seem to do anything. How can I get BibTeX to respect this convention?

I am using the IEEE transactions bibstyle (ieeetr)

share|improve this question
    
Which .bst file do you use? –  Joseph Wright Jun 28 '11 at 8:32
    
ieeetr - amended my question, apologies. –  Richard Terrett Jun 28 '11 at 8:36
add comment

2 Answers

up vote 7 down vote accepted

The BibTeX stack language does not taken any notice of { and } apart from when doing case-changing (which is a built-in function). So instead you need to hide the hyphen some other way. One approach is to use a macro

\documentclass{article}
\begin{filecontents}{test.bib}
@preamble{{\providecommand*\hyphen{-}}}

@article{test,
  author  = "Other, A. N.",
  journal = "J. Irrep. Res.",
  title   = "Some things I did",
  pages   = "081401\hyphen 1--081401\hyphen4",
  year    = "2011"
}
\end{filecontents}
\begin{document}
\nocite{*}
\bibliography{test}
\bibliographystyle{ieeetr}
\end{document}
share|improve this answer
    
It would be possible to rewrite the standard BibTeX n.dashify function to respect { ... } protection. However, that would be awkward and would require a customised .bst file. Modifying at the .bib end should make the solution more portable. (Most BibTeX styles use n.dashify.) –  Joseph Wright Jun 28 '11 at 9:03
    
That works, thankyou very much for your time. For ease of reading I wrapped the page numbers in the \hyphen{} command you specified. –  Richard Terrett Jun 28 '11 at 11:58
add comment

The standard way to cite such journals seems to be "081401" or "081401 (4 pages)". Many .BSTs will format this way if you include something like

eid = {081401},
numpages = {4},

You should still include the "pages" field for the benefit of those BSTs that do not understand EID (electronic identifier, which I believe was first introduced by APS).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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