[NTG-context] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Jaroslav Hajtmar

Hello all,
When I do:

\writetolist[chapter]{}{Appendicess}

then content is

1.  Section one
2.  Section two
  .  Appendices

stopper is visible - unacceptable for me


when I do:
\writebetweenlist[chapter]{Appendicess}

then content is

1.  Section one
2.  Section two
Appendices

without indentation - - unacceptable for me

Is there way to insert apropriate blank before word Appendicess to 
receive result:

1.  Section one
2.  Section two
 Appendices

My justification:
I am trying bypass this way  section numbering of miscellaneous parts of 
document, because I dont discover way to setting numbering of sections
in appendix part. When I turn on section numbering 
(\setupsectionblock[appendix][number=yes, ...) then result is:

1.  Section one
2.  Section two
...
A. Appendices

When I turn off section numbering 
(\setupsectionblock[appendix][number=no, ...) then result is:


1.  Section one
2.  Section two
  .  Appendices

it is unacceptable for me.

Last acceptable form is:
1.  Section one
2.  Section two
 Appendices

TIA 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
___


Re: [NTG-context] metaobj problem

2010-05-18 Thread Taco Hoekwater

Shiv Shankar Dayal wrote:

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;


This verbatimtex seems to be confusing the btex ... etex replacement
lua code (odd btex's and etex's remain in the MPlib input). Hans has
to look into this, I don't quite understand what goes wrong.

Best wishes,
Taco

PS Next time, please post a complete test file, not just a section.



___
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-18 Thread richard . stephens

   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

Thanks Wolfgang, that is absolutely fantastic. I'm
so happy I might just make a note of that on the wiki!

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

2010-05-18 Thread Hans Hagen

On 18-5-2010 5:17, Vladimir Lomov wrote:

\usesymbols[nav]
\setupindenting[yes, medium, next]

\starttext

\input tufte

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

\input tufte

\stoptext


\atleftmargin{\symbol[navigation 2][CloseDocument]} \input tufte


-
  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] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Hans Hagen

On 18-5-2010 8:02, Jaroslav Hajtmar wrote:

Hello all,
When I do:

\writetolist[chapter]{}{Appendicess}

then content is

1. Section one
2. Section two
. Appendices

stopper is visible - unacceptable for me


when I do:
\writebetweenlist[chapter]{Appendicess}

then content is

1. Section one
2. Section two
Appendices

without indentation - - unacceptable for me


well, writebetween is just that, you can try

\writebetweenlist[chapter]{\hskip3em Appendicess}

(a more comples solution involves cloning chapter but i have no time for 
explaining that 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
-
___
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] Placing a symbol at begin of a line when indenting is on

2010-05-18 Thread Vladimir Lomov
** Hans Hagen [2010-05-18 09:43:54 +0200]:

 On 18-5-2010 5:17, Vladimir Lomov wrote:
\usesymbols[nav]
\setupindenting[yes, medium, next]

\starttext

\input tufte

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

\input tufte

\stoptext

 \atleftmargin{\symbol[navigation 2][CloseDocument]} \input tufte

Thank you. Works as I expected.


-- 
Blessed is he who expects nothing, for he shall never be disappointed.
-- Alexander Pope
___
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] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Wolfgang Schuster

Am 17.05.10 22:12, schrieb Jaroslav Hajtmar:

Is there due

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

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

 \setupheadertexts[][]
 \setupfootertexts[][]
 }]


I suggest to use sectionblockenvironment for these settings, e.g.

\startsectionblockenvironment[backpart]
\setupusepagenumber[numberconversion=Romannumerals]
\stopsectionblockenvironment

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


\definestructureconversionset[numbers][][numbers]

\setupheads[sectionconversionset=numbers]

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] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Jaroslav Hajtmar

Thanx Wolfgang.
It is OK. Is there any possibility continue numbering from previous 
sections?


Is there any manual or informations about this?
I study contextref.pdf and I didnt any info about.

Thanx Jaroslav



Dne 18.5.2010 10:57, Wolfgang Schuster napsal(a):

Am 17.05.10 22:12, schrieb Jaroslav Hajtmar:

Is there due

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

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

 \setupheadertexts[][]
 \setupfootertexts[][]
 }]


I suggest to use sectionblockenvironment for these settings, e.g.

\startsectionblockenvironment[backpart]
\setupusepagenumber[numberconversion=Romannumerals]
\stopsectionblockenvironment

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


\definestructureconversionset[numbers][][numbers]

\setupheads[sectionconversionset=numbers]

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] Inserting apropriate blank - indenting by \writetolist

2010-05-18 Thread Jaroslav Hajtmar

Thanx Hans,
is there possibility insert by this way still pagenumber?
for example:
\writebetweenlist[Ikap]{\hskip2em {\bf Přílohy} \hfill\the\pagenumber } 
% get error



Thanx Jaroslav


Dne 18.5.2010 9:49, Hans Hagen napsal(a):

On 18-5-2010 8:02, Jaroslav Hajtmar wrote:

Hello all,
When I do:

\writetolist[chapter]{}{Appendicess}

then content is

1. Section one
2. Section two
. Appendices

stopper is visible - unacceptable for me


when I do:
\writebetweenlist[chapter]{Appendicess}

then content is

1. Section one
2. Section two
Appendices

without indentation - - unacceptable for me


well, writebetween is just that, you can try

\writebetweenlist[chapter]{\hskip3em Appendicess}

(a more comples solution involves cloning chapter but i have no time 
for explaining that 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
-



___
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] Sections numbering in miscellaneous parts of documents (MKIV)

2010-05-18 Thread Wolfgang Schuster

Am 18.05.10 11:56, schrieb Jaroslav Hajtmar:

Thanx Wolfgang.
It is OK. Is there any possibility continue numbering from previous 
sections?


Is there any manual or informations about this?
I study contextref.pdf and I didnt any info about.


This seems to be not possible in MkIV because a new sectionblock resets 
the counters
for the headers (that's what i can guess from the source) and only Hans 
can help here.


The manual does currently not explain the new MkIV commands for 
numberconversion etc.

and all you can do is to search in the list archive and the wiki.


I made a short example for Hans where the remaining problem is to 
continue the header
numbering in the appendix, i.e. header '1 Three' should be '3 Three' and 
'2 Four'should

be '4 Four'.


\definestructureconversionset[numbers][][numbers]

\setupheads[sectionconversionset=numbers]
\setupuserpagenumber[numberconversionset=numbers]

\starttext

\startbodymatter

\chapter{One}

\chapter{Two}

\stopbodymatter

\startappendices

\chapter{Three}

\chapter{Four}

\stopappendices

\stoptext

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
___


[NTG-context] POV-Ray

2010-05-18 Thread Shiv Shankar Dayal
Hi,

I have needs of graphics which is very heavy and I am using metapost,
metaobj and
metauml. However, as you may know the problems which I have reported I
think that
it would be better if I use POV-Ray for images. Sure the file size is
going to be blown
up by a margin but I think metapost can not beat POV-Ray in terms of power.

Please advice.

-- 
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] POV-Ray

2010-05-18 Thread Taco Hoekwater

Shiv Shankar Dayal wrote:

Hi,

I have needs of graphics which is very heavy and I am using metapost,
metaobj and
metauml. However, as you may know the problems which I have reported I
think that
it would be better if I use POV-Ray for images. Sure the file size is
going to be blown
up by a margin but I think metapost can not beat POV-Ray in terms of power.


Nor in terms of total processing time. ;)


Please advice.


It totally depends on the type of images you need.

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


[NTG-context] Register interaction (page references) [mkIV]

2010-05-18 Thread Thomas Floeren
 
Hi,

when I place an interactive register in mkIV, and then in the PDF click the 
pagenumber (in the index), it takes me to the wrong page; it seems to go to the 
absolute pdf page number(?).

Example:

\setupinteraction[state=start]

\startsectionblockenvironment[bodypart]
\setupuserpagenumber[number=1]
\stopsectionblockenvironment


\starttext
\startfrontmatter
\page[dummy]
\page[dummy]
\stopfrontmatter

\startbodymatter
\page[dummy]
bla\index{bla}
\stopbodymatter

\placeregister[index]
\stoptext


Is there something new I have to configure to make it work?

MkII works as expected.


Thomas


ConTeXt  ver: 2010.05.13 12:15 MKIV  fmt: 2010.5.18  int: english/english

___
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] POV-Ray

2010-05-18 Thread Mojca Miklavec
On Tue, May 18, 2010 at 14:44, Shiv Shankar Dayal wrote:
 Sure the file size is going to be blown
 up by a margin but I think metapost can not beat POV-Ray in terms of power.

 Please advice.

POV-Ray is for 3D raster images, while metapost is for 2D vector
images. I often use POV-Ray to generate complex 3D surfaces and then
overlay the image with metapost to add arrows, labels, ...

Two two programs are hardly comparable. They are used for completely
different needs. You need to tell what kind of images exactly you
would want to have.

Asymptote may lie somewhere between the two (less powerful than
POV-Ray, but more 3D features than metapost).

Mojca
___
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] POV-Ray

2010-05-18 Thread Renaud AUBIN

Hi, I indeed agree with Taco… but it depends on your input format, your
purpose, etc.

For me, the issue can't be resumed to a power comparison between povray
and metapost because these tools serve differents purposes!

If you want to obtain 3D realistic rendering (with raytracing), you
definitely have to use povray, YafaRay and co. and embed the resulting
image(s), or movies as usual (I myself never try to embed movies and
consequently can't state if that's possible).

Else, if you already have an existing 3D model (using 3ds, blend, lwo, …
format), wanted to *embed* (not just as an image) it within your final
document/pdf with *potential interactivity* and if realistic rendering
is not your point you should consider using u3d or prc format and read
and try to use it. Search the ML for further details. The main point
here is the 3D model conversion to u3d or prc…

If you start from scratch and really want to *embed* your 3D model,
consider using asymptote to produce a prc file and proceed as in the
previous point (see the ML for details). I have never done that.

The real issue is: what's your need ?

For example, on the one hand I have used u3d embedding for my PhD slides
because I wanted to be able to show some details of my 3D model but
doesn't want to open a heavy CAD application… On the other hand, I have
used povray renderings on the very same 3D model in my PhD thesis. I
have used metapost a lot for the same document, but only for 2D
diagrams… 


Best regards,

Renaud


Shiv Shankar Dayal wrote:
 Hi,

 I have needs of graphics which is very heavy and I am using metapost,
 metaobj and
 metauml. However, as you may know the problems which I have reported I
 think that
 it would be better if I use POV-Ray for images. Sure the file size is
 going to be blown
 up by a margin but I think metapost can not beat POV-Ray in terms of power.

Nor in terms of total processing time. ;)

 Please advice.

It totally depends on the type of images you need.

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

2010-05-18 Thread Renaud AUBIN

Hi, I indeed agree with Taco… but it depends on your input format,
your purpose, etc.

For me, the issue can't be resumed to a power comparison between
povray and metapost because these tools serve differents purposes!

If you want to obtain 3D realistic rendering (with raytracing),
you definitely have to use povray, YafaRay and co. and embed the
resulting image(s), or movies as usual (I myself never try to
embed movies and consequently can't state if that's possible).

Else, if you already have an existing 3D model (using 3ds, blend,
lwo, … format), wanted to *embed* (not just as an image) it within
your final document/pdf with *potential interactivity* and if
realistic rendering is not your point you should consider using
u3d or prc format and read and try to use it. Search the ML for
further details. The main point here is the 3D model conversion to
u3d or prc…

If you start from scratch and really want to *embed* your 3D
model, consider using asymptote to produce a prc file and proceed
as in the previous point (see the ML for details). I have never
done that.

The real issue is: what's your need ?

For example, on the one hand I have used u3d embedding for my PhD
slides because I wanted to be able to show some details of my 3D
model but doesn't want to open a heavy CAD application… On the
other hand, I have used povray renderings on the very same 3D
model in my PhD thesis. I have used metapost a lot for the same
document, but only for 2D diagrams…


Best regards,

Renaud

 Taco == Taco Hoekwater t...@elvenkind.com writes:

Taco Shiv Shankar Dayal wrote:
 Hi,
 
 I have needs of graphics which is very heavy and I am using metapost,
 metaobj and metauml. However, as you may know the problems which I
 have reported I think that it would be better if I use POV-Ray for
 images. Sure the file size is going to be blown up by a margin but I
 think metapost can not beat POV-Ray in terms of power.

Taco Nor in terms of total processing time. ;)

 Please advice.

Taco It totally depends on the type of images you need.

Taco Best wishes, Taco


Taco 
___
Taco If your question is of interest to others as well, please add an
Taco entry to the Wiki!

Taco maillist : ntg-context@ntg.nl /
Taco http://www.ntg.nl/mailman/listinfo/ntg-context webpage :
Taco http://www.pragma-ade.nl / http://tex.aanhet.net archive :
Taco http://foundry.supelec.fr/projects/contextrev/ wiki :
Taco http://contextgarden.net
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___