esoteric macro expansion bug in t-bib?
esoteric macro expansion bug. 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. <to be read again> \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
Idris Samawi Hamid wrote:
esoteric macro expansion bug.
\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}}}
Could you try \unexpanded\def\IBAR% ... regards, Christopher
Christopher Creutzig wrote:
Idris Samawi Hamid wrote:
esoteric macro expansion bug.
\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}}}
Could you try \unexpanded\def\IBAR% ...
That was my first thought as well. Taco
participants (3)
-
Christopher Creutzig
-
Idris Samawi Hamid
-
Taco Hoekwater