From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22944 Path: news.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: Re: esoteric macro expansion bug in t-bib? Date: Sun, 9 Oct 2005 19:22:23 -0600 Message-ID: <4366BD82@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128907387 2892 80.91.229.2 (10 Oct 2005 01:23:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2005 01:23:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 10 03:23:04 2005 Return-path: 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 1EOmND-0004oN-I0 for gctc-ntg-context-518@m.gmane.org; Mon, 10 Oct 2005 03:22:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1EC45127D4; Mon, 10 Oct 2005 03:22:39 +0200 (CEST) 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 06711-01; Mon, 10 Oct 2005 03:22:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 943D6127BC; Mon, 10 Oct 2005 03:22:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C43AF127BC for ; Mon, 10 Oct 2005 03:22:33 +0200 (CEST) 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 06502-07 for ; Mon, 10 Oct 2005 03:22:32 +0200 (CEST) Original-Received: from eagle.colostate.edu (eagle.acns.colostate.edu [129.82.100.90]) by ronja.ntg.nl (Postfix) with ESMTP id 320B3127B6 for ; Mon, 10 Oct 2005 03:22:31 +0200 (CEST) Original-Received: from lamar.ColoState.EDU (lamar.acns.colostate.edu [129.82.100.75]) by eagle.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j9A1MVI641830 for ; Sun, 9 Oct 2005 19:22:31 -0600 Original-Received: from webmail.colostate.edu (csunts4.acns.colostate.edu [129.82.100.135]) by lamar.ColoState.EDU (AIX5.3/8.11.6p2/8.11.0) with ESMTP id j9A1MUD4620776 for ; Sun, 9 Oct 2005 19:22:31 -0600 X-WebMail-UserID: ishamid Original-To: mailing list for ConTeXt users X-EXP32-SerialNo: 00002247, 00002264 X-Mailer: Infinite Mobile Delivery (Hydra) SMTP v3.62.01 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22944 Archived-At: You will need to add the following macro to the example file ibar-bib.tex. Once the expansion bug is fixed the file will compile. \def\h#1{{\oalign{\relax#1\crcr\hidewidth\SHIFT{34}% \vbox to.2ex{\hbox{\char'25}\vss}\hidewidth}}} Best Idris =============================================== =============================================== Dear Taco, There is some esoteric macro expansion bug in the bib module (beyond my capability to understand). For example, the \Ibar macro works fine outside of the a= context. \getcommacommandsize can't seem to figure out that ## stands for an alignment preamble. Is there a way to protect the argument of a= ? Please try the following : ================ibar-bib.bbl==================== \startpublication[k=amini93, t=book, a=al-Am\={i}n\~i, y=1993, s=] \author[]{Mu\.hammad H\=ad\=i}[]{}{Al-Am\=in\=i} \title{Mu\`allimu \~a\~l-\v S\=i\`ah: a~l-\v Say\h h al-Muf\=id} %\pubname{} \city{Beirut} \pubyear{{1993}} \stoppublication =========================================== ================ibar-bib.tex==================== % output=pdf interface=en \usemodule[bib] \def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font \kern-.0156\dimen0} % compensate for slant/italic in lower accents \def\USHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font \kern.0156\dimen0} % compensate for slant/italic in upper accents \def\IBAR% {\leavevmode\vbox{\offinterlineskip\lineskip0.295ex% \ialign{##\cr\USHIFT{120}\hfill\hbox to .21243em{\leaders\hrule height .07ex\hfill}\hfill\SHIFT{1}\cr\i\cr}}} \definecharacter imacron {\IBAR} % ConTeXt-dependent! \setupwhitespace[big] \starttext \cite[amini93] M\=irz\=a \section{References}{\tfx\setupinterlinespace {\leavevmode\placepublications}} \stoptext =========================================== I get the following error =========================================== systems : begin file ibar-bib at line 20 ! Illegal parameter number in definition of \commacommand. \cr \IBAR ...lineskip \lineskip 0.295ex\ialign {##\cr \USHIFT {120}\hfill \hbox .. \dohandleaccent ... #1\string #2\empty \endcsname \else \ifcsname \accentpre... \thebibauthors ->{al-Am\={i} n\~i} \getcommacommandsize [#1]->\edef \commacommand {#1 }\scratchtoks \expandafter... \dobibauthoryear ...acommandsize [\thebibauthors ] \@EA \processcommalist \@E... .. =========================================== Please advise-) Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523