Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`
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 ___ 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 ___
[NTG-context] 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 ref.pdf Description: Adobe PDF document \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 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 ___