Re: [NTG-context] bib module: \setupcite macro
I thought it was my macro but the following fails also: ========================================== \starttext \dots as Afghani points out \cite[year][afghani60]. \section{References}{\tfx\setupinterlinespace {\placepublications}} \stoptext ========================================== Best Idris ========================================== ========================================== Another issue: My definition for \citeyear crashes. This used to work-) \def\citeyear[#1]{% {\cite[year][#1]% }% } log: ========================================== ! You can't use `macro parameter character #' in horizontal mode. \p!doifinstringelse ...tringelse \@EA ##\@EA 1#1## 2##3\war {\unless \if ##2@... \rawdodoifinsetelse ...ingelse \@@@instring {,#1,} \@EA \firstoftwoarguments .. \addtocommalist #1#2->\rawdoifinsetelse {#1}#2 \resetglobal {\dodoglobal \ede... \donormalbibauthoryear ...yauthor }\thebibauthors \@EA \doglobal \@EA \addto... \next1 #1,->\donormalbibauthoryear {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... .. l.24 \dots as Afghani points\citeyear[afghani60] ========================================== See attached test file test-bib-year.tex. Best Idris =============test-bib-year.tex=============== % output=pdf interface=en \setupwhitespace[big] \usemodule[bib] \setuppublications[alternative=apa] \setuppublications[autohang=yes] \setuppublications[numbering=no] \setuppublications[criterium=cite] \setuppublications[sorttype=bbl] \setuppublicationlist[totalnumber={},samplesize=,author={\invertedauthor}] \def\citeyear[#1]{% {\cite[year][#1]% }% } \input test-bib.bbl \starttext \dots as Afghani points out\citeyear[afghani60]. \cite[afghani60] \section{References}{\tfx\setupinterlinespace {\placepublications}} \stoptext ======================================== ==============test-bib.bbl============== \startpublication[k=afghani60, t=book, a=Afgh\=an\=i, y=1960, s=] \author[]{Sa\high{c}\=id}[]{}{Al-Afgh\=an\=i} \title{Asw\=aqu \~al-\high{c}Arab f\=i \~al-J\=ahiliyya\~h wa \~al-Isl\=am} \pubname{D\=aru \~al-Fikr} \city{Damascus} \pubyear{1960} \stoppublication ======================================== ============================ 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
participants (1)
-
Idris Samawi Hamid