From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32025 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: \startquotation, \cite and footnotes Date: Sun, 3 Dec 2006 22:18:17 +0100 Message-ID: <0639BEE2-F1DF-4CDB-A759-AC63768F13D3@mpq.mpg.de> References: <17B80BB1-3B68-4315-9BAF-57B1AFC7935D@mpq.mpg.de> <4572DBCC.3090100@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165180733 31725 80.91.229.2 (3 Dec 2006 21:18:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Dec 2006 21:18:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 03 22:18:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqyjK-0000WR-IH for gctc-ntg-context-518@m.gmane.org; Sun, 03 Dec 2006 22:18:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FF6F1FCE4; Sun, 3 Dec 2006 22:16:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02123-02-15; Sun, 3 Dec 2006 22:16:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FD111FCD0; Sun, 3 Dec 2006 22:16:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52A411FCD9 for ; Sun, 3 Dec 2006 22:15:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02123-02-14 for ; Sun, 3 Dec 2006 22:15:54 +0100 (CET) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.7.21]) by ronja.ntg.nl (Postfix) with SMTP id 4B6E31FCB1 for ; Sun, 3 Dec 2006 22:15:54 +0100 (CET) Original-Received: from [10.107.11.2] (p5498DE57.dip.t-dialin.net [84.152.222.87]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id WAA3174558 for ; Sun, 3 Dec 2006 22:18:18 +0100 X-Envelope-To: In-Reply-To: <4572DBCC.3090100@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32025 Archived-At: Thanks very much for your suggestion, Taco! I'm afraid it doesn't seem to work quite as expected, however :- ( Could you have a look below? >> 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. Ok. As for the strange things happening I was able to hunt them down and prepare a simple example (still with the standard \startquotation): --- \usemodule [bib] \startpublication[k=akey,t=book,a={{Ody}},y=2006] \author{Some}{B.}{Ody} \pubyear{2006} \stoppublication \starttext \input tufte \footnote{\cite[akey]} \startquotation \input tufte \footnote{\cite[akey]} \stopquotation \startquotation \input tufte \stopquotation \footnote{\cite[akey]} \input ward \startquotation \input tufte \stopquotation \footnote{\cite[akey]} \input ward \footnote{\cite[akey]} \stoptext --- Please note what happens to the footnotes depending on whether the \cite command is before or after \stopquotation. Also when the narrow text block extends over a page boundary the ordering of the footnotes is mixed up ... >> 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 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 :-( Oliver