ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: YABQ (yet another bib question...)
Date: Fri, 08 Sep 2006 23:40:49 +0100	[thread overview]
Message-ID: <E1GLp1l-0001Nk-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Fri, 08 Sep 2006 22:53:01 +0200." <16B85C12-BE15-47A5-A688-547627B06865@uni-bonn.de>

> Is it possible to refer back to item [1] automatically, by sticking
> the "reprinted in" in a "note" field in the database? I tried a
> number of combinations of \crossref or so, but couldn't get this to
> work.

I need to repeat my experiments, but I think it worked to use simply
\cite in the bibtex entry.  Ah, here is one example.  It uses
xampl.bib, which comes with old distributions of ConTeXt (e.g. teTeX
3.0's distribution).

[Taco: The reference to Knuth below comes out as (Knuth, 1981c) even
though there are no other 1981 entries for Knuth cited in the text.
Is that hard to fix given ConTeXt's way of dealing with bibtex, in
that it just incorporates the entire database, in which there are
several 1981 entries from Knuth?]

===================== cut here ========
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=xampl]
\starttext

Here is a citation to a book that contains a cross reference:
\cite[book-crossref].  The bibliography entry (next page) for it
should contain a bib reference to another item in the bibliography.

\completepublications
\stoptext
===================== cut here ========

Here are the relevant entries from xampl.bib, which indicates that
it's the crossref= line that you need (not \cite as I said above)v:

@BOOK{book-crossref,
   crossref = "whole-set",
   title = "Seminumerical Algorithms",
   volume = 2,
   series = "The Art of Computer Programming",
   edition = "Second",
   year = "{\noopsort{1973c}}1981",
   note = "This is a cross-referencing BOOK entry",
}

@BOOK{whole-set,
   author = "Donald E. Knuth",
   publisher = "Addison-Wesley",
   title = "The Art of Computer Programming",
   series = "Four volumes",
   year = "{\noopsort{1973a}}{\switchargs{--90}{1968}}",
   note = "Seven volumes planned (this is a cross-referenced set of
   BOOKs)",
}

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

  reply	other threads:[~2006-09-08 22:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08 20:53 Thomas A. Schmitz
2006-09-08 22:40 ` Sanjoy Mahajan [this message]
2006-09-10 13:30   ` Taco Hoekwater
2006-09-14 21:46     ` Thomas A. Schmitz
2006-09-15  7:57       ` Taco Hoekwater
2006-09-15  9:18         ` Thomas A. Schmitz
2006-09-15  9:47           ` Taco Hoekwater
2006-09-15 10:05             ` Thomas A. Schmitz
2006-09-15 12:34           ` Sanjoy Mahajan
2006-09-15 13:09             ` Thomas A. Schmitz
2006-09-15 14:45               ` Taco Hoekwater
2006-09-11  8:28   ` Thomas A. Schmitz
2006-09-11 17:11     ` Taco Hoekwater
2006-09-11 19:05       ` Thomas A. Schmitz
2006-09-11 19:30     ` Sanjoy Mahajan

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=E1GLp1l-0001Nk-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --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).