About me
For students
XNote
Links

Software notes

This page contains some (unsorted) software notes, hints, workarounds for bugs, etc. in the hope that they may be useful to someone but me. I am not responsible if something does not work for you as expected, you break your system or anything else you might do based upon information on this site ;-)

bibtex4word URL bug

Note: The following bug is fixed at least since version 1.66 of bibtex4word.

Bibtex4word version 1.55 and probably previous versions have a bug that incorrectly translates the tilde character in URLs to a non-breakable space. In order to introduce a short fix to this issue, you can open the Bibtex4Word module in the Makro editor of MS Word and introduce the following changes:

For version

Const Version = "$Id: Bibtex4Word.vba,v 1.55 2008/04/21 20:31:18 dmb Exp $"

wrap the statement at line 1754

1754 outtext = Replace(outtext, "~", Chr(160)) ' insert non-breaking spaces

with the following if-clause:

1754 If (outformat And UrlFormat) = 0 Then
1755   outtext = Replace(outtext, "~", Chr(160)) ' insert non-breaking spaces
1756 End If

This prevents URLs like "http://example.com/~user" to be incorrectly transformed to "http://example.com/ user"