[NTG-context] \startquotation, \cite and footnotes
Oliver Buerschaper
oliver.buerschaper at mpq.mpg.de
Wed Dec 6 21:26:11 CET 2006
>> Ok. As for the strange things happening I was able to hunt them down
>> and prepare a simple example (still with the standard
>> \startquotation):
>
> We are looking into this. All footnotes in vertical mode are
> behaving oddly.
Thanks!
>> I tried that one but ran into several problems unfortunately. If
>> \cite inserts anything but a tiny string these words won't be wrapped
>> properly onto a new line. Also if I replace \cite[#1] by \footnote
>> {\cite[#1]} then there will be no footnote at all :-(
>
> The missing linebreak is probably realted to the problem as in the
> other thread, so you just have to wait a little bit longer, until that
> is fixed for this problem to magically go away as well.
Yep, I'll be waiting for some black magic ;-)
> The disappearing footnote may be unfixable within \startquotation. It
> would be easier to define your own start-stop pair for this, because
> \startquotation ... \stopquotation doesn't actually support tacking on
> stuff at the end. Try this instead:
>
> \long\def\startcitedquotation[#1]#2\stopcitedquotation
> {\bgroup \par
> \startnarrower
> \symbol[leftquotation]%
> #2\removeunwantedspaces
> \symbol[rightquotation]%
> \cite[#1]
> \stopnarrower
> \par \egroup}
Works like a charm! Thanks very much for the workaround ... I've
adapted it slightly so that the optional argument is treated as
generic text ... in order to use \cite[], \footnote{\cite[]} or
whatever else I need.
Could this optional argument perhaps be integrated directly in the
usual \startquotation command some day? I guess a lot of people will
need this ... every quotation calls for a proper reference ;-)
Cheers,
Oliver
More information about the ntg-context
mailing list