ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris Samawi Hamid <ishamid@lamar.colostate.edu>
Subject: Re: bib module: \setupcite macro
Date: Sun, 2 Oct 2005 17:12:14 -0600	[thread overview]
Message-ID: <4341BE71@webmail.colostate.edu> (raw)

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

             reply	other threads:[~2005-10-02 23:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-02 23:12 Idris Samawi Hamid [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-03 13:23 Idris Samawi Hamid
2005-10-03 13:12 Idris Samawi Hamid
2005-10-03 13:01 Idris Samawi Hamid
2005-10-03 13:09 ` Taco Hoekwater
2005-10-02 23:01 Idris Samawi Hamid
2005-10-03  6:04 ` Thomas A. Schmitz
2005-10-03  8:36 ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4341BE71@webmail.colostate.edu \
    --to=ishamid@lamar.colostate.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).