ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Context replacement for bibitem
Date: Thu, 30 Aug 2007 08:22:59 +0200	[thread overview]
Message-ID: <115224fb0708292322l3ddda9ecudbcfce0ba96d16a8@mail.gmail.com> (raw)
In-Reply-To: <fb4rku$a6i$1@sea.gmane.org>

Hi Peter,

2007/8/30, Peter Schorsch <tralalas@freenet.de>:
> Hi,
>
> first thanks for your help. I got it working at the basic-level. I put it
> into a module for the case that other beginner looking for the
> bibitem-replacement. But two questions are left before I think, that the
> module could be uploaded to the wiki:
>
> - how to make the 12*broad flexible? \currentmoduleparamter{itemspace}*broad
> is not working :-(
> - how to make that the \item are right-aligned? itemalign=right is also not
> working
>
>
> Here is the module-code followed by an appliance-example:
> -------the module:
>
> \startmodule[biblist]
>
> \unprotect
>
> %\setupmodule[itemspace=12]
>
> \defineitemgroup[bibliography]
> \setupitemgroup[bibliography][levels=1,left={[},right={]},stopper=]
> \setupitemgroup[bibliography][1][n,12*broad]
> %\setupitemgroup[bibliography][1][n
> \currentmoduleparameter{itemspace}*broad]

Replace this line with

\expanded{\setupitemgroup[bibliography][1][n,\currentmoduleparameter{itemspace}*broad]}

to force expansion of \currentmoduleparameter.


You can also use
  \setupbibliography
as a abbreviation for
  \setupitemgroup[bibliography]

Wolfgang

> \def\bibitem[#1]#2{\doifemptyelse{#2}
>         {\item[#1]}
>         {\sym{\cap{#2}}\textreference[#1]{\cap{#2}}}}
>
> \def\bibref[#1]#2{\doifemptyelse{#2}
>         {[\in[#1]]}
>         {[\in[#1], #2]}}
>
> \protect
> \stopmodule
> \endinput
>
> -------how to use:
>
> \usemodule[biblist]
>
> \starttext
>
> \section{hamha}
> asdfklsj fk~\bibref[keykeykey]{}
>
> \section{dumdidim}
> asdfsaff alfs hfdsj~\bibref[aha]{Abs. 4.1/1}
>
> \subject{Bibliography}
>
> \subsubject{hamha}
> \startbibliography
> \bibitem[keykeykey]{Der Schlüssel}  erstes
> \stopbibliography
>
> \subsubject{dumdidim}
> \startbibliography[continue]
> \bibitem[aha]{} zweites
> \stopbibliography
>
> \stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2007-08-30  6:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fb2aud$umi$1@sea.gmane.org>
     [not found] ` <alpine.WNT.0.999.0708282127200.3072@nqvgln>
2007-08-29  7:23   ` Wolfgang Schuster
2007-08-29 22:22     ` Peter Schorsch
2007-08-30  6:22       ` Wolfgang Schuster [this message]
2007-08-30 17:03         ` Peter Schorsch
2007-08-31  6:43           ` Wolfgang Schuster
2007-08-31 15:18             ` module-parameters Was: " Peter Schorsch
2007-08-31 18:02               ` Aditya Mahajan
2007-08-31 18:16                 ` Peter Schorsch

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=115224fb0708292322l3ddda9ecudbcfce0ba96d16a8@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).