Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan

En/na Xan ha escrit:

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.


Sorry Taco, Bad news. It does not work: the same problem

Xan.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan

En/na Xan ha escrit:

En/na Xan ha escrit:

Thank VERY much,
Taco.

Do you recomand to substitute any $$ i \index with \mathematics?

Regards,
Xan.


Sorry Taco, Bad news. It does not work: the same problem

Xan.



Even with no math I get the same error:

\startmydefinition Siguin $G$ un grup, $X$ un conjunt finit de 
generadors de $G$, $\sigma \colon G \to {(X \cup X^{-1})}^*$ una secció 
i $k \geq 0$. La {\em amplada mitjana $k$-èssima de 
\sigma}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan 
respecte de \mathematics k+1 valors}, o {\em amplada mitjana de $k+1$ 
valors de $\sigma$}\index[amplada+mitjana respecte de k+1 
valors]{amplada+mitjan respecte de k+1 valors}, és la funció 
$\varphi_{\sigma, k} \colon \naturalnumbers \to 
\naturalnumbers$\mysymbol{$\varphi_{\sigma}$} definida per 
$\varphi_{\sigma, k} (0) = 0$ i, per a tot $n  0$,

\startformula
\varphi_{\sigma, k} (n)=  \max \{\frac{1}{k+1} \sum_{i=0}^k D_{\sigma, 
g, h} (t+i) \mid t \in \naturalnumbers, (g, h) \in K_{G, X} (n) \}.

\stopformula
Quan $\sigma$ sigui clara pel context o sigui una secció genèrica, 
escriurem simplement $\varphi_k (n)$\mysymbol{$\varphi_k$}. De forma 
trivial, $\varphi_0 = \varphi$ i $\varphi_1 = \lambda_{0,1}$.

\stopmydefinition

If I comment this code, then all is ok.

Can you see all the code and take a sight if you detect the error?

Xan.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Taco Hoekwater


Xan wrote:
 
 If I comment this code, then all is ok.

 Can you see all the code and take a sight if you detect the error?

Perhaps an older run is interfering (stuff still in the .tuc file).
After all, if there is no math, there should not be a math error either.
Can you delete the .tuc file and try again?

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan
Yes, Taco. With all files except source file deleted, and \mathematics 
instead of $$ \index works.


Is it any know bug or so? Why is the reason of that?. Just curious.

Xan.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Xan wrote:
Yes, Taco. With all files except source file deleted, and \mathematics 
instead of $$ \index works.


Is it any know bug or so? Why is the reason of that?. Just curious.


there will no new tuc file made when you have a 'fatal' error; normally 
that works out ok, unless there is a fatal error in the tuc file itself 
in which case you're kind of stuck (this only happens when there is a 
bug in the context code or something that context cannot recover from)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Xan

Xan wrote:
/ Yes, Taco. With all files except source file deleted, and \mathematics 

// instead of $$ \index works.
// 
// Is it any know bug or so? Why is the reason of that?. Just curious.

/
there will no new tuc file made when you have a 'fatal' error; normally 
that works out ok, unless there is a fatal error in the tuc file itself 
in which case you're kind of stuck (this only happens when there is a 
bug in the context code or something that context cannot recover from)



Hans


I was refering to what \mathematics works and $$ does not.

Thanks,
Xan.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Xan wrote:

Xan wrote:
/ Yes, Taco. With all files except source file deleted, and \mathematics 

// instead of $$ \index works.
// // Is it any know bug or so? Why is the reason of that?. Just 
curious.

/
there will no new tuc file made when you have a 'fatal' error; 
normally that works out ok, unless there is a fatal error in the tuc 
file itself in which case you're kind of stuck (this only happens when 
there is a bug in the context code or something that context cannot 
recover from)



Hans


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline math) 
works ok so best use $ $ then; \mathematics does this automatically


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Taco Hoekwater


Hi Hans,
Hans Hagen wrote:


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline math) 
works ok so best use $ $ then; \mathematics does this automatically


You should go back in the thread a bit. It looks like Xan's \index
entry (containing the simple math formula $k$) got cut off just
before the closing $ for some reason that I can't figure out.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-10 Thread Hans Hagen

Taco Hoekwater wrote:


Hi Hans,
Hans Hagen wrote:


I was refering to what \mathematics works and $$ does not.


there are only a few cases where $$ (in the sense of empty inline 
math) works ok so best use $ $ then; \mathematics does this automatically


You should go back in the thread a bit. It looks like Xan's \index
entry (containing the simple math formula $k$) got cut off just
before the closing $ for some reason that I can't figure out.


btw, i noticed in one of the examples ...

{amplada+mitjan respecte de \mathematics k+1 valors}

so, that's then $k$ and not $k+1$

anyhow, what is the smallest example showing the problem? I can get $x$ 
in an index here


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-09 Thread Taco Hoekwater

Hi Xan,

I forwarded your 'complete' document to myself but count not
run it at all (my pgf is too old, I guess). At a guess, and
especially because you said it is urgent, you could try this
for the offending \index entry:

\index
   [amplada+mitjana respecte de k+1 valors]
   {amplada+mitjan respecte de \mathematics{k+1} valors}


Best wishes,
Taco

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Urgent: Strange index problems

2009-09-08 Thread Xan

En/na Xan ha escrit:

Hi,

I have a document and I get this error:

publications: warning: cite argument riley-tesi unknown on 139
references  : unknown reference [][0]
section : 1.4 Més d'una secció
section : 1.5 $p_w$
section : 1.6 altres
{vertical mode: \tracingstats}
{\tracingpages}
{\tracingoutput}
{\tracinglostchars}
{\tracingmacros}
{\tracingparagraphs}
{\tracingrestores}
{\showboxbreadth}
{\showboxdepth}
{\tracinggroups}
{\tracingifs}
{\tracingscantokens}
{\tracingnesting}
{\tracingassigns}
{into \tracingassigns=2}
{\errorstopmode}

{\tracingonline}
{changing \tracingonline=1}

Completed box being shipped out [33.33]
Memory usage before: 5614778894; after: 919777521; still untouched: 
930938

title   : - Refer\dochar {232}ncies
[34.34]
title   : - Índex alfabètic
(./memoria.tuo
! Extra }, or forgotten $.
\doregistertexthowto ...?id #1\c!textcommand }{#2}
 \dostopattributes
\dohandleregisterentry ...exthowto {\v!index }{#1}
 \fi \egroup 
\!!doneafalse

\c!entryb ...ry {\v!index }{mitjan respecte de $k}
 \global 
\firstregisterentr...

argument \c!entrya \c!entryb
  \c!entryc \c!entryd
\secondoftwoarguments #1#2-#2
\dodosetpageregisterpageA ...\c!entryc 
\c!entryd }
 \global \let 
\c!entrya \re...

...
l.167 ...e{index}{,}{24}{2--0-1-3-0-0-0-0--32}{32}
 %
? x
{/usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc}{/usr/share/texmf/fonts/enc/dvip 

s/lm/lm-mathsy.enc}{/usr/share/texmf/fonts/enc/dvips/lm/lm-mathit.enc}{/usr/sha 

re/texmf/fonts/enc/dvips/lm/lm-rm.enc}{/usr/share/texmf/fonts/enc/dvips/lm/lm-m 

athex.enc}/usr/share/texmf/fonts/type1/public/lm/lmbx10.pfb/usr/share/texmf/ 

fonts/type1/public/lm/lmex10.pfb/usr/share/texmf/fonts/type1/public/lm/lmmi10 

.pfb/usr/share/texmf/fonts/type1/public/lm/lmmi6.pfb/usr/share/texmf/fonts/ 

type1/public/lm/lmmi7.pfb/usr/share/texmf/fonts/type1/public/lm/lmmi8.pfb/u 

sr/share/texmf/fonts/type1/public/lm/lmmi9.pfb/usr/share/texmf/fonts/type1/pu 

blic/lm/lmr10.pfb/usr/share/texmf/fonts/type1/public/lm/lmr6.pfb/usr/share/ 

texmf/fonts/type1/public/lm/lmr7.pfb/usr/share/texmf/fonts/type1/public/lm/lm 

r8.pfb/usr/share/texmf/fonts/type1/public/lm/lmr9.pfb/usr/share/texmf/fonts 

/type1/public/lm/lmri10.pfb/usr/share/texmf/fonts/type1/public/lm/lmri9.pfb 

/usr/share/texmf/fonts/type1/public/lm/lmsy10.pfb/usr/share/texmf/fonts/type1 

/public/lm/lmsy6.pfb/usr/share/texmf/fonts/type1/public/lm/lmsy7.pfb/usr/sh 

are/texmf/fonts/type1/public/lm/lmsy8.pfb/usr/share/texmf/fonts/type1/public/ 

lm/lmsy9.pfb/usr/share/texmf/fonts/type1/public/lm/lmtt10.pfb/usr/share/tex 

mf-texlive/fonts/type1/bluesky/ams/msam10.pfb/usr/share/texmf-texlive/fonts/t 


ype1/bluesky/ams/msbm10.pfb
Output written on memoria.pdf (34 pages, 424021 bytes).
Transcript written on memoria.log.
TeXExec | runtime: 18.095553
x...@rulot:~/Desktop/TFM/TFM/nou$



The problem appears after section \section{$\varphi_k$}, because if I 
put \stoptext after, all is ok. Anyone could see the problems? I 
attach the file. Please, help me.


Xan.



Too long, so I just copy the last section:


\section{$\varphi_k$}

Una altra possible generalització de $\varphi$ és, en comptes de 
realitzar la mitjana de les distàncies de dos valors, com féiem amb 
$\lambda_{s, k}$, fer la mitjana de $k$ valors consecutius.


\startmydefinition Siguin $G$ un grup, $X$ un conjunt finit de 
generadors de $G$, $\sigma \colon G \to {(X \cup X^{-1})}^*$ una secció, 
$k \geq 0$. La {\em amplada mitjana $k$-èssima de 
\sigma}\index[amplada+mitjana k-èssima d'una secció]{amplada+mitjana 
$k$-èssima d'una secció}, o {\em amplada mitjana de $k+1$ valors de 
$\sigma$}\index[amplada+mitjana respecte de k+1 valors]{amplada+mitjan 
respecte de $k+1$ valors}, és la funció $\varphi_{\sigma, k} \colon 
\naturalnumbers \to \naturalnumbers$\mysymbol{$\varphi_{\sigma}$} 
definida per $\varphi_{\sigma, k} (0) = 0$ i, per a tot $n  0$,

\startformula
\varphi_{\sigma, k} (n)=  \max \{ \sum_{i=0}^k D_{\sigma, g, h} (t+i) 
\mid t \in \naturalnumbers, (g, h) \in K_{G, X} (n) \}.

\stopformula
Quan $\sigma$ sigui clara pel context i sigui una secció genèrica, 
escriurem simplement $\varphi_k (n)$\mysymbol{$\varphi_k$}. De forma 
trivial, $\varphi_0 = \varphi$ i $\varphi_1 = \lambda_{0,1}$.

\stopmydefinition

Estendrem $\varphi_k$ als nombres reals mitjançant $\varphi_k (x) = 
\varphi_k (\lfloor x \rfloor)$ si $x  0$ i $\varphi_k (x) = \varphi_k 
(0)$ si $x  0$.


\startmylema Per a tot $k \geq 0$, tenim que $\varphi_k (n) \leq \varphi 
(n)$.

\stopmylema

\startmydemo Clarament, per a tot $n \in \naturalnumbers$,
\startformula
\startsplit
\NC \varphi_k (n) \NC = \max \{ \frac{1}{k+1} \sum_{i=0}^k D_{\sigma,