No numbers with `\ref` and floats like `\placetable`
Dear ConTeXt folks, 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]. \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 Please find the source file and the resulting PDF file attached. Thanks, Paul
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta. \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas
Am 29.10.2011 um 23:57 schrieb Andreas Harder:
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta.
I’m aware of this but I hadn’t time so far to write a fix for this. Wolfgang
On 30.10.2011, at 09:45, Wolfgang Schuster wrote:
Am 29.10.2011 um 23:57 schrieb Andreas Harder:
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta.
I’m aware of this but I hadn’t time so far to write a fix for this.
Okay. Thank you in advance. Andreas
On 30.10.2011, at 09:45, Wolfgang Schuster wrote:
Am 29.10.2011 um 23:57 schrieb Andreas Harder:
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta.
I’m aware of this but I hadn’t time so far to write a fix for this.
Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas
Am 07.11.2011 um 11:53 schrieb Andreas Harder:
On 30.10.2011, at 09:45, Wolfgang Schuster wrote:
Am 29.10.2011 um 23:57 schrieb Andreas Harder:
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta.
I’m aware of this but I hadn’t time so far to write a fix for this.
Hi Wolfgang,
still no fix?
\starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext
When you don’t need subformulas change this in strc-mat.mkiv: %\def\storecurrentformulanumber#1#2#3#4#5% ref, todo:str, \sync % todo: title etc (like float) % {\dostructurecountercomponent % {formula}% % \getformulaparameters \formulaparameter \detokenizedformulaparameter % \relax \relax \relax % [\c!name=\v!formula,\s!counter=\v!formula,% % \s!hascaption=\v!yes,\s!hastitle=\v!yes,\s!hasnumber=\v!yes,%\s!haslevel=#6,% % \s!hasnumber=\v!no,% % \c!reference=#1,\c!title=\namedformulaentry,\c!bookmark=]% % [#2]% % \glet\namedformulaentry\relax % \globallet#3\laststructurecounternumber % \globallet#4\laststructurecountersynchronize % \globallet#5\laststructurecounterattribute} \def\storecurrentformulanumber#1#2#3#4#5% ref, todo:str, \sync % todo: title etc (like float) {\dostructurecountercomponent {formula}% \getformulaparameters \formulaparameter \detokenizedformulaparameter \relax \relax \relax [\c!name=\v!formula,\s!counter=\v!formula,% \s!hascaption=\v!yes,\s!hastitle=\v!yes,\s!hasnumber=\v!yes,%\s!haslevel=#6,% \c!reference=#1,\c!title=\namedformulaentry,\c!bookmark=]% [#2]% \glet\namedformulaentry\relax \globallet#3\laststructurecounternumber \globallet#4\laststructurecountersynchronize \globallet#5\laststructurecounterattribute} %\def\dohandleformulanumbering % {\doincrementsubstructurecounter[\v!formula][1]% % \doiftext\currentplaceformulasuffix{\setsubstructurecounterown[\v!formula][2]{\currentplaceformulasuffix}}% % \placecurrentformulanumber} \def\dohandleformulanumbering {\doiftext\currentplaceformulasuffix{\setsubstructurecounterown[\v!formula][2]{\currentplaceformulasuffix}}% \placecurrentformulanumber} Wolfgang
On 07.11.2011, at 12:03, Wolfgang Schuster wrote:
Am 07.11.2011 um 11:53 schrieb Andreas Harder:
On 30.10.2011, at 09:45, Wolfgang Schuster wrote:
Am 29.10.2011 um 23:57 schrieb Andreas Harder:
On 29.10.2011, at 23:47, Paul Menzel wrote:
Dear ConTeXt folks,
I am sorry for another reference related question. Using
ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: english/english
That's also true for yesterdays beta.
I’m aware of this but I hadn’t time so far to write a fix for this.
Hi Wolfgang,
still no fix?
\starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext
When you don’t need subformulas change this in strc-mat.mkiv:
I don’t, thanks. Andreas
Am 07.11.2011 um 12:45 schrieb Andreas Harder:
When you don’t need subformulas change this in strc-mat.mkiv:
I don’t, thanks.
Instead of patching strc-mat.mkiv you can create a file with the name cont-loc.mkiv in your working directory where you add both modified commands. With this method you don’t have to make the changes in the core and when it’s fixed just delete this file. Wolfgang
On 07.11.2011, at 13:02, Wolfgang Schuster wrote:
Am 07.11.2011 um 12:45 schrieb Andreas Harder:
When you don’t need subformulas change this in strc-mat.mkiv:
I don’t, thanks.
Instead of patching strc-mat.mkiv you can create a file with the name cont-loc.mkiv in your working directory where you add both modified commands. With this method you don’t have to make the changes in the core and when it’s fixed just delete this file.
This is a really useful tip! Thanks again. Andreas
Am 29.10.2011 um 23:47 schrieb Paul Menzel:
Dear ConTeXt folks,
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. Wolfgang
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
participants (3)
-
Andreas Harder
-
Paul Menzel
-
Wolfgang Schuster