Possible bug in 0.61 beta

[email protected] Tue, 24 Oct 2006 23:33:17 +0200
Newsgroups gmane.comp.tex.bibtex.jurabib.devel
Message-ID <[email protected]>
Hello,

Experimenting with changing the shortitlefont, I triggered a bug :

%%
%% This is file `jbtest.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jurabib.dtx  (with options: `jbtesttex')
%% ----------------------------------------
%% Example TeX file for the documentation
%% of the jurabib package v0.61beta
%% Copyright (C) 1999-2006 Jens Berger (http://www.jurabib.org)
%% See jurabib.ins  for the copyright details.
%% 
\documentclass[12pt]{book}
\usepackage[latin1]{inputenc}
\usepackage[%
 citefull=first,%
 %citefull=chapter,%
 %citefull=section,%
 %citefull=all,%
 %
 %authorformat=smallcaps,%
 %authorformat=italic,%
 %authorformat=dynamic,%
 %authorformat=citationreversed,%
 %authorformat=allreversed,%
 %authorformat=firstnotreversed,%
 %authorformat=reducedifibidem,%
 %authorformat=abbrv,%
 %authorformat=and,%
 %authorformat=year,%
 %authorformat=indexed,%
 %
 %annotatorformat=italic,%
 %annotatorformat=normal,%
 %
 %annotatorfirstsep=in,%
 %annotatorfirstsep=comma,%
 %annotatorlastsep=divis,%
 %
 %titleformat=italic,%
 titleformat=all,%
 %titleformat=commasep,%
 %titleformat=colonsep,%
 %titleformat=noreplace,%
 %
 %ibidem=strict,%
 %ibidem=strictdoublepage,%
 %ibidem=nostrict,%
 %ibidem=name,%
 %ibidem=name&title,%
 %ibidem=name&title&auto,%
 %
 %idem=strict,%
 %idem=strictdoublepage,%
 %idem=nostrict,%
 %
 %opcit=true,%
 %opcit=chapter,%
 %opcit=section,%
 %
 %bibformat=tabular,%
 %bibformat=nohang,%
 %bibformat=numbered,%
 %bibformat=ibidem,% use \jbuseidemhrule for a rule
 %bibformat=ibidemalt,%
 %bibformat=compress,%
 %bibformat=raggedright,%
 %
 %crossref=long,%
 %crossref=short,%
 %crossref=dynamic,%
 %
 %superscriptedition=all,%
 %superscriptedition=year,%
 %superscriptedition=switch,%
 %superscriptedition=commented,%
 %superscriptedition=bib,%
 %
 %pages=always,%
 %pages=test,%
 %pages=format,%
 %
 %howcited=all,%
 %howcited=normal,%
 %howcited=compare,%
 %howcited=multiple,%
 %
 %dotafter=bibentry,%
 %dotafter=endnote,%
 %
 %nopublisher=cite,%
 %nopublisher=bib,%
 %nopublisher=both,%
 %
 %see=true,%
 %lookat=true,%
 %human=true,%
 %oxford=true,%
 %chicago=true,%
 %edby=true,%
 %endnote=true,%
 %biblikecite=true,%
 %commabeforerest=true,%
 %round,%
 %square,%
 %annote=true,%
 %citetoend=true,%
 %hypercite=false,%
 %super,
 %lookforgender,
 %silent,%
 %jurabiborder,%
 %config=your_config_filename_here%
]{jurabib}

%%% Change the short title font
\renewcommand{\jbshorttitlefont}[1]{'#1'}

\begin{document}
\bibliography{jbtest}
\bibliographystyle{jurabib}
This is a test\footcite[Rn.~357]{medicus}\footcite[Rn.~78
{broxbgb}\footcite[Rn.~168]{broxbgb}
\newpage
\footcite[Rn.~170]{broxbgb}%
\footcite[Rn.~473]{broxbgb}%
\footcite[Rn.~709]{musielak}%
\footcite[Leptien][\S~167, Rn.~38]{soergel}%
\footcite[\S~15, III, 1]{koehler}%
\footfullcite[Rn. 186]{broxbgb}%
\footcite[Brox][\S~147, Rn.~2]{erm}%
\footcite[Rn.~493]{broxbgb}%
\footcite[Rn.~372]{broxbgb}%
\footcite[Rn.~944]{medicus}%
\footcite[Rn.~949]{huebner}%
\footcite[Brox][\S~167, Rn.~27]{erm}%
\footfullcite{jbtesturl}
\end{document}
%% 
%%
%% End of file `jbtest.tex'.

Look footnote 9 near the end. After the year, jurabib inserts the shortitle
which is empty. If the shortitlefont is '#1' it will insert a double quote.

I was able to get around the bug with :

\renewcommand*{\jb@relaxcommandsforfullcite}{%
 \let\IbidemName\@empty
 \let\jb@@author\@empty
 \let\jb@@title\@empty
 \let\jb@@shorttitle\@empty %% <--- Original has relax
 \let\jbyear\@empty
 \let\jb@checked@edition\@empty
 \let\jb@@newannotatorcite\@empty
 \let\jbhowsepbeforetitle\@empty
 \let\jbapifont\@empty
 \let\jbbtfont\@empty
 \let\jb@formatted@author\@empty
}

But I'm not sure this change does not have some side effect.

Cheers,
Charles



 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/jurabib-developer/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> 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/