ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Paul Menzel <paulepanter@users.sourceforge.net>
To: ntg-context@ntg.nl
Subject: Re: [solved] No numbers with `\ref` and floats like `\placetable`
Date: Sun, 30 Oct 2011 12:18:55 +0100	[thread overview]
Message-ID: <1319973535.4242.8.camel@mattotaupa> (raw)
In-Reply-To: <D25276BB-5AED-4BEA-BC9E-C3E18EAED5DA@googlemail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 722 bytes --]

Am Sonntag, den 30.10.2011, 08:30 +0100 schrieb Wolfgang Schuster:
> Am 29.10.2011 um 23:47 schrieb Paul Menzel:

> > I am sorry for another reference related question. Using
> > 
> >        ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english
> > 
> > the following example does not work. Either no number is shown or »??«.
> > 
> >        \starttext
> > 
> >        Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference].
> 
> Use “\in[tab:reference]” to refer to the table number of give “\ref” a keyword (in your case “number”) for the first argument.

That indeed solved this issue. Thank you very much!


Thanks,

Paul

[-- Attachment #1.1.2: ref.pdf --]
[-- Type: application/pdf, Size: 22395 bytes --]

[-- Attachment #1.1.3: ref.tex --]
[-- Type: text/x-tex, Size: 870 bytes --]

\starttext

Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference].

\placetable[][tab:reference]
        {The table should be set up better.}
        {
        \startluacode
        context.bTABLE()
          context.bTR()
            context.bTD() context("n") context.eTD()
            for j=1,10 do
              context.bTD() context("$10^{" .. j .. "}$") context.eTD()
            end
          context.eTR()
          t = { 1, 2, 4, 8 }
          for index, i in ipairs(t) do
            context.bTR()
            context.bTD() context("$n^{" .. -i .. "}$") context.eTD()
            for j=1,10 do
              context.bTD() context("\%.4f", 10^(-j/i)) context.eTD()
            end
            context.eTR()
          end
        context.eTABLE()
        \stopluacode
        }
\stoptext

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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-10-30 11:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-29 21:47 Paul Menzel
2011-10-29 21:57 ` Andreas Harder
2011-10-30  8:45   ` Wolfgang Schuster
2011-10-30  9:05     ` Andreas Harder
2011-11-07 10:53     ` Andreas Harder
2011-11-07 11:03       ` Wolfgang Schuster
2011-11-07 11:45         ` Andreas Harder
2011-11-07 12:02           ` Wolfgang Schuster
2011-11-07 12:08             ` Andreas Harder
2011-10-30  7:30 ` Wolfgang Schuster
2011-10-30 11:18   ` Paul Menzel [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=1319973535.4242.8.camel@mattotaupa \
    --to=paulepanter@users.sourceforge.net \
    --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).