ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Saunders <odradek5@gmail.com>
To: ntg-context@ntg.nl
Subject: basic \cite[]
Date: Sat, 17 Apr 2010 10:53:13 -0500	[thread overview]
Message-ID: <y2l54d7f5601004170853u731af34fn5bbd7a67bb5d32de@mail.gmail.com> (raw)

I want to be able to write, in my text, \cite[myKey] (where myKey is
the key of a record in my .bib file), and have this appear in print
as:  [<a number>]
linked to the bibliograpy page where it (<a number>) occurs.

I've been puzzling over bibmod-doc.pdf.  I think the solution has to
do with the commands \setuppublications and \setupcite, but since
bibmod-doc never says what these commands do, it's very difficult.
I'm guessing \setuppublications might be able to control what argument
I should use in the \cite[] command.  I'm guessing \setupcite might
control how a citation will be printed in the text.  (If this is true,
the manual should say so so the reader doesn't have to guess.)  One
cryptic line tells me:

"refcommand                  the default option for \cite"

just like that.  Based on this, I'm guessing refcommand=key will let
me write things like \cite[myFirstKey].  The manual goes on to clear
up the confusion by explaining:

"The \cite command has a lot of alternatives, as could be seen above
in the setting of ‘refcommand’."

That's it---no mention of what \setupcite does.  Based on this, I'm
hoping that \setupcite[num] will cause the citation to be printed as
[<some number>], e.g., [1].

So, I'm using:

\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]
\setuppublicationlist[]
\setupcite[num][]

...

\placepublications[criterium=all]

The bibliography prints out, but citations appear as empty brackets:  "[]".
I want them to be numbers linked to the appearance of the same number
in the bibliography.   There must be a way of doing this?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2010-04-17 15:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-17 15:53 Michael Saunders [this message]
2010-04-17 19:31 ` Taco Hoekwater
2010-04-18  6:40   ` Salil Sayed
2010-04-17 20:12 Michael Saunders
2010-04-17 23:42 ` Michael Green
2010-04-18  6:31   ` Taco Hoekwater
2010-04-18  7:26     ` Wolfgang Schuster
2010-04-18  0:50 ` Michael Saunders
2010-04-18  6:46 Michael Saunders
2010-04-18  6:47 ` 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=y2l54d7f5601004170853u731af34fn5bbd7a67bb5d32de@mail.gmail.com \
    --to=odradek5@gmail.com \
    --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).