From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26090 Path: news.gmane.org!not-for-mail From: "Idris Samawi Hamid" Newsgroups: gmane.comp.tex.context Subject: bib module bug? Date: Mon, 20 Feb 2006 15:08:30 -0700 Organization: Colorado State University Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140473348 19664 80.91.229.2 (20 Feb 2006 22:09:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2006 22:09:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 20 23:09:06 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 1FBJDE-0006vF-UT for gctc-ntg-context-518@m.gmane.org; Mon, 20 Feb 2006 23:08:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 058C41279E; Mon, 20 Feb 2006 23:08:56 +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 24030-04-2; Mon, 20 Feb 2006 23:08:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD8BD12792; Mon, 20 Feb 2006 23:08:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 663CA12791 for ; Mon, 20 Feb 2006 23:08:50 +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 24030-04 for ; Mon, 20 Feb 2006 23:08:46 +0100 (CET) Original-Received: from trueband.net (trueband.net [216.163.120.10]) by ronja.ntg.nl (Postfix) with SMTP id 77D1112792 for ; Mon, 20 Feb 2006 23:08:45 +0100 (CET) Original-Received: (qmail 12768 invoked by uid 1006); 20 Feb 2006 22:08:43 -0000 Original-Received: from ishamid@colostate.edu by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.0. Clear:SA:0(0.0/100.0):. Processed in 0.982889 secs); 20 Feb 2006 22:08:43 -0000 Original-Received: from unknown (HELO trueband.net) (172.16.0.4) by -v with SMTP; 20 Feb 2006 22:08:42 -0000 Original-Received: (qmail 14100 invoked from network); 20 Feb 2006 22:08:39 -0000 Original-Received: from unknown (HELO walayah1) (70.41.4.175) by -v with SMTP; 20 Feb 2006 22:08:39 -0000 Original-To: ntg-context@ntg.nl User-Agent: Opera M2/8.51 (Win32, build 7712) 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:26090 Archived-At: Dear Taco and the rest of the gang, There seems to be a problem with the \cite when encountering \penalty1000: ConTeXt ver: 2006.01.28 10:09 fmt: 2006.1.29 In the following example if you uncomment %\def\citeauthoroutpage[#1][#2]{\cite[alternative=authoryears,left={}, right={, #2)},inbetween={ (}][#1]} Then you will get the error: ========================================= ! Missing \endcsname inserted. \penalty \nonbreakablespace ->\penalty \!!tenthousand \ ...=authoryears,left={}, right={, vol.~ 2, p.~605--6)},inbetween={... \expanded ...\long \xdef \@@expanded {\noexpand #1 }\@@expanded \docite ...on [\csname @@pv#2compress\endcsname ]} [ \v!yes =>\bibcitecompre... l.52 ...eauthoroutpage[jamil04][vol.~2, p.~605--6] . I ? ======================================== This used to compile just fine. I am now in the terrible position of having to make last-minute editorial changes to a manuscript I sent to the publishers months ago, and at the same time be on the guard for new ConTeXt errors! :-(( I switched all my bib macros (like \citeauthoroutpage) to the \cite style of the above definition, and I really don't want to change back to the \setupcite style and have to debug this all over again... Thank you in advance for your help!! Best Idris ============================================ % output=pdf interface=en \usemodule[bib] % #1 = firstname, #2 = von, #3 = surname, #4 = inits, #5 = junior \def\invertedshortauthor#1#2#3#4#5% {\bibdoif{#2}{#2 }% #3% \bibdoif{#5}{ #5}% \bibdoif{#4}{, #4\unskip}}% \setuppublications[alternative=apa] \setuppublications[autohang=yes] \setuppublications[numbering=no] \setuppublications[criterium=cite] \setuppublications[sorttype=bbl] \setuppublicationlist[totalnumber={},samplesize=,author={\invertedauthor}] \setupcite[authoryears][inbetween={ }] \setupcite[year][inbetween={ }] \def\citeauthoroutpage[#1][#2]{% {\setupcite[authoryears][left={}, right={, #2)},inbetween={ (}]% \cite[authoryears][#1]% }% } \def\citeauthoroutpage[#1][#2]{\cite[alternative=authoryears,left={}, right={, #2)},inbetween={ (}][#1]} \startpublication[k=jamil04, t=phdthesis, a=Al-Jamil, y=2004, s=] \author[]{Tariq}[]{}{Al-Jamil} \title{Cooperation and Contestation in Medieval Baghdad (656/1258--786/1384): Relationships Between Shii and Sunni Scholars in the Mad\=ina\~tu \~a\~l-Sal\=am} \pubname{Princeton University (PhD. Dissertation)} \pubyear{2004} \stoppublication \starttext An entry recorded in the work of the eighth century Sunni{} biographer and chronicler, Ab\=u~Bakr ibn A\.hmad ibn Qad\=i \v Suhba\~h, demonstrates the ambiguous nature of religious identity and affiliation as it was constructed in contemporary sources from the period. Ibn~Qad\=i \v Suhba\~h's narrative proceeds as follows: \footnote{\citeauthoroutpage[jamil04][vol.~2, p.~605--6]. I have been unable to confirm this entry in the two Sunni{} biographies mentioned in the text, Ibn~Rajab and Ibnu~\~al-Fuwat\~i. It is also worth noting that Ibn~Q\=ad\=i \v Suhba\~h was writing about events taking place in Baghdad from Damascus. Perhaps, the geographical distance from of the author from the events and sites being described is worthy of consideration. } \stoptext ============================================