BibTeX, biblatex and biberAdditional Space after Colon in References

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
wonder
Posts: 3
Joined: Sat Feb 11, 2012 7:52 am

Additional Space after Colon in References

Post by wonder »

Dear community members,

Here is one question I could not figure out. I really appreciate if anyone could help me. I go through the forum and could not find a solution.

I am editing the reference list. The following is the standard commands.

Code: Select all

\nocite{*}
\bibliographystyle{plainnat}
\bibliography{D:/economics/dataset}
Here is one example of the generated references.
George J. Borjas. Ethnicity, neighborhoods, and human-capital externalities. American Economic Review, 85(3):365-390, 1995.
Does anyone know how to insert a space between the “:” and page number for each reference.

Many thanks.
Last edited by localghost on Fri May 03, 2013 5:33 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Additional Space after Colon in References

Post by localghost »

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX nearly at the same time and already has an accepted answer. Please read what our administrator thinks about that.
Board Rules wrote:A crossposting is always contra-productive. But there is nothing really against it as long as it is mentioned. This means that a direct link has to be added. So other users who want to help are preserved from double efforts and waste of time.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Additional Space after Colon in References

Post by cgnieder »

I'd like to repeat the answer given by Barbara Beeton on TeX.sx here as well. She suggested to open the file plainnat.bst and look for the functions
  • FUNCTION {format.vol.num.pages}
    [*]FUNCTION {format.vol.num.eid}
There one would find the lines

Code: Select all

{ ":\penalty0 " * pages n.dashify * }
and

Code: Select all

{ ":\penalty0 " * eid * }
where \penalty0 could be replaced by a space. The changed file should be saved under a different name, myplainnat.pst, say, and then be used by

Code: Select all

\bibliographystyle{myplainnat}
Regards
site moderator & package author
Post Reply