Fix for big space after "trans." and "Ibid."

"Paul Jungwirth" <[email protected]> Fri, 24 Mar 2006 16:33:13 -0500
Newsgroups gmane.comp.tex.bibtex.jurabib.devel
Message-ID <[email protected]>
Hello,

I just started using jurabib, but so far I think it's great! Thank you
for all your effort.

I'm using jurabib v0.6 with jox.bst and the oxford option. I noticed
that jurabib puts too much space after "trans." and "ibid.", because
LaTeX thinks these mark the end of a sentence.

Here is a fix for these two problems, at least in the places where
I've noticed it:

Index: jurabib.sty
===================================================================
--- jurabib.sty	(revision 447)
+++ jurabib.sty	(revision 451)
@@ -1136,9 +1136,9 @@
             }%
         }{%
             \ifthenelse{\equal{#2}{}}{% language missing
-                \trans{} \transby{} #1%
+                \trans{}\ \transby{} #1%
             }{% language given
-                \trans{} \transfrom{}\jbflanguage{#2} \transby{} #1%
+                \trans{}\ \transfrom{}\jbflanguage{#2} \transby{} #1%
             }%
         }%
    }% dot or not?
@@ -2032,6 +2032,7 @@
  \let\jbbtfont\@empty
  \let\jb@formatted@author\@empty
 }%
+% Looks for a period inside the page parameter to \cite:
 \newcommand*{\jb@checkperiod}[1]{\jb@periodfalse\jb@@checkperiod#1.\jb@@end}%
 \newcommand*{\jb@@checkperiod}{}%
 \long\def\jb@@checkperiod#1.#2\jb@@end{%
@@ -4463,10 +4464,13 @@
        \textcolor[named]{WildStrawberry}{%
        \ifjb@debug@br[\fi\ifthenelse{\thejb@cites@in@footnote<2}{\IbidemName}{\IbidemMidName}\ifjb@debug@br]\fi}%
      \else
+	   % This is where we actually print "Ibid.":
        \ifthenelse{\thejb@cites@in@footnote<2}{\IbidemName}{\IbidemMidName}%
        \jb@switchidemofflocallytrue
        \jbnoformatafterstartpagefalse
      \fi
+	 % jb@@newpagecite == the page parameter of the current \cite command
+	 % jb@@lastpagecite == the page parameter of the previous \cite command
      \ifthenelse{\equal{\jb@@newpagecite}{\jb@@lastpagecite}}{\let\jb@@newpagecite\@empty}{}%
      \let\jb@extraspace\@empty
      \let\jbapifont\@empty% <== remove single quotes after ibid.
@@ -5182,7 +5186,9 @@
    }{}%
 }%
 \newcommand*{\jb@before@page@sep}{%
-    \unskip\jb@kern@sep\space%
+	% Don't use \space here, in case we're following an "Ibid.";
+	% we don't LaTeX to think the sentence has ended.
+    \unskip\jb@kern@sep\ %
     \ifjb@ssed@recent@kerned
        \jb@do@ssed@kerning%
     \fi


Hopefully someone else will find this of use!

Paul

--
_________________________________
Pulchritudo splendor veritatis.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jurabib-developer/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/