bibulus-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bibulus-dev] Comments on bibulus.sty


From: Morten Høgholm
Subject: Re: [Bibulus-dev] Comments on bibulus.sty
Date: Sun, 20 Aug 2006 22:48:12 +0200
User-agent: Opera Mail/9.01 (MacPPC)

On Sun, 20 Aug 2006 22:36:27 +0200, Thomas Widmann <address@hidden> wrote:

Morten Høgholm <address@hidden> wrote a long time
ago:

A long time indeed...

1) \cite should be a robust command, so use \DeclareRobustCommand
for it.

Hmmmm, bibulus.sty at the moment has the following definition:

\def\cite{%
  \bgroup% Terminated by address@hidden
  address@hidden
  address@hidden@withafter}%
  address@hidden@plain}%
}

I haven't looked at this for a long time -- what is it doing?  Is it
just trying to allow an optional argument in square brackets?  How
does that fit in with \DeclareRobustCommand?

Something using address@hidden or a similar look-ahead should always be robust in case it finds itself in a moving argument, which tends to happen quite often. Using \DeclareRobustCommand to define it instead of \def will work.
--
Morten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]