From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: multiple bibliographies
Date: Mon, 15 Jan 2007 15:55:42 +0000 [thread overview]
Message-ID: <E1H6UBS-0000RL-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Mon, 15 Jan 2007 14:22:13 +0100." <0B8376D1-0936-4850-A849-202F189C3646@uni-bonn.de>
"Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> explains:
> Yes, this is possible. Just make every lecture its own section, refer
> to the titles you want included in every list with \nocite commands
> at the beginning of every section, have the list typeset with
> \placepublications[criterium=cite]. If you want continuous numbering
> for all your lists, add [option=continue].
That's very helpful. I was going to ask the same question in a month
or so when I might arrange the references in my math textbook that
way. Here's an example file that I'll wikify if a similar example
isn't there already and no one finds problems with it.
Note in passing: \placepublications[criterium=section] and
\placepublications[criterium=cite] should (and do) give the same
results in the further-reading section.
Taco,
For a rainy day, what about \setuppublications[option=continue]
that implicitly appends option=continue to all but the first
\placepublications commands? (If it does so for the first one
then the numbering starts from 37 or thereabouts, as I found out by
trying it.)
-Sanjoy
`Not all those who wander are lost.' (J.R.R. Tolkien)
========================= nocite.tex =============================
% Example of per-chapter bibliographies and a per-chapter 'Further
% reading' section.
%
% 2007-01-15:
% Written by Sanjoy Mahajan <sanjoy@mit.edu> based on the
% explanation by Thomas Schmitz ('multiple bibliographies',
% ntg-context list, 15 Jan 2007).
%
% Public domain.
%
\usemodule[bib]
\usemodule[bibltx]
\setuppublications[alternative=num]
\setupbibtex[database=xampl]
\starttext
\chapter{One}
Some useful references are \cite[article-minimal]. See
\cite[article-full] for the full bibliography info.
\section[sec:further]{Further reading}
\nocite[whole-journal,incollection-full]
If you are curious, here are a few further readings:
\bigskip
% criterium=section and =cite give the same results in this case situation
\placepublications[criterium=section]
%\placepublications[criterium=cite]
\section{Chapter references}
Here are all the references from this chapter, including the
`further reading'.
\bigskip
\placepublications[criterium=chapter,option=continue]
\chapter{Two}
\cite[inbook-crossref] is a classic. People should also read
\cite[book-minimal] but it can be rough going.
\section{Chapter references}
Here are the references from this chapter.
\bigskip
\placepublications[criterium=chapter,option=continue]
\title{References for the whole document}
Here are the references from the entire document: in all
chapters and including the further reading.
\bigskip
\placepublications[criterium=all,option=continue]
\stoptext
===============================================================
next prev parent reply other threads:[~2007-01-15 15:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 12:59 Charles Doherty
2007-01-15 13:22 ` Thomas A. Schmitz
2007-01-15 13:51 ` Charles Doherty
2007-01-15 15:55 ` Sanjoy Mahajan [this message]
2007-01-15 23:00 ` Taco Hoekwater
-- strict thread matches above, loose matches on Subject: below --
2006-09-05 17:44 Thomas A. Schmitz
2006-09-06 2:53 ` Aditya Mahajan
2006-09-06 6:17 ` Taco Hoekwater
2006-09-07 7:43 ` Thomas A. Schmitz
2006-09-07 8:02 ` 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=E1H6UBS-0000RL-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).