ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Johannes Graumann <johannes_graumann@web.de>
Subject: bib module/XML
Date: Tue, 28 Mar 2006 16:38:03 -0800	[thread overview]
Message-ID: <e0ckvq$vpf$1@sea.gmane.org> (raw)

Hello,

I have a couple of questions concerning the bib module, which I'm using in
conjunction with XML document code.
In my header I say:
\usemodule[bib]
\setupbibtex[database={../Bibliography/bibliography.bib}]

1) \completepublications problem
in the xml I say:
<cite id="storz:02" key="authoryears"/>
and use 
\defineXMLargument
  [cite]
  {\cite[\XMLpar{cite}{key}{}][\XMLpar{cite}{id}{}]}
in my mappings.

This works ok, however, I also have the following definition included:
\defineXMLenvironment
  [chapter]
  {
    \defineXMLargument
      [title]
      {\chapter}
    \defineXMLprocess
      [content]
      {}
  }
  {\section{References}\placepublications}
so that a xml chapter definiton like this:
<chapter>
  <title>
    Example
  </title>
  <content>
    <cite id="bibtexkey1" key="authoryears"/>
    <cite id="bibtexkey2" key="authoryears"/>
  </content>
</chapter>
will be read out properly and I get a chapter specific publication list at
the end of each chapter. This does not work. I will get a Reference List,
but it contains the second entry twice and its second copy is indented in
relation to the first ...
Any Idea on how to remedy this?

2) I'm a biologist and author/year citation is usus where I work. The
options 'authoryear' ('Hoekwater (2006)') and 'authoryears' ('(Hoekwater,
2006)') are great, but I would also want to have the option to prepend the
latter with something like 'e.g.' ('(see e.g. Hoekwater, 2006)'). I
understand this is possible to the right of the actual citation
with 'extras', but how difficult would it be to do that on the left?

Thanks for any help,

Joh

             reply	other threads:[~2006-03-29  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29  0:38 Johannes Graumann [this message]
2006-03-29  8:06 ` Taco Hoekwater
2006-03-29 17:48   ` Johannes Graumann
2006-03-30 18:20     ` Johannes Graumann

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='e0ckvq$vpf$1@sea.gmane.org' \
    --to=johannes_graumann@web.de \
    --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).