ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: Taco Hoekwater <taco@elvenkind.com>,
	ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Re: m-bib: passing extra information to \cite
Date: Fri, 07 Sep 2001 12:40:04 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20010907123745.02e18ec8@server-1> (raw)
In-Reply-To: <5.1.0.14.0.20010907103821.00a81fd0@public.uni-hamburg.de>

At 10:58 AM 9/7/2001 +0200, Eckhart Guthöhrlein wrote:
>At 10:15 07.09.2001 +0200, Taco Hoekwater wrote:
>>\cite{..} is accepted as meaning the same as \cite[..]. It is in there
>>because existing databases use this syntax when refering to other items
>>in the database. But: it is very latexy and not in sync with the context
>>rule that typeset arguments use {} and setup arguments use [].
>>
>>So, question: to remove or not to remove? How many people share bibtex
>>databases between latex en context? (removal makes it easier to implement
>>the 'extra info').
>
>As far as I am concerned, it can be removed, since I'm planning to abandon 
>the use of latex entirely and do not have large bibtex databases yet.
>
>A more general solution could be to use a different command for 
>cross-referencing inside the bib file, let's call it \crosscite for 
>example. Then you could say something like
>
>\def\crosscite#1{\cite[#1]} % for context
>
>or
>
>\def\crosscite#1{\cite{#1}} % for latex

then, how about:

\let\simplecite\cite

\def\complexcite[#1]{\normalcite{#1}}

\definecomplexorsimple\cite

now \cite[bla] and \cite{bla} both work (but i favor the [] only approach).

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


  reply	other threads:[~2001-09-07 10:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-06 20:07 Eckhart Guthöhrlein
2001-09-07  8:15 ` Taco Hoekwater
2001-09-07  8:58   ` Eckhart Guthöhrlein
2001-09-07 10:40     ` Hans Hagen [this message]
2001-09-07 12:48       ` Taco Hoekwater
2001-09-07 14:14         ` Re[2]: " Giuseppe Bilotta
2001-09-07 15:24         ` Hans Hagen
2001-09-07 10:42   ` Hans Hagen

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=5.1.0.14.1.20010907123745.02e18ec8@server-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=taco@elvenkind.com \
    /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).