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: ref.pdf
Description: Adobe PDF document

\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: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________________
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 via email to