From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \startquotation, \cite and footnotes
Date: Sun, 03 Dec 2006 15:14:36 +0100 [thread overview]
Message-ID: <4572DBCC.3090100@elvenkind.com> (raw)
In-Reply-To: <17B80BB1-3B68-4315-9BAF-57B1AFC7935D@mpq.mpg.de>
Oliver Buerschaper wrote:
> Hi,
>
> I've been wondering whether someone (perhaps Taco?) can give me a
> hint on the following:
>
> 1. Is there an automated way to place citations into footnotes? So
> whenever I use \cite in the running text it should produce a footnote
> with the reference alongside the usual footnotes. However, when \cite
> is invoked within a footnote it should just type out the reference
> inline (in the footnote, of course ;-). So far I've done this
> manually with \footnote{\cite{key}} (which at times produced its own
> strange results like two footnote blocks on the same page).
There is no other way. If you strangeness as a result from this,
then it is a bug in the footnote handling that is (should be)
unrelated to the bibliography module.
> 2. When typesetting a quotation block I'd like to add a reference
> directly after the closing quotation marks. However, including the
> \cite command before \stopquotation places the reference before the
> closing marks, and moving \cite out of the \start \stop block makes
> the reference appear on a new line ...
The next solution is a bit rude, but works:
% First define an internal version of quotations. It will
% typeset the contents of the macro \MyMagic at the end,
% just after the symbol.
%
\definedelimitedtext
[myquotation]
[left={\symbol[leftquotation]},
right={\symbol[rightquotation]\MyMagic},
leftmargin=standard]
% And this is simply a wrapper for ease of use
%
\long\def\startcitedquotation[#1]#2\stopcitedquotation
{\bgroup
\def\MyMagic{~\cite[#1]}
\startmyquotation #2\stopmyquotation
\egroup}
% usage:
\starttext
\startcitedquotation[schmitz2006]
overly beautiful pusillanimous sesquipedalian longwinded
\stopcitedquotation
\stoptext
Best, Taco
next prev parent reply other threads:[~2006-12-03 14:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 12:49 Oliver Buerschaper
2006-12-03 14:14 ` Taco Hoekwater [this message]
2006-12-03 21:18 ` Oliver Buerschaper
2006-12-04 9:51 ` Taco Hoekwater
2006-12-06 20:26 ` Oliver Buerschaper
2006-12-07 18:11 ` new context release Taco Hoekwater
2006-12-07 19:02 ` Renaud Aubin
2006-12-07 22:27 ` Hans Hagen
2006-12-08 18:07 ` Renaud Aubin
2006-12-08 18:11 ` Renaud Aubin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4572DBCC.3090100@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).