Re: [NTG-context] about \sym{} and n*broad

2009-09-16 Thread Hans Hagen

Dalyoung wrote:

Dear Hans,

Thank you for the correction.
After swapping first and second as you told, I got the good result.

I have another question.

If I use 4*broad in the first level itemization, it seems to me that it 
inherently applied to the second and third level too.
Even though I set just serried or broad instead of 4*broad in the second 
or the third level, it seems to be ignored.


Is it normal?


no, it's an unwanted side effect of the new inheritance model; i'll look 
into it


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] about \sym{} and n*broad

2009-09-16 Thread Hans Hagen

Dalyoung wrote:

Dear Hans,

Thank you for the correction.
After swapping first and second as you told, I got the good result.

I have another question.

If I use 4*broad in the first level itemization, it seems to me that it 
inherently applied to the second and third level too.
Even though I set just serried or broad instead of 4*broad in the second 
or the third level, it seems to be ignored.


Is it normal?


i uploaded a new beta (also fixed some of the reported formula ref 
problems)


can you test if itemize behaves as expected?

i jusy tested:

\setupitemgroup[itemize][2][color=blue]

\setupcolors[state=start]

\startitemize[4*broad][color=red]
\item test
\startitemize % [standard]
\item test
\item test
\stopitemize
\item test
\stopitemize


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


[NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Hi,

I’m new to ConTeXt and try to compile a document using XeTeX. Loading an
otf font works fine, but I don’t get it to use oldstyle numbers. google
and contextgarden did give me some hints, but I didn’t get it working. I
tried:

\starttext
\definetypeface[normalfont][rm][Xserif][Arno Pro]
\stoptext

and several versions of things like [features=oldstyle], [onum=true],
\definefontfeature[mine] with oldstyle etc. but nothing worked.

So what am I doing wrong? Is there a simple way for oldstyle numbers? (I
want them in the whole document, so I prefer a simple, global solution.)

cheers,
Arno



signature.asc
Description: OpenPGP digital signature
___
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] oldstyle numbers

2009-09-16 Thread Wolfgang Schuster


Am 16.09.2009 um 12:07 schrieb Arno Trautmann:


Hi,

I’m new to ConTeXt and try to compile a document using XeTeX.  
Loading an
otf font works fine, but I don’t get it to use oldstyle numbers.  
google
and contextgarden did give me some hints, but I didn’t get it  
working. I

tried:

\starttext
\definetypeface[normalfont][rm][Xserif][Arno Pro]
\stoptext

and several versions of things like [features=oldstyle], [onum=true],
\definefontfeature[mine] with oldstyle etc. but nothing worked.

So what am I doing wrong? Is there a simple way for oldstyle  
numbers? (I
want them in the whole document, so I prefer a simple, global  
solution.)


\definefontfeature[default][default][onum=yes]

% when this did not work (because your context is too old) use:
% \definefontfeature[default] 
[liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes]


\definetypeface[mainface][rm][Xserif][Arno Pro]

\setupodyfont[mainface]

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


Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Wolfgang Schuster wrote:
 
 Am 16.09.2009 um 12:07 schrieb Arno Trautmann:
 
 Hi,

 I’m new to ConTeXt and try to compile a document using XeTeX. Loading an
 otf font works fine, but I don’t get it to use oldstyle numbers. google
 and contextgarden did give me some hints, but I didn’t get it working. I
 tried:

 \starttext
 \definetypeface[normalfont][rm][Xserif][Arno Pro]
 \stoptext

 and several versions of things like [features=oldstyle], [onum=true],
 \definefontfeature[mine] with oldstyle etc. but nothing worked.

 So what am I doing wrong? Is there a simple way for oldstyle numbers? (I
 want them in the whole document, so I prefer a simple, global solution.)
 
 \definefontfeature[default][default][onum=yes]

 \definetypeface[mainface][rm][Xserif][Arno Pro]
 
 \setupodyfont[mainface]
 
 \starttext
 0123456789
 \stoptext

Thank you very much, that works fine!
Just for future questions: Where could I have found this? (I prefer
reading documentation than wasting people’s time by asking …)

cheers,
Arno



signature.asc
Description: OpenPGP digital signature
___
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] oldstyle numbers

2009-09-16 Thread Wolfgang Schuster


Am 16.09.2009 um 12:25 schrieb Arno Trautmann:


Just for future questions: Where could I have found this? (I prefer
reading documentation than wasting people’s time by asking …)


- 
http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
- http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf

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


Re: [NTG-context] oldstyle numbers

2009-09-16 Thread Arno Trautmann
Wolfgang Schuster wrote:
 
 Am 16.09.2009 um 12:25 schrieb Arno Trautmann:
 
 Just for future questions: Where could I have found this? (I prefer
 reading documentation than wasting people’s time by asking …)
 
 -
 http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
 
 -
 http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf

Thanks again, that will help me a lot!

Arno



signature.asc
Description: OpenPGP digital signature
___
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] overprinting

2009-09-16 Thread Peter Rolf

Hi Hans, hi all,

I use overprinting only for the texts  (not global). Most times the 
texts are stored in a \[h|v]box first, before they are added to the rest 
(offsets, background, whatever). So thinks look like this (very simplified):


\setbox\Textbox\hbox{\startoverprint Some text.\stopoverprint}

Overprinting should be activated only inside of this box. Sadly mkiv 
adds this attribute to most of the graphics with text. The first 
graphics is always OK, but the following graphics are overprinted as a 
whole.


I have compared the pdf of pdftex and luatex and the main difference is, 
that luatex 'optimizes' the overprinted texts by *grouping* them. 
Instead of two or more independent areas (one /GSoverprint ... 
/GSknockout for every text), like in mkii,


% pdftex
%
/GSoverprint gs % text 1
BT
/Fm?? first overprinted text
...
/GSknockout gs

/GSoverprint gs % text 2
BT
/Fm?? second overprinted text
...
/GSknockout gs
%


I get

% luatex
%
/GSoverprint gs % text 1 and 2
BT
/Fm?? first overprinted text
...
/Fm?? second overprinted text
...
/GSknockout gs
%


This is right from the point of overprinting, but the texts are still 
part of different graphics (rendering is done at different times). I 
guess this somehow corrupts the grouping. The first graphic in such a 
group is always OK, all following graphics are overprinted as a whole. I 
have tested this with more than two graphics (resulting in two multiple 
groups) and I get the same effect.


No minimal yet. Any thoughts?

Best wishes,  Peter



Hans Hagen schrieb:

Peter Rolf wrote:

Hans Hagen schrieb:

Peter Rolf wrote:

first tests show that there are still scope problems in mkiv (e.g. 
a complete button is set to overprint instead of the text only).

no clue yet, but i'm working on it...


sure, as overprint is not aware of any content so you need to use 
knockout then



mh, isn't \stopoverprint enabling knockout automatically?
or do i need a \ExtGState entry with knockout at the document level?
just started reading in the pdf reference manual...


it depends ... we have none: no entry at all, knockout: some nil 
entry, overprint: special entry


the thing is that when we have globally overprint on, we need s local 
knockout :


\startoverprint
  ... \bgroup ...
  \startknockout
...
  \stopknockout
  ... \egroup ...
\stopoverprint

is nicer than

\startoverprint
  ... \bgroup ...
  \stopoverprint
...
  \startoverprint
  ... \egroup ...
\stopoverprint

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
___ 






___
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] oldstyle numbers

2009-09-16 Thread Matthijs Kooijman
Hi,

 \definefontfeature[default][default][onum=yes]
Just for rerefence, this works for me as well using MkIV and luatex.

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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
___


[NTG-context] \currentpage always 1

2009-09-16 Thread Peter Münster
Hello,

\currentpage is always 1 here:

\starttext
currentpage: \currentpage, realpageno: \the\realpageno
\page
currentpage: \currentpage, realpageno: \the\realpageno
\stoptext

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


[NTG-context] First report on use

2009-09-16 Thread Alain Delmotte

Hi!

After discovering some details of ConTeXt during EuroTeX2009 I decided 
to try it.


First problem, already encountered during EuroTeX: installation.
On both of my machines the installation of the minimals failed.
See attached file.
For example: lines 13-14 rsync error, but at lines 26-30 it looks like 
it works, just a moment: after 30-35 I get 36-37 = error again.

On lines 77-80 there is another type of error.

But I installed ConTeXt from a copy of what Mari had on her portable 
(this brings other questions, later); so it works for now.


But still in the error file, looking at lines 97-98 and 99-100, for 
example, what is the installation program changing in my mikTeX 
installation?


---
Now for the working installation.
1) As it was taken from Mari machine, isn't there possible problems with 
parameters from her machine which are not the same on mine?

2) How can update and/or create new formats?

I am using ConTeXt with TeXworks; I did install a full copy of TeXworks 
(programs and dlls) in 
C:\Programmes\ConTeXt\texmf-context\context\data\texworks and I issue 
the setuptex.bat command before to start the ConTeXt TeXworks. (You can 
see that I installed ConTeXt in a folder without spaces in the name: 
C:\Programmes\ConTeXt\.)


I am only using Mark IV, following the suggestion of Hans (for French,...)
So I didn't install Ruby.

OK the next questions will be about documentation, in another message.

Thanks very much for ConTeXt (and again for EuroTeX2009 - it was very good).

Regards,

Alain

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Principalcd c:\context

C:\contextfirst-setup
'ruby' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

You need to install Ruby first (if you want to use pdfTeX or XeTeX).
Fetching files anyway.

rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | fileio: variable SELFAUTOLOC set to C:/context/bin
MTXrun | fileio: variable SELFAUTODIR set to C:/context
MTXrun | fileio: variable SELFAUTOPARENT set to C:
MTXrun | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/shar
e,}/texmf{-local,.local,}/web2c}
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | using script: ./bin/mtx-update.lua

MTXrun | state: loaded
MTXrun | update: start
MTXrun | mtx update: running command: rsync -rpztlv --stats  contextgarden.net::
'minimals/current/bin/common/mswin/ minimals/current/bin/context/mswin/ minimals
/current/bin/metapost/mswin/ minimals/current/bin/man/ minimals/current/bin/xete
x/mswin/ minimals/current/bin/luatex/mswin/ minimals/current/bin/pdftex/mswin/'
'/cygdrive/C/context/tex/texmf-mswin'
MTXrun | run: rsync -rpztlv --stats  contextgarden.net::'minimals/current/bin/co
mmon/mswin/ minimals/current/bin/context/mswin/ minimals/current/bin/metapost/ms
win/ minimals/current/bin/man/ minimals/current/bin/xetex/mswin/ minimals/curren
t/bin/luatex/mswin/ minimals/current/bin/pdftex/mswin/' '/cygdrive/C/context/tex
/texmf-mswin'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats  contextgarden.net::
'minimals/current/misc/setuptex/' '/cygdrive/C/context/tex/.'
MTXrun | run: rsync -rpztlv --stats  contextgarden.net::'minimals/current/misc/s
etuptex/' '/cygdrive/C/context/tex/.'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats --delete contextgard
en.net::'minimals/current/context/beta/ minimals/current/context/img/' '/cygdriv
e/C/context/tex/texmf-context'
MTXrun | run: rsync -rpztlv --stats --delete contextgarden.net::'minimals/curren
t/context/beta/ minimals/current/context/img/' '/cygdrive/C/context/tex/texmf-co
ntext'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats --delete contextgard
en.net::'minimals/current/base/tex/ minimals/current/base/metapost/ minimals/cur
rent/fonts/common/ minimals/current/fonts/other/ minimals/current/misc/web2c min
imals/current/base/xetex/ minimals/current/fonts/new/ minimals/current/fonts/new
/ minimals/current/fonts/old/' '/cygdrive/C/context/tex/texmf'
MTXrun | run: rsync -rpztlv --stats --delete contextgarden.net::'minimals/curren
t/base/tex/ minimals/current/base/metapost/ minimals/current/fonts/common/ minim
als/current/fonts/other/ minimals/current/misc/web2c minimals/current/base/xetex
/ minimals/current/fonts/new/ minimals/current/fonts/new/ minimals/current/fonts

Re: [NTG-context] about \sym{} and n*broad

2009-09-16 Thread dalyoung

Dear Hans,

I downloaded a new beta and test your sample and mine.

It works perfectly.

Thank you for the prompt fix.

Best regards,

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


[NTG-context] First report on use

2009-09-16 Thread Alain Delmotte

Hi!

After discovering some details of ConTeXt during EuroTeX2009 
I decided to try it.


First problem, already encountered during EuroTeX: installation.
On both of my machines the installation of the minimals failed.
See attached file.
For example: lines 13-14 rsync error, but at lines 26-30 it 
looks like it works, just a moment: after 30-35 I get 36-37 
= error again.

On lines 77-80 there is another type of error.

But I installed ConTeXt from a copy of what Mari had on her 
portable (this brings other questions, later); so it works 
for now.


But still in the error file, looking at lines 97-98 and 
99-100, for example, what is the installation program 
changing in my mikTeX installation?


---
Now for the working installation.
1) As it was taken from Mari machine, isn't there possible 
problems with parameters from her machine which are not the 
same on mine?

2) How can update and/or create new formats?

I am using ConTeXt with TeXworks; I did install a full copy 
of TeXworks (programs and dlls) in
C:\Programmes\ConTeXt\texmf-context\context\data\texworks 
and I issue the setuptex.bat command before to start the 
ConTeXt TeXworks. (You can see that I installed ConTeXt in a 
folder without spaces in the name: C:\Programmes\ConTeXt\.)


I am only using Mark IV, following the suggestion of Hans 
(for French,...)

So I didn't install Ruby.

OK the next questions will be about documentation, in 
another message.


Thanks very much for ConTeXt (and again for EuroTeX2009 - it 
was very good).


Regards,

Alain


Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Principalcd c:\context

C:\contextfirst-setup
'ruby' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

You need to install Ruby first (if you want to use pdfTeX or XeTeX).
Fetching files anyway.

rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | fileio: variable SELFAUTOLOC set to C:/context/bin
MTXrun | fileio: variable SELFAUTODIR set to C:/context
MTXrun | fileio: variable SELFAUTOPARENT set to C:
MTXrun | fileio: variable TEXMFCNF set to {$SELFAUTODIR,$SELFAUTOPARENT}{,{/shar
e,}/texmf{-local,.local,}/web2c}
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | using script: ./bin/mtx-update.lua

MTXrun | state: loaded
MTXrun | update: start
MTXrun | mtx update: running command: rsync -rpztlv --stats  contextgarden.net::
'minimals/current/bin/common/mswin/ minimals/current/bin/context/mswin/ minimals
/current/bin/metapost/mswin/ minimals/current/bin/man/ minimals/current/bin/xete
x/mswin/ minimals/current/bin/luatex/mswin/ minimals/current/bin/pdftex/mswin/'
'/cygdrive/C/context/tex/texmf-mswin'
MTXrun | run: rsync -rpztlv --stats  contextgarden.net::'minimals/current/bin/co
mmon/mswin/ minimals/current/bin/context/mswin/ minimals/current/bin/metapost/ms
win/ minimals/current/bin/man/ minimals/current/bin/xetex/mswin/ minimals/curren
t/bin/luatex/mswin/ minimals/current/bin/pdftex/mswin/' '/cygdrive/C/context/tex
/texmf-mswin'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats  contextgarden.net::
'minimals/current/misc/setuptex/' '/cygdrive/C/context/tex/.'
MTXrun | run: rsync -rpztlv --stats  contextgarden.net::'minimals/current/misc/s
etuptex/' '/cygdrive/C/context/tex/.'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats --delete contextgard
en.net::'minimals/current/context/beta/ minimals/current/context/img/' '/cygdriv
e/C/context/tex/texmf-context'
MTXrun | run: rsync -rpztlv --stats --delete contextgarden.net::'minimals/curren
t/context/beta/ minimals/current/context/img/' '/cygdrive/C/context/tex/texmf-co
ntext'
rsync: failed to connect to contextgarden.net: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(122) [receiver=3.0.2
]
MTXrun | mtx update: running command: rsync -rpztlv --stats --delete contextgard
en.net::'minimals/current/base/tex/ minimals/current/base/metapost/ minimals/cur
rent/fonts/common/ minimals/current/fonts/other/ minimals/current/misc/web2c min
imals/current/base/xetex/ minimals/current/fonts/new/ minimals/current/fonts/new
/ minimals/current/fonts/old/' '/cygdrive/C/context/tex/texmf'
MTXrun | run: rsync -rpztlv --stats --delete contextgarden.net::'minimals/curren
t/base/tex/ minimals/current/base/metapost/ minimals/current/fonts/common/ minim
als/current/fonts/other/ minimals/current/misc/web2c minimals/current/base/xetex
/ minimals/current/fonts/new/ minimals/current/fonts/new/ 

[NTG-context] nested modes

2009-09-16 Thread Peter Münster
Hello,

Here is a problem with nested modes:

\starttext
no mode
\startmode[mode1]
  mode1a
  \startmode[mode2]
mode2
  \stopmode
  mode1b % this is printed, but it should not
\stopmode
no mode
\stoptext

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


[NTG-context] Sorry again and end of message

2009-09-16 Thread Alain Delmotte

Hi!

I unintentionally moved the mouse which sent the message, again with the 
wrong sender!


So Which documentation should I use to start?

Thanks,

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


[NTG-context] Beamer for ConTeXt?

2009-09-16 Thread Xan

Hi,

Is there any package like beamer for ConTeXt. I know there is mode way 
for doing presentacions in ConTeXt but I'm refering to any way for doing 
the frames, etc. faster and easier. Perhaps simple-slides 
[http://github.com/adityam/simple-slides]?


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
___


[NTG-context] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf

Hi Hans,

overprinting is broken under very special conditions. You need to add 
framed content with a defined mp overlay as background and *deactivated 
frame* to a layer (last of the four pairs in the example). The text of 
the last pair is written in the same \GSoverprint group (in this case 
the \GSknockout is even missing). Very obscure.


Have fun,

Peter

\setupcolors[state=start]
\setuppagenumber[state=stop]

\pdfcompresslevel=0
\pdfobjcompresslevel=0

\startuniqueMPgraphic{FOO}
fill OverlayBox withcolor lightgray;
\stopuniqueMPgraphic

\defineoverlay[FOO][\uniqueMPgraphic{FOO}]
\definelayer[BAR]



\starttext

% OK
\setlayer[BAR][x=0mm,y=0mm]
{\framed[background=color,backgroundcolor=lightgray,frame=off]
{\startoverprint first one\stopoverprint}}
\setlayer[BAR][x=50mm,y=0mm]
{\framed[background=color,backgroundcolor=lightgray,frame=off]
{\startoverprint second one\stopoverprint}}

% OK
\setlayer[BAR][x=0mm,y=15mm]
{\framed[background=color,backgroundcolor=lightgray,frame=on]
{\startoverprint first one\stopoverprint}}
\setlayer[BAR][x=50mm,y=15mm]
{\framed[background=color,backgroundcolor=lightgray,frame=on]
{\startoverprint second one\stopoverprint}}

% OK
\setlayer[BAR][x=0mm,y=30mm]
{\framed[background=FOO,frame=on]
{\startoverprint first one\stopoverprint}}
\setlayer[BAR][x=50mm,y=30mm]
{\framed[background=FOO,frame=on]
{\startoverprint second one\stopoverprint}}

% ( layer + overlay + frame=off ) is buggy
\setlayer[BAR][x=0mm,y=45mm]
{\framed[background=FOO,frame=off]
{\startoverprint first one\stopoverprint}}
\setlayer[BAR][x=50mm,y=45mm]
{\framed[background=FOO,frame=off]
{\startoverprint second one\stopoverprint}}


\flushlayer[BAR]

\stoptext


ovp.pdf
Description: Adobe PDF document
___
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] First report on use

2009-09-16 Thread Vyatcheslav Yatskovsky

Hello Alan,

Try GUI Windows installer:

http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe

It should work smoothly

Regards,
Vyatcheslav
___
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] metaobj and luatex 0.42.0

2009-09-16 Thread Matthijs Kooijman
Hi Matthew,

I've been playing with metaobj and luatex 0.43 for a bit, and faced similar
problems. Lots of stuff about redundant equations and other stuff I didn't
understand.

However, I've found that cleaning up your objects when you're done pretty much
solves all my problems. For example, just add a clearObj line to your code
makes it work for me:

\startMPinclusions 
input metaobj; 
\stopMPinclusions

\starttext 
\startMPpage 
newBox.a(\sometxt{hello world}); 
a.c = origin;
drawObj(a);
clearObj a;

\stopMPpage 
\stoptext

I'm not completely sure why this is clearObj a (and not clearObj(a), which
seems to be more logical considering drawObj also takes parentheses), but
that's probably something of the wonderful world of macro programming.

Hope this helps,

Matthijs


signature.asc
Description: Digital signature
___
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
___


[NTG-context] Fwd: Re: First report on use

2009-09-16 Thread Vyatcheslav Yatskovsky

It will not interfere if you uncheck Set env. vars globally option
during installation. Then, it's safe.

Vyatcheslav



 I think the GUI installer is writing in the register and this could
 interfere with the normal MikTeX/(La)TeX/TeXnicCenter system.
 If I understood well when I was at EuroTeX.

 I'll have another look.

 Thanks,

 Alain

 Vyatcheslav Yatskovsky a écrit :

 Hello Alan,

 Try GUI Windows installer:

 
http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe


 It should work smoothly

 Regards,
 Vyatcheslav





___
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] nested modes

2009-09-16 Thread Hans Hagen

Peter Münster wrote:

Hello,

Here is a problem with nested modes:

\starttext
no mode
\startmode[mode1]
  mode1a
  \startmode[mode2]
mode2
  \stopmode
  mode1b % this is printed, but it should not
\stopmode
no mode
\stoptext


indeed, will never work, when nested use \startlocalmode or \doifmodeelse

-
  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] Beamer for ConTeXt?

2009-09-16 Thread Hans Hagen

Xan wrote:

Hi,

Is there any package like beamer for ConTeXt. I know there is mode way 
for doing presentacions in ConTeXt but I'm refering to any way for doing 
the frames, etc. faster and easier. Perhaps simple-slides 
[http://github.com/adityam/simple-slides]?


also, there have always been a bunch of s-pre-* styles that one can use

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] overprint bug (mkiv)

2009-09-16 Thread Hans Hagen

Peter Rolf wrote:

overprinting is broken under very special conditions. You need to add 
framed content with a defined mp overlay as background and *deactivated 
frame* to a layer (last of the four pairs in the example). The text of 
the last pair is written in the same \GSoverprint group (in this case 
the \GSknockout is even missing). Very obscure.



\def\reuseMPbox#1#2#3#4#5% space delimiting would save some tokens
  {\xdef\MPllx{#2}%but it's not worth the effort and looks
   \xdef\MPlly{#3}%ugly as well
   \xdef\MPurx{#4}%
   \xdef\MPury{#5}%
   \forcecolorhack\getobject{MP}{#1}} % else no proper color intent

the issue is as follows:

- i use attributes for such things
- and, in the backend i only look at glyph and rule nodes
- however, the reused graphic is an object
- so, i have a \forcecolorhack
- this tells the backend to treat the following node as well

there are a few more places where this is needed and in due time it will 
be sorted out


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] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

overprinting is broken under very special conditions. You need to add 
framed content with a defined mp overlay as background and 
*deactivated frame* to a layer (last of the four pairs in the 
example). The text of the last pair is written in the same 
\GSoverprint group (in this case the \GSknockout is even missing). 
Very obscure.



\def\reuseMPbox#1#2#3#4#5% space delimiting would save some tokens
  {\xdef\MPllx{#2}%but it's not worth the effort and looks
   \xdef\MPlly{#3}%ugly as well
   \xdef\MPurx{#4}%
   \xdef\MPury{#5}%
   \forcecolorhack\getobject{MP}{#1}} % else no proper color intent

the issue is as follows:

- i use attributes for such things
- and, in the backend i only look at glyph and rule nodes
- however, the reused graphic is an object
- so, i have a \forcecolorhack
- this tells the backend to treat the following node as well

Thank you Hans (also for the nice explanation)! The minimal example 
works here, also the first test graphic. Nevertheless there is still a 
bug in the definition of \forcecolorhack. The error message of my second 
test graphic is the same as in


http://archive.contextgarden.net/message/20090901.094156.1dc47c81.en.html

So you should be able to produce the error with that example. The last 
time I simply used the old (commented) definition and everything worked 
again. I even looked at the definition of leaders that time (last used 
in LaTeX around eight years ago) and I think \zeropoint is no valid glue 
value here.


there are a few more places where this is needed and in due time it 
will be sorted out


I don't know if I should laugh or cry here. It took me nearly two days 
to make that minimal example. I'll interpret your last sentence as black 
humour... :)


Best wishes,  Peter


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
___ 





___
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] overprint bug (mkiv)

2009-09-16 Thread Hans Hagen

Peter Rolf wrote:


test graphic is the same as in

http://archive.contextgarden.net/message/20090901.094156.1dc47c81.en.html


no such message here

So you should be able to produce the error with that example. The last 
time I simply used the old (commented) definition and everything worked 
again. I even looked at the definition of leaders that time (last used 
in LaTeX around eight years ago) and I think \zeropoint is no valid glue 
value here.


is more a hmode/vmode issue

there are a few more places where this is needed and in due time it 
will be sorted out


I don't know if I should laugh or cry here. It took me nearly two days 
to make that minimal example. I'll interpret your last sentence as black 
humour... :)


well, imagine the lake of tears i have in my garden then due to all 
those past bugs and such


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
___


[NTG-context] new beta

2009-09-16 Thread Hans Hagen

Hi,

I uploaded a new mkiv beta. Apart from a few fixes, the main new thing 
is that the new vertical spacing model is now used. (I will cleanup 
everything related to spacing and grid snappin glater). This new 
mechanism was discussed at the context meeting. I have been testing it 
for quite a while and it seems to work out ok,


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] \currentpage always 1

2009-09-16 Thread Hans Hagen

Peter Münster wrote:

Hello,

\currentpage is always 1 here:

\starttext
currentpage: \currentpage, realpageno: \the\realpageno
\page
currentpage: \currentpage, realpageno: \the\realpageno
\stoptext


ok, will be fixed

-
  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] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:


test graphic is the same as in

http://archive.contextgarden.net/message/20090901.094156.1dc47c81.en.html 



no such message here


i'll try to make a minimal example tomorrow. my current failing example 
is a document with six graphics (windows) on five pages.




So you should be able to produce the error with that example. The 
last time I simply used the old (commented) definition and everything 
worked again. I even looked at the definition of leaders that time 
(last used in LaTeX around eight years ago) and I think \zeropoint is 
no valid glue value here.


is more a hmode/vmode issue

seems so, as the old version gives

! You can't use `\prevdepth' in horizontal mode.
\nointerlineskip -\prevdepth
 -\thousandpoint
argument ..@arrowbuttonsrc \nointerlineskip



there are a few more places where this is needed and in due time it 
will be sorted out


I don't know if I should laugh or cry here. It took me nearly two 
days to make that minimal example. I'll interpret your last sentence 
as black humour... :)


well, imagine the lake of tears i have in my garden then due to all 
those past bugs and such



:))   indeed, you must have a lot of black humour for such a job
but it is also said that nobody in the world can handle (salt) water 
better than the dutch. so i don't worry too much. ;)



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
___ 






___
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] overprint bug (mkiv)

2009-09-16 Thread luigi scarso
 but it is also said that nobody in the world can handle (salt) water better
 than the dutch
ahem,  and Venetian ?

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