From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74069 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Command \thanks from LaTeX Date: Sat, 21 Jan 2012 10:56:36 +0100 Message-ID: <38AA06A8-7EE6-4E7D-8760-18F7791E465C@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/mixed; boundary="===============1787553007==" X-Trace: dough.gmane.org 1327139828 32101 80.91.229.12 (21 Jan 2012 09:57:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2012 09:57:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 21 10:57:04 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RoXh1-0006hO-Tz for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jan 2012 10:57:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B718CB1DC; Sat, 21 Jan 2012 10:57:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kS6tmAy8H9H9; Sat, 21 Jan 2012 10:56:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC9E5CB1C5; Sat, 21 Jan 2012 10:56:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC1F1CB1C5 for ; Sat, 21 Jan 2012 10:56:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iJS5ffbNbN80 for ; Sat, 21 Jan 2012 10:56:40 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 74165CB1B4 for ; Sat, 21 Jan 2012 10:56:40 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0L9udpK002001 for ; Sat, 21 Jan 2012 10:56:39 +0100 Original-Received: by eekc13 with SMTP id c13so572449eek.14 for ; Sat, 21 Jan 2012 01:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=9AD+pHcKR3Qcd+y+XfKRbcHWeAlCoACeHNVTrEMPOlY=; b=dofL1wv6UAG1TWJcc/vWmSYA0mO6wrdGhG08F4VC2pAfDuGjlTbsOhheJTpp/YwME3 YdulGI9wADeb+ncZyw3svZt0TYCB9al2ax8N/IWLMg3B5n/stebHbdz0A3KKyVJ8Gskq xfzMZCSSdOAgrDvx2gN5yEwkBE5tPRj4Wb8k8= Original-Received: by 10.14.10.26 with SMTP id 26mr474128eeu.19.1327139799199; Sat, 21 Jan 2012 01:56:39 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFC861.dip.t-dialin.net. [87.175.200.97]) by mx.google.com with ESMTPS id n17sm23366257eei.3.2012.01.21.01.56.36 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Jan 2012 01:56:37 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aGo9UD1a - 58fd4d113856 - 20120121 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74069 Archived-At: --===============1787553007== Content-Type: multipart/alternative; boundary="Apple-Mail=_9A6197C0-25B0-4E2B-BCBE-DA7EF1E7FC23" --Apple-Mail=_9A6197C0-25B0-4E2B-BCBE-DA7EF1E7FC23 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 20.01.2012 um 18:16 schrieb Wagner Macedo: > Hello, >=20 > Searching for a \thanks equivalent command on ConTeXt, I ended up on = http://wiki.contextgarden.net/LaTeX_Thanks. >=20 > But I didn't like that solution, because the author footnote is placed = on a new area instead the same as text footnotes. >=20 > So I made a simple solution, that the author footnotes is placed in = the same area and doesn't interfere on real counter. I want here to = share my solution, below you can see it. >=20 > \definestartstop[author] > [before=3D{\savenumber[footnote] > \resetnumber[footnote] > \start > \let\thanks\footnote > \setupfootnotes[numberconversion=3Dset 2]}, > after=3D{\stop > \restorenumber[footnote]}] >=20 > It can be used as that: >=20 > \startauthor > Wagner Macedo\thanks{Brazilian citizen} > \stopauthor >=20 > Of course, I could did a \author command, but I generally prefer to = use start/stop blocks. >=20 > What do you think? This could be improved? \starttext The Author\footnote[+]{This is a regular footnote without the number.} Another sample text\footnote{A footnote with a number}. \stoptext Wolfgang --Apple-Mail=_9A6197C0-25B0-4E2B-BCBE-DA7EF1E7FC23 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
Am 20.01.2012 um 18:16 schrieb Wagner Macedo:

Hello,

Searching for a \thanks equivalent command on ConTeXt, I ended up on http://wiki.contextgarden.net/LaTeX_Thanks.

But I didn't like that solution, because the author footnote is placed on a new area instead the same as text footnotes.

So I made a simple solution, that the author footnotes is placed in the same area and doesn't interfere on real counter. I want here to share my solution, below you can see it.

\definestartstop[author]
  [before={\savenumber[footnote]
    \resetnumber[footnote]
    \start
    \let\thanks\footnote
    \setupfootnotes[numberconversion=set 2]},
   after={\stop
    \restorenumber[footnote]}]

It can be used as that:

\startauthor
  Wagner Macedo\thanks{Brazilian citizen}
\stopauthor

Of course, I could did a \author command, but I generally prefer to use start/stop blocks.

What do you think? This could be improved?

\starttext

The Author\footnote[+]{This is a regular footnote without the number.}

Another sample text\footnote{A footnote with a number}.

\stoptext

Wolfgang

--Apple-Mail=_9A6197C0-25B0-4E2B-BCBE-DA7EF1E7FC23-- --===============1787553007== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1787553007==--