From: "Santy, Michael" <Michael.Santy@dynetics.com>
To: <ntg-context@ntg.nl>
Cc: pragma@wxs.nl
Subject: setupreferenceformat questions
Date: Fri, 15 Feb 2008 10:27:29 -0600 [thread overview]
Message-ID: <6703815B292B664DBAEC55EE3192386A20BF10@poseidon.in.dynetics.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1498 bytes --]
Due to some fairly unique customer requirements for bibliography, we're using the simple bibliography discussed in the wiki (http://wiki.contextgarden.net/Simple_Bibliography). While this approach gives us more flexibility, I'm having trouble with a couple of things...
1) The code below wraps the reference number in brackets. How would I make the reference number superscript (like an endnote)?
2) The references in the text are numbered in the order the bibitems are defined in the bibliography, not the order on which they are cited in the text. How would I order them according to the order in which they occur in the text?
Thanks,
Mike Santy
\setupinteraction[state=start]
\definereferenceformat[cite][left={[},right={]}]
\defineitemgroup [bibliography] [levels=1]
\setupitemgroup [bibliography]
[symbol=n,
left={[},
right={]},
width=1.5em,
stopper=,
itemalign=flushright,
inbetween={\blank[4pt]}]
\appendtoks
\let \bibitem \itemgroupitem
\to \itemgroupcommands
\starttext
Now is the time\cite[ref2] for all good men\cite[ref1]. I would like the citations to be numbered based on the order in which they occur in the document, not in the bibliography.
\section{References}
\startbibliography
\bibitem[ref1] This is my first reference
\bibitem[ref2] This is the second reference
\stopbibliography
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 2710 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2008-02-15 16:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-15 16:27 Santy, Michael [this message]
2008-02-16 9:19 ` Wolfgang Schuster
2008-02-17 19:20 ` {Spam?} " Mike Santy
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=6703815B292B664DBAEC55EE3192386A20BF10@poseidon.in.dynetics.com \
--to=michael.santy@dynetics.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).