Re: Help needed for changing style of \footcite

Stefan Blum <[email protected]> Thu, 15 Jun 2006 17:30:40 +0200
Newsgroups gmane.comp.tex.bibtex.jurabib.user
Message-ID <[email protected]>
Thanks, but that solves the problem in only the case of one argument. However, 
\cite can take 3 arguments max - i.e. when citing a @COMMENTED... I found 
something similar in jurabib.sty (the definition of \footcite} where the 
original command is simply a test of how many arguments there are - and 
referring the rest to different functions (jb@footcite, jb@@footcite, 
jb@@@footcite), depending on how many arguments there are.

Thus, I adapted this piece of code to get:

\makeatletter
\newcommand*{\fc}{%
 \begingroup
  \jb@deactivate@babel%
  \@ifnextchar[{\fc@}{\fc@[]}}%
\newcommand*{\fcn@}{}%
\def\fc@{%
  \@ifnextchar[{\fcn@@}{\fcn@@[]}%
}
\def\fcn@@[#1]{%
  \@ifnextchar[{\fcn@@@[#1]}{\fcn@@@[][#1]}%
}
\def\fcn@@@[#1][#2]#3{%
  \footnote{~\cite[#1][#2]{#3}}%
 \endgroup
}
\makeatother

(I understand what that does, but would have never been able to come up with 
it myself - funny how you can use general programming knowledge from the 
past ;-) )

Thanks for your help!

Best regards, Stefan


On Thursday 15 June 2006 09:44, Carsten Ziegert wrote:
> The easiest way:
>
> \newcommand{\fc}[1]{\footnote{~\cite{#1}}}
> \begin{document}
> ...
> \fc{whatever}
>
> Carsten
>
> Am Donnerstag, den 15.06.2006, 07:27 +0200 schrieb Stefan Blum:
> > Dear all,
> >
> > I am currently working on a legal paper and would like to slightly change
> > the way \footcite generates footnotes. I'd like each footnote to be
> > prefixed by a single space in order to seperate the footnote-number and
> > the footnote text. While I could manually do this by using
> > \footnote{~\cite{whatever}.}, I'd prefer to have it done automatically to
> > keep things clean.
> >
> > Any ideas on how to accomplish this?
> >
> > Thanks for your help in advance,
> >
> > Stefan
>
> --
> Carsten Ziegert
> http://www.cmziegert.org
> Semantic Analysis:
> http://www.cmziegert.org/smart
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

-- 

Please remember -- this is an international english speaking mailing list!

If you have a problem, please provide a complete minimal example document (with a small bibliography database), which runs out of he box without any superfluous packages loaded, otherwise we could not help. 
Yahoo! Groups Links

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

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