Comprehensive TeX Archive Network

Direc­tory biblio/bibtex/utils/fixbbl


This is a crude hack to fix a bibtex bug that comes up using
package url. The bug is that, when the url is "long", it gets split
into shorter lines by a %. One might expect this % to just eat up the
newline that follows it and disappear; unfortunately, however, it
instead appears in the printed document.

This utility strips away the % and rejoins the lines together. It
should be run on the .bbl file after bibtex generates it and before
latex uses it. (Yeah, I don't use the stupid mixed capitals. So?)

     python fixbbl.py paper.bbl
         Rewrite paper.bbl as follows. Any line ending in % has the %
         stripped and is joined to the next line. The original file is left
         in paper.bbl.bak. If a previous .bak file existed, it is overwritten.

     python fixbbl.py
         Works as a filter on stdin/stdout, if that's what you like.

(NB: if #! works on your system, you probably know that you can leave
out the 'python' in the above, after chmodding the script.)

Frank Stajano, http://www.uk.research.att.com/~fms/, http://i.am/fms/
(c) AT&T Laboratories Cambridge
development started 2000-02-27

fixbbl – Patch bib­li­ogra­phies in­ap­pro­pri­ately bro­ken by BibTeX

This Python script deals with the well-known BibTeX bug(fea­ture) whereby BibTeX in­serts a "%" in a url to cause the bib­li­og­ra­phy line to fit into its mi­nus­cule vi­sion of what is an ac­cept­able in­put line for .

Li­cense Free li­cense not oth­er­wise listed, or more than one free li­cense ap­plies
Main­tainer Frank Sta­jano
Topics BibTeX ci­ta­tion sup­port
Guest Book Sitemap Contact Contact Author