ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: ntg-context@ntg.nl
Cc: Hans Hagen <pragma@wxs.nl>, Andreas Harder <andreas.harder@rz-online.de>
Subject: Re: picture- and formula-references broken with current beta
Date: Fri, 24 Sep 2010 15:30:01 +0200	[thread overview]
Message-ID: <201009241530.01668.alan.braslau@cea.fr> (raw)
In-Reply-To: <4C99DD23.3060606@wxs.nl>

On Wednesday 22 September 2010 12:40:35 Hans Hagen wrote:
> On 22-9-2010 11:50, Andreas Harder wrote:
> > Hi all,
> > 
> > can someone confirm that picture- and formula-references are broken with
> > the current beta. Here is a test file:
> > 
> > \starttext
> > \placefigure[auto][pic:1]{caption}{\externalfigure[dummy]}
> > \placeformula[for:1]
> > \startformula
> > 
> >    a+b
> > 
> > \stopformula
> > 
> > \in{picture}[pic:1]
> > \in{formula}[for:1]
> > \stoptext
> 
> New beta. Can you check again? Keep in mind that pic: and fig: are also
> checked as prefix.
> 

I see from looking at the source code that prefixes are used
to localize references. There is also some sort of automatic
prefixing mechanism. Can someone explain this more as it is
not clear to me from documentation in the source code.

Indeed, I have for a long time used keys such as
\placefigure [here] [fig:Einstein] {caption} {\externalfigure [Einstein]}
and
\startchapter [reference=ch:Einstein,title=Einstein]
also
\placeformula [eqn:Einstein]
    \startformula E = mc^2 \stopformula
etc.
where the "prefix" is just a label uniquely identifying the tag,
thus avoiding multiple definitions.
(I also do this practice in LaTeX using \label{})
I was unaware that ConTeXt handled this explicitly.

Alan
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2010-09-24 13:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22  9:50 Andreas Harder
2010-09-22 10:40 ` Hans Hagen
2010-09-22 11:18   ` Andreas Harder
2010-09-24 13:30   ` Alan BRASLAU [this message]
2010-09-24 14:14     ` 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=201009241530.01668.alan.braslau@cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=andreas.harder@rz-online.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).