[texhax] Questions about Bibtex page range setting
阮铮
rz1991 at foxmail.com
Sat Jun 2 04:23:43 CEST 2012
Hi,
It is a matter of font specification. What puzzled me is that almost all of the english serif font at my hand will generate two dashes. The default looks bad but one dash. I tried to set "pages = {7{-}23}" as you suggested, but that changed nothing. I am not sure where should I put "\def\nbhyph{-\nobreak}" in my .tex source file. Is it in the preamble? If that it so, I didn't see my desired output? Can you give me more hints?
Thanks
Ruan Zheng
------------------ Original ------------------
From: "bnb"<bnb at ams.org>;
Date: Sat, Jun 2, 2012 02:33 AM
To: "Thomas Schneider"<schneidt at mail.nih.gov>;
Cc: "????"<rz1991 at foxmail.com>; "texhax"<texhax at tug.org>;
Subject: Re: [texhax] Questions about Bibtex page range setting
On Fri, 1 Jun 2012, Thomas Schneider wrote:
Ruan:
> Well, I do not just want to keep it in the database. I am seeking
> for a method to generate a single dash in my final output, since
> latex will always put two dashes in the pdf file. Do you have any
> suggestions?
Not being an expert on these things, I created a PDF with an entry
from a double dash in the bib database. This comes out as a single
dash when cutting and pasting. It's a unicode double byte character.
It does NOT look like two dashes in Skim on Mac OS X. I get 3 unicode
bytes cutting from an Acrobat display. In acrobat it looks and
handles like one character.
the question isn't how to get an en-dash.
(en-dashes are used to indicate spans, for
example of pages, 23--25, or years, 1954--63.)
ruan wants a simple hyphen, which might be
used to indicate a page within a part, A-23,
instead of a span. (i'm using a letter here
to make the distinction more obvious.)
bibtex apparently doesn't want to allow this.
there must be a way, using braces, perhaps
pages = {7{-}23},
if not, then defining a command such as
\def\nbhyph{-\nobreak}
and having this resolved at the latex level
rather than by bibtex, is probably the best
that can be suggested.
-- bb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20120602/96a6869f/attachment.html>
More information about the texhax
mailing list