Re: [NTG-context] ntg-context Digest, Vol 71, Issue 54

2010-05-17 Thread richard . stephens

  Hello,
  
  Does anyone else have the following problems with numbering
for
  figures, equations etc in MKIV
  
  1. Using \setupnumbering[way=bysection] does not work
  2. The colour of references to figures etc is wrong.
 \setupinteraction[state=start,
  color=darkgreen,contrastcolor=darkgreen,style=normal]
 
 Marco

Thanks Marco, that works fine, but why do I need contrastcolor
and what does it do?

 From the mkiv source, it looks like the inheritance
is disabled at the
 moment for some reason (code is commented out).

 Explicit setting of :

  \setupcaptions[way=bysection]
  \setupformulas[way=bysection]

 works.

 Best wishes,
 Taco


I'm afraid this suggestion ALMOST works---it restarts
the numbering in each new section, but it
does not prefix the numbers with the section number,
so my previous example gives two Figure 1's.

There is code for \setupcaptions in strc-flt.mkiv
which has 'way' commented out.

Regards,

Richard





Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




___
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] MKIV numbering

2010-05-17 Thread richard . stephens

Oops - I forgot to change the subject, sorry for the
noise!

  Hello,
  
  Does anyone else have the following problems with numbering
for
  figures, equations etc in MKIV
  
  1. Using \setupnumbering[way=bysection] does not work
  2. The colour of references to figures etc is wrong.
 \setupinteraction[state=start,
  color=darkgreen,contrastcolor=darkgreen,style=normal]
 
 Marco

Thanks Marco, that works fine, but why do I need contrastcolor
and what does it do?

 From the mkiv source, it looks like the inheritance
is disabled at the
 moment for some reason (code is commented out).

 Explicit setting of :

  \setupcaptions[way=bysection]
  \setupformulas[way=bysection]

 works.

 Best wishes,
 Taco


I'm afraid this suggestion ALMOST works---it restarts
the numbering in each new section, but it
does not prefix the numbers with the section number,
so my previous example gives two Figure 1's.

There is code for \setupcaptions in strc-flt.mkiv
which has 'way' commented out.

Regards,

Richard






Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




___
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] MKIV numbering

2010-05-17 Thread Wolfgang Schuster

Am 17.05.10 12:08, schrieb richard.steph...@converteam.com:


  From the mkiv source, it looks like the inheritance is disabled at the
  moment for some reason (code is commented out).
 
  Explicit setting of :
 
  \setupcaptions[way=bysection]
  \setupformulas[way=bysection]
 
  works.
 
  Best wishes,
  Taco


I'm afraid this suggestion ALMOST works---it restarts the numbering in
each new section, but it
does not prefix the numbers with the section number, so my previous
example gives two Figure 1's.


\setupcaptions[way=bysection,prefixsegments=section]
\setupformulas[way=bysection,prefixsegments=section]

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] contextgarden down?

2010-05-17 Thread Patrick Gundlach
Hi Jano,

 is contexgarden.net down for some maintenance, or just by an accident?

Thanks for the notice, I have asked the provider to restart the server, 
hopefully this helps... 

Patrick

___
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] problem with ctx-file

2010-05-17 Thread Peter Münster
Hello,

With the latest version, I get the error

mtxrun:6961: attempt to index field '?' (a nil value)

Command: context --ctx=test-ctx.ctx test

File test-ctx.ctx :

?xml version='1.0' standalone='yes'?
ctx:job
  ctx:messageAdding svnhook mode./ctx:message
  ctx:preprocess/
  ctx:flags
ctx:flagnonstopmode/ctx:flag
  /ctx:flags
  ctx:process
ctx:resources
  ctx:modesvnhook/ctx:mode
/ctx:resources
  /ctx:process
  ctx:postprocess/
/ctx:job

File test.tex :

\starttext
hello
\stoptext

How can I solve this problem?

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] installing metauml in context

2010-05-17 Thread Shiv Shankar Dayal
Hi all,

Thanks a lot for this help. I tried again with modifications and it is working
with wrong alignment. I am tried using simplefonts like

\usemodule[simplefonts,vim,mathml]
\setmainfont[LucidaStd]
\setmonofont[CourierNew]

If I add the above code then it overrides Hanss' suggestion but still
the alignment
is wrong. I am going to try more fonts to get the alignment right.

 \startMPinclusions
    string metauml_defaultFont            ; metauml_defaultFont     :=
 \truefontname{Serif} ;
    string metauml_defaultFontOblique     ; metauml_defaultFontOblique     :=
 \truefontname{SerifItalic} ;
    string metauml_defaultFontBold        ; metauml_defaultFontBold     :=
 \truefontname{SerifBold} ;
    string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldOblique :=
 \truefontname{SerifBoldItalic} ;

    input metauml;
 \stopMPinclusions

 At least prevents the error but alignment is weird. Some pseudo typesetting
 is going on and the quality is suboptimal then (after all mp just pastes
 glyphs then). Take this:

 Class.A (Point) (+x: int, +y: int) ();

 It's probably no big deal for the author to support pictures instead of
 strings

 Class.A (Point) (btex +x: int etex, +y: int) ();

 Class.A (Point) (textext(+x: int), +y: int) ();

 It's probabaly already possible somehow but i have no time to look into the
 code in detail now.

 Hans

 -
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
 -




-- 
Best regards,
Shiv Shankar Dayal
___
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] UNSUBSCRIBE

2010-05-17 Thread Harrie Frericks
UNSUBSCRIBE
___
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] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-17 Thread Jaroslav Hajtmar

Hello,
is there any way to change default setting of style of section numbering 
of miscellaneous parts of documents?


In \startbodymatter  - \stopbodymatter environment is default style of 
numbering :


1. Section 1
2. Section 2

but in \startappendices \stopappendices environment is style of numbering:

A. Section 9
B. Section 10

in \startbackmatter - \stopbackmatter is  without numbering:
Section 14
Section 15


Is there due

\setupsectionblock
   [backpart]
   [before={\setupuserpagenumber[numberconversion=Romannumerals]}]

\setupsectionblock
   [appendix]
   [before={\setupuserpagenumber[numberconversion=numbers] %Characters
 \setupheadertexts[][]
 \setupfootertexts[][]
 }]

possibility change of section numbering to (for. example) only numbers 
in all parts of documents


thanx
Jaroslav

___
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] czech sorting

2010-05-17 Thread Tomáš Pustelník
Hi,

again czech sorting in MkIV is little wrong, I found it out coincidentally, 
when I was testing it. Order of character with accent is strange. Look at the 
file in attachment. Is there some way how to set order in which groups are 
supposed to be sorted, like in MkII? Also I really wonder why letter R is not 
included in sorting.

Tomas P.

cz-sort.pdf
Description: Adobe PDF document


cz-sort.tex
Description: Binary data
___
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] metaobj problem

2010-05-17 Thread Shiv Shankar Dayal
Hi,

I was trying to run following code from its manual i.e. metaobj's manual.

newCircle.a(btex A etex);
newCircle.b(btex B etex);
newCircle.c(btex C etex);
newCircle.d(btex D etex);
newCircle.e(btex E etex);
verbatimtex \small etex;
newMatrix.mat(3,3)(nb,a,nb,b,e,c,nb,d,nb) hsep(2cm), vsep(2cm);
mcline.mat(2,2,2,3) name(a);
ObjLabel.mat(btex a etex) labpathname(a),labpos(0.75), labdir(top);
mcline.mat(2,2,2,1) name(b);
ObjLabel.mat(btex b etex) labpathname(b),labdir(bot);
mcline.mat(3,2,2,1) name(c);
ObjLabel.mat(btex c etex) labpathname(c),labdir(llft);
mcarc.mat(3,2,1,2)
arcangleA(-40),arcangleB(-40), border(3pt), name(d);
ObjLabel.mat(btex d etex) labpathname(d),labdir(lrt), labpos(0.3);
ObjLabel.mat(btex e etex) labpathname(d),labdir(llft), labpos(0.7);
mcarc.mat(1,2,2,1) arcangleA(12),arcangleB(12), name(f);
ObjLabel.mat(btex f etex) labpathname(f),labdir(lrt);
mcarc.mat(2,1,1,2) arcangleA(12),arcangleB(12), name(g);
ObjLabel.mat(btex g etex) labpathname(g),labdir(ulft);
mat.c=origin;
drawObj(mat);

The problem is that the computer kind of stops processing. I mean it
is taking too long.
My pool_size is 100MB. I have increased it.

-- 
Best regards,
Shiv Shankar Dayal
___
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] installing metauml in context

2010-05-17 Thread Hans Hagen

On 17-5-2010 8:49, Shiv Shankar Dayal wrote:

Hi all,

Thanks a lot for this help. I tried again with modifications and it is working
with wrong alignment. I am tried using simplefonts like


also in the latest beta?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] czech sorting

2010-05-17 Thread Hans Hagen

On 17-5-2010 10:31, Tomáš Pustelník wrote:

Hi,

again czech sorting in MkIV is little wrong, I found it out coincidentally, 
when I was testing it. Order of character with accent is strange. Look at the 
file in attachment. Is there some way how to set order in which groups are 
supposed to be sorted, like in MkII? Also I really wonder why letter R is not 
included in sorting.


groups?

can you check the czech vector in sort-lan.lua?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 71, Issue 54

2010-05-17 Thread Marco
  Hello,
  
  Does anyone else  have the following problems with numbering for
  figures, equations etc in MKIV
  
  1. Using \setupnumbering[way=bysection] does not work
  2. The colour of references to figures etc is wrong.  
 \setupinteraction[state=start,
   color=darkgreen,contrastcolor=darkgreen,style=normal]
  
 Marco   

Thanks Marco, that works fine, but why do I need contrastcolor and what
does it do?  

When the link is on the same page as the reference it gets
»contrastcolor«, on different pages »color«.

Sorry for my late response, I'm not at home at the moment.

Marco


___
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] Placing a symbol at begin of a line when indenting is on

2010-05-17 Thread Vladimir Lomov
Hi.

Consider the following example
example file=square_q.ctx
\usesymbols[nav]
\setupindenting[yes, medium, next]

\starttext

\input tufte

\symbol[navigation 2][CloseDocument]
\input tufte

\input tufte

\stoptext
/example

In this example the symbol 'CloseDocument' (square) is placed at begin
of a line but it is indented. Is it possible to place the symbol such
that its left edge would be aligned by left edge of the text and the
indenting of following text is not touched?


Thanks in advance, Vladimir

-- 
Sears has everything.
___
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
___