ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: seasoul <bioseasoul@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re:  [NTG-conte​xt] How to retreive the bibentry number and use it somewhere?
Date: Mon, 9 May 2011 21:46:19 +0800	[thread overview]
Message-ID: <BANLkTinT1bY8c6nxPc-3qDK8DuDkQzF4bg@mail.gmail.com> (raw)
In-Reply-To: <842CC0CB-07ED-434B-BAF3-630524FB751E@uni-bonn.de>


[-- Attachment #1.1: Type: text/plain, Size: 2889 bytes --]

Thanks. Take the sample.bib in the wiki as the database file. "hh2010b" is
expected to be the third reference, but because it is included in the figure
caption, and the figure caption will be listed in the figure list at the
beginning of the file, "hh2010b" becomes the first reference. How to make it
the third reference? The resulting list of figure should be

"The caption of this figure includes the citation, but this citation
sequence is expected to be the same as in the paragraph[3]"

instead of

 "The caption of this figure includes the citation, but this citation
sequence is expected to be the same as in the paragraph[1]"




\usemodule[bib]

\setupbibtex[database=sample]    %sample.bib in the wiki

\setuppublications[sorttype=cite]

\setuppublications[alternative=num,criterium=cite]

\setuppublications[numbering=yes] % Show reference numbers in the generated
list.


\starttext

\startfrontmatter                                                          %
List of figures

\title{List of Figures}

\writetolist[Title] {} {List of Figures}

\writebetweenlist [Title] {\blank}

\placelist[figure][criterium=all]
\stopfrontmatter


\startbodymatter

This is the first place for citation\cite[hh2010].

This is the second place for citation\cite[hh2010a].

This is the third place for citation\cite[hh2010b].

This is the fourth place for citation\cite[Eijkhout1991].

\placefigure[][fig:sample]

{The caption of this figure includes the citation, but this citation
sequence is expected to be the same as in the paragraph\cite[hh2010b].}

{\framed{\tfd figure caption with citation}}
\stopbodymatter


\startbackmatter

\placepublications[criterium=text]

\stopbackmatter
\stoptext

Many thanks.

On Mon, May 9, 2011 at 8:24 PM, Thomas A. Schmitz <
thomas.schmitz@uni-bonn.de> wrote:

>
> On May 9, 2011, at 11:47 AM, seasoul wrote:
>
> > Hi, I sorted the reference by the squence they appear in the text. I want
> to retreive a bibentry number, but use it at other places.
> >  I try to use \onlinecite, this number is the same as \cite[xxx]. Its
> number will become smaller if I put it before where I cite it.
> > Can I get the absolute number of the bibentry, which means, this number
> will not change when I use it somewhere?
> >
> Sorry, I don't have a clue what it is you're asking for. Please provide an
> example.
>
> Thomas
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>



-- 
Yours Sincerely
Ba Te

[-- Attachment #1.2: Type: text/html, Size: 6647 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2011-05-09 13:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09  9:47 seasoul
2011-05-09 12:24 ` Thomas A. Schmitz
2011-05-09 13:46   ` seasoul [this message]

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=BANLkTinT1bY8c6nxPc-3qDK8DuDkQzF4bg@mail.gmail.com \
    --to=bioseasoul@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).