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: Behaviour of definereferenceformat changed?
Date: Sat, 21 May 2011 20:08:37 +0200	[thread overview]
Message-ID: <9073DC57-ED21-4036-BDD7-70CB97934617@googlemail.com> (raw)
In-Reply-To: <BANLkTimganZMBAJk65QKeRd2hMRk0RMxzA@mail.gmail.com>


Am 21.05.2011 um 18:32 schrieb Julian Becker:

> Can it be that in the beta version 2011.05.01, the behaviour of \definereferenceformat changed?
> I used to define:
> \definereferenceformat [ineqn] [left=(,right=),text=equation]
> and get e.g. "equation (1)", but now all it produces "(equation 1)". Is it supposed to behave that way?
> Do I have to use something like
> \definereferenceformat [ineqn] [right={)},text={equation (}]
> to get what I want, or is there something better?

There seems to be a few lines in the source in the wrong,
it’s possible this happened when Hans rewrote parts of
the interaction macros to make them more efficient.

\setvalue{\??rf\c!interaction\v!all}%
  {\leftofreference
   \the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \currentreferencecontent
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks
   \rightofreference}

should be

\setvalue{\??rf\c!interaction\v!all}%
  {\the\leftreferencetoks
   \doifsometokselse\leftreferencetoks \leftofreferencecontent \donothing
   \leftofreference
   \currentreferencecontent
   \rightofreference
   \doifsometokselse\rightreferencetoks\rightofreferencecontent\donothing
   \the\rightreferencetoks}

but I’m not sure about this, what is the expected output?

\setvalue{\??rf\c!interaction\v!label}%
  {\leftofreference
   \the\leftreferencetoks
   \the\rightreferencetoks
   \rightofreference}

Wolfgang

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2011-05-21 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-21 16:32 Julian Becker
2011-05-21 18:08 ` Wolfgang Schuster [this message]

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=9073DC57-ED21-4036-BDD7-70CB97934617@googlemail.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).