From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68518 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: endnotes/critical apparatus Date: Thu, 19 May 2011 23:23:31 +0200 Message-ID: <2294DB2C-3330-47F2-906D-8915444EAAA0@googlemail.com> References: <4DD53A7C.7010304@aon.at> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305840239 2307 80.91.229.12 (19 May 2011 21:23:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 May 2011 21:23:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 19 23:23:54 2011 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 1QNAhF-0000Af-GR for gctc-ntg-context-518@m.gmane.org; Thu, 19 May 2011 23:23:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 620EECAD13; Thu, 19 May 2011 23:23:52 +0200 (CEST) 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 i1d-kFNsBNAL; Thu, 19 May 2011 23:23:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CA0BCAD04; Thu, 19 May 2011 23:23:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 458BACAD04 for ; Thu, 19 May 2011 23:23:48 +0200 (CEST) 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 5F0exUdBA8LO for ; Thu, 19 May 2011 23:23:37 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 20F90CACEF for ; Thu, 19 May 2011 23:23:37 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4JLNaHF020613 for ; Thu, 19 May 2011 23:23:36 +0200 Original-Received: by bwz17 with SMTP id 17so3706835bwz.14 for ; Thu, 19 May 2011 14:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=qWA8DDVq6suYaCH4vahcilorqDMdsCO8/g3Z1rLQ1QQ=; b=CKzEfIvIx+sRQlmdrQyoISR/hq2Se80LdpTsa2DSSX8OwWBOxMhnJodQrbv9XQEt3O GwaV3sYdAlmkDFCWVfia8+WXy5BLMK6KijULbD6hnVYMhoNwezBGJ6vbcW6UgSklex80 ycRNiYsxocWpaHlDRgeMff2TgS+nPUZKf0XKc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=H3rHwmM/yXokholIuJlOGpXpr9on6tNcmQI1dW5SvrWQ9kA4VOqTeB3AtIbq3xkZMp 00Mj0FY5opL12YD9k5BWCIdMHw1CekML00ZFuElWuZFzQDpFn2+22c6YTjR9rWQg/iHJ N1jSD3AOzu1hoXpdCZ6Ptw+RRIiNQMAXhEAeY= Original-Received: by 10.204.41.206 with SMTP id p14mr3167516bke.53.1305840215869; Thu, 19 May 2011 14:23:35 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B294576.dip.t-dialin.net [91.41.69.118]) by mx.google.com with ESMTPS id q24sm1753985bks.9.2011.05.19.14.23.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2011 14:23:34 -0700 (PDT) In-Reply-To: <4DD53A7C.7010304@aon.at> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0rEJxnAup - d3667a642755 - 20110519 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68518 Archived-At: Am 19.05.2011 um 17:42 schrieb Daniel Schopper: > Dear list, > I=92m fiddling around with a simple apparatus for critical editions with = endnotes. For now this is working ok - but I=92m wondering if somebody coul= d advise me on some aspects of it (see below). Here=92s a minimal example: > = > [=85] > = > Now, this is obviously a really primitive approach (I=92m still learning= =85) which I=92d like to improve in some ways: > = > - How can I get rid of the blackrule in the apparatus? > \noexpand\let\blackrule[#1]=3D\noexpand\relax > throws an error (You can't use `macro parameter character #' in vertical = mode.) while > \noexpand\let\blackrule=3D\noexpand\relax > eliminates the rule but simply prints the arguments in the square bracket= s. (Same holds true for every macro with arguments.) You can use \simplifycommands, see my example below. > - What to do if I=92d want to gobble \crlf or \par in the lemma while usi= ng them as separators after each apparatus entry? I tried to \let them to \= relax, which ends in luatex getting stuck when it tries to import the .en-f= ile. > = > - How could I reset gobbled commands like \bf to their original meaning (= I=92d like to ignore \bf inside a lemma but still be able to have bold page= numbers at the beginning of the apparatus entry)? > = > I=92m sure there are much more elegant ways to do this (probably in lua?)= , maybe someone could provide me with a hint where to start from? You can use contexts own note mechanism to collect the data and place them = later in your document. \define[2]\Apparatus {\ifdefined\ApparatusCounter \doglobal\increment\ApparatusCounter \else \doglobal\newcounter\ApparatusCounter \fi \pagereference[apparatus:page:\ApparatusCounter]% \startline[apparatus:line:\ApparatusCounter]{#1}\stopline[apparatus:line= :\ApparatusCounter]% \begingroup\simplifycommands \expanded{\endnote{\at[apparatus:page:\ApparatusCounter]/\noexpand\inlin= e[apparatus:line:\ApparatusCounter]~{#1}]~{#2}}}% \endgroup} \appendtoks\def\blackrule[#1]{}\to\simplifiedcommands \appendtoks \def\crlf{}\to\simplifiedcommands \appendtoks \def\bf{}\to\simplifiedcommands \setuplabeltext[en][lines=3D,line=3D] \setupnote [endnote] [textcommand=3D\gobbleoneargument, command=3D\gobbleoneargument] \starttext \startlinenumbering That=92s a \Apparatus{\bf lemma}{That=92s a variant reading=85}. \input tuf= te But then there=92s a blackrule \Apparatus{\blackrule[width=3D5cm]\crlf and = a linebreak}{-- which we don=92t want to repeat in the apparatus.}. \stoplinenumbering \placenotes[endnote] \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________