Re: [NTG-context] margin option in itemize

2009-12-11 Thread luigi scarso
On Tue, Dec 8, 2009 at 4:11 PM, Curiouslearn  wrote:
> Can someone please explain why the margin command does not work in
> this example? What can I do to obtain the margin.
>
> Thanks.
>
> \setuppapersize[letter][letter]
> \starttext
>
> \input tufte
>
> \startitemize
>        \item This is the first item of outer list.
>                \startitemize[a][stopper=)]
>                        \item Context is great. The more I use it the more I 
> love it.
>                        \item Hope it continues to develop further.
>                \stopitemize
>        \item This is the second item of outer list. Margin command does not
> work below.
>                \startitemize[a][stopper=),margin=2in]
>                        \item Context is great. The more I use it the more I 
> love it.
>                        \item Hope it continues to develop further.
>                \stopitemize
> \stopitemize
>
> \input tufte
>
> \stoptext
> ___
> 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
> ___
>

As wolfgang already wrote

\setuppapersize[letter][letter]
\setupitemize[2][stopper={:},left={\kern2.10em},width=\dimexpr 2.10em+1em\relax]
\starttext
\input tufte
\startitemize
   \item This is the first item of outer list.
   \startitemize[a]
   \item Context is great. The more I use it the more it
   \item Hope it continues to develop further.
   \stopitemize
   \item This is the second item of outer list. Margin command does not
work below.
   \startitemize[a]
   \item Context is great. The more I use it the
more I love it.
   \item Hope it continues to develop further.
   \stopitemize
\stopitemize
\input tufte
\stoptext


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


Re: [NTG-context] margin option in itemize

2009-12-11 Thread Wolfgang Schuster

Am 12.12.2009 um 02:22 schrieb Curiouslearn:

> I suppose you can think of 'margin=dimension' option as increasing the
> margin by the specified dimension for the list. It works without any
> problems for a list that is not nested within another list. However,
> with nesting, as in the example I emailed, it does not work.
> 
> I tried the 'width' command but that does not do what I want. It
> inserts the space between the item symbol and the item text. I want
> the space before item symbol.

You can change the margin only on the first level.

\starttext
\startitemize
\item item 1
  \startitemize[a][stopper=)]
  \item item 1a
  \item item 1b
  \stopitemize
\item item 2
  \startitemize[a][stopper=),width=3cm,left={\hspace[normal]}]
  \item item 2a
  \item item 2b
  \stopitemize
\stopitemize
\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
___


Re: [NTG-context] Division symbol \div does not work

2009-12-11 Thread luigi scarso
>On Sat, Dec 12, 2009 at 5:16 AM, Curiouslearn  wrote:
>
>gives output
>
>a div b

true


What about

\setuppapersize[letter][letter]
\starttext
$  a ÷ b $
\stoptext


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


Re: [NTG-context] Division symbol \div does not work

2009-12-11 Thread Curiouslearn
Thanks Jason. You are right, it works well with MKII. The problem
seems to be with MKIV.

On Fri, Dec 11, 2009 at 10:33 PM, Jason Earl  wrote:
>
> Curiouslearn  writes:
>
>> How to obtain the division symbol? Command \div does not work.
>>
>> \setuppapersize[letter][letter]
>>
>> \starttext
>>
>> $  a \div b $
>>
>> \stoptext
>>
>> gives output
>>
>> a div b
>
> I am using an older version of Context, but running texexec on your
> example gets me the correct output.
>
> a ÷ b
>
> Jason
> ___
> 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] Division symbol \div does not work

2009-12-11 Thread Jason Earl

Curiouslearn  writes:

> How to obtain the division symbol? Command \div does not work.
>
> \setuppapersize[letter][letter]
>
> \starttext
>
> $  a \div b $
>
> \stoptext
>
> gives output
>
> a div b
 
I am using an older version of Context, but running texexec on your
example gets me the correct output.

a ÷ b

Jason
___
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] Division symbol \div does not work

2009-12-11 Thread Curiouslearn
How to obtain the division symbol? Command \div does not work.

\setuppapersize[letter][letter]

\starttext

$  a \div b $

\stoptext

gives output

a div b
___
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] margin option in itemize

2009-12-11 Thread Curiouslearn
I suppose you can think of 'margin=dimension' option as increasing the
margin by the specified dimension for the list. It works without any
problems for a list that is not nested within another list. However,
with nesting, as in the example I emailed, it does not work.

I tried the 'width' command but that does not do what I want. It
inserts the space between the item symbol and the item text. I want
the space before item symbol.

Thanks.

On Fri, Dec 11, 2009 at 8:32 AM, Taco Hoekwater  wrote:
>
>
> Curiouslearn wrote:
>> Can someone please say whether it is possible to do what I am trying
>> to do below?
>
> According to the docs 'margin' should do something, but I am not sure
> what and it seems to have no effect over here. You can try if 'width'
> does what you want.
>
> Best wishes,
> Taco
>
>> Thanks.
>>
>>
>> On Tue, Dec 8, 2009 at 10:11 AM, Curiouslearn  wrote:
>>> Can someone please explain why the margin command does not work in
>>> this example? What can I do to obtain the margin.
>>>
>>> Thanks.
>>>
>>> \setuppapersize[letter][letter]
>>> \starttext
>>>
>>> \input tufte
>>>
>>> \startitemize
>>>        \item This is the first item of outer list.
>>>                \startitemize[a][stopper=)]
>>>                        \item Context is great. The more I use it the more I 
>>> love it.
>>>                        \item Hope it continues to develop further.
>>>                \stopitemize
>>>        \item This is the second item of outer list. Margin command does not
>>> work below.
>>>                \startitemize[a][stopper=),margin=2in]
>>>                        \item Context is great. The more I use it the more I 
>>> love it.
>>>                        \item Hope it continues to develop further.
>>>                \stopitemize
>>> \stopitemize
>>>
>>> \input tufte
>>>
>>> \stoptext
>>>
>> ___
>> 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
> ___
>
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Peter Rolf

Oliver Heins schrieb:

Peter Rolf  writes:

  

Oliver Heins schrieb:


Yes, I noticed that, too.  But to me it looks like it is first knocked
out in the pdf, and then the overprint flag is set.

  
  

Good point. In that case the text must be set twice, as knockout and
overprint can't coexist. I have looked into the uncompressed mkii PDF
(\nopdfcompression) and I can not see any obvious flaw. The parts are
clearly separeted by '/GSknockout gs' and '/GSoverprint gs', the black
text is not set twice.

Just an idea: the colorspace of the picture is RGB, the text is set in
CMYK. Maybe the mixed color spaces mess up things here.



But shouldn't the same effect be seen with other colors than black then,
too?  And it only happens with black, and I think it happens even when
you do it within a cmyk-only document:

  

I get the same 'kind of knockedout' text as in the other example...
but the black text is set as /DeviceGray and not /DeviceCMYK 
(k-component). You can make this visible by using

'Vorschau: Separiert' with the option 'Einblenden: Nicht-DeviceCMYK'.

I think this is just a limitation of the previewer. You can define your 
own cmyk black with \definecolor[myblack][k=1]. I bet that the 
knockedout effect will vanish with cmyk black (untested).



Can you test the following?  My Acrobat is on a machine without net, and
my usb stick broke within the experiments.  

  

prepress mess + bad luck => *have a break and enjoy your weekend* :)


Best regards,
 olli

\setupcolors[state=start, cmyk=yes, rgb=no]

\starttext

{\bfb\setstrut
\startoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=yellow,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{overprint\\\property[knockout]{knockout}}%
\stopoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=yellow,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{knockout\\\property[overprint]{overprint}}}%

{\bfb\setstrut
\startoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=black,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{overprint\\\property[knockout]{knockout}}%
\stopoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=black,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{knockout\\\property[overprint]{overprint}}}%

\stoptext


  


___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread luigi scarso
On Fri, Dec 11, 2009 at 6:57 PM, Oliver Heins  wrote:
> But shouldn't the same effect be seen with other colors than black then,
> too?  And it only happens with black, and I think it happens even when
> you do it within a cmyk-only document:
>
> Can you test the following?  My Acrobat is on a machine without net, and
> my usb stick broke within the experiments.
>
> Best regards,
>  olli
>
> \setupcolors[state=start, cmyk=yes, rgb=no]
>
> \starttext
>
> {\bfb\setstrut
> \startoverprint
> \framed
> [background=color,backgroundcolor=magenta,
> foregroundcolor=yellow,align={lohi,middle},
> frame=off,width=3.5cm,height=3cm]
> {overprint\\\property[knockout]{knockout}}%
> \stopoverprint
> \framed
> [background=color,backgroundcolor=magenta,
> foregroundcolor=yellow,align={lohi,middle},
> frame=off,width=3.5cm,height=3cm]
> {knockout\\\property[overprint]{overprint}}}%
>
> {\bfb\setstrut
> \startoverprint
> \framed
> [background=color,backgroundcolor=magenta,
> foregroundcolor=black,align={lohi,middle},
> frame=off,width=3.5cm,height=3cm]
> {overprint\\\property[knockout]{knockout}}%
> \stopoverprint
> \framed
> [background=color,backgroundcolor=magenta,
> foregroundcolor=black,align={lohi,middle},
> frame=off,width=3.5cm,height=3cm]
> {knockout\\\property[overprint]{overprint}}}%
>
> \stoptext
>

I have found this
http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm#SPOT

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


Re: [NTG-context] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Oliver Heins
Peter Rolf  writes:

> Oliver Heins schrieb:
>> Yes, I noticed that, too.  But to me it looks like it is first knocked
>> out in the pdf, and then the overprint flag is set.
>>
>>   
> Good point. In that case the text must be set twice, as knockout and
> overprint can't coexist. I have looked into the uncompressed mkii PDF
> (\nopdfcompression) and I can not see any obvious flaw. The parts are
> clearly separeted by '/GSknockout gs' and '/GSoverprint gs', the black
> text is not set twice.
>
> Just an idea: the colorspace of the picture is RGB, the text is set in
> CMYK. Maybe the mixed color spaces mess up things here.

But shouldn't the same effect be seen with other colors than black then,
too?  And it only happens with black, and I think it happens even when
you do it within a cmyk-only document:

Can you test the following?  My Acrobat is on a machine without net, and
my usb stick broke within the experiments.  

Best regards,
 olli

\setupcolors[state=start, cmyk=yes, rgb=no]

\starttext

{\bfb\setstrut
\startoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=yellow,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{overprint\\\property[knockout]{knockout}}%
\stopoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=yellow,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{knockout\\\property[overprint]{overprint}}}%

{\bfb\setstrut
\startoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=black,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{overprint\\\property[knockout]{knockout}}%
\stopoverprint
\framed
[background=color,backgroundcolor=magenta,
foregroundcolor=black,align={lohi,middle},
frame=off,width=3.5cm,height=3cm]
{knockout\\\property[overprint]{overprint}}}%

\stoptext


-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Peter Rolf

Oliver Heins schrieb:

Hi Peter,

Peter Rolf  writes:

  

Oliver Heins schrieb:


Hello,

with color black overprinting is not working.  You can easily spot this
when you use the »Ausgabevorschau« (sorry, my acrobat is in german
locale, must be something with »preview« in english; located in the
»tools« menu) in acrobat and remove magenta and black from the preview.
Whilst under the region with the magenta colored text the picture gets
shown, in the region with the black colored text the text is cut out of
the picture, leaving white.

  
  

I think the visible 'knockedout' text on the picture is just another
acrobat bug. I manually checked the text and the OVP attributes are
correctly set. If you use the coloring mechanism (Ausgabenvorschau -> 
Farbwarnungen -> [x] Überdruck anzeigen), you will see that everything

looks ok.



Yes, I noticed that, too.  But to me it looks like it is first knocked
out in the pdf, and then the overprint flag is set.

  
Good point. In that case the text must be set twice, as knockout and 
overprint can't coexist. I have looked into the uncompressed mkii PDF 
(\nopdfcompression) and I can not see any obvious flaw. The parts are 
clearly separeted by '/GSknockout gs' and '/GSoverprint gs', the black 
text is not set twice.


Just an idea: the colorspace of the picture is RGB, the text is set in 
CMYK. Maybe the mixed color spaces mess up things here.




I made a document with scribus, which looks alright in acrobats preview:
http://www.sopos.org/olli/overprinting-scribus.pdf

  
Same here. The difference is, that the picture here is also set in CMYK. 
So this points to the 'colorspace mess' theory too ;)




So I doubt that this is a bug in acrobat, but in context or even in
pdftex/luatex.

  

you have to manually copy the hacker.jpg to your working directory
(under linux e.g. with cp $(kpsewhich hacker.jpg)
/path/to/your/working/directory) and change the path to make the
minimal example work under mark iv.
  

I noticed this too (no picture with mkiv). BOF = Bug Or Feature :)



Feature, as Taco kindly pointed out :-)

Regards,
 olli

  


___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Hans Hagen

luigi scarso wrote:

On Fri, Dec 11, 2009 at 5:37 PM, Oliver Heins  wrote:

Hi Luigi,

luigi scarso  writes:


hm I believed  was

\color[red]{..}

and
\startcolor[red]
...
\stopcolor

You're right, I mixed things up here.  But nontheless, my example was
(unintendedly) syntactically correct, because either \color[black]{\bf
...} and \color[black]\startoverprint ... \stopoverprint define a
block. :-)

ok, just to be sure : can you rewrite in a correct way ?
Can be a problem with mkii .


overprint and similar features will not change in mkii

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


Re: [NTG-context] overprinting backgrounds

2009-12-11 Thread Martin Schröder
2009/12/11 Oliver Heins :
> I managed to get a copy of acrobat.  Now I understand the benefits and
> risks of overprinting.  Thank you for pointing out!

It's typical for printing houses to set 100% black to overprint in the
preprint workflow (can also be done with Acrobat).

Best
   Martin
___
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] overprinting backgrounds

2009-12-11 Thread Oliver Heins
Peter Rolf  writes:

> Oliver Heins schrieb:
>> I have another question.
>>
>> The print shop wants the background image to be overprinted.  Is it
>> sufficiant to set »overprint=yes« once in \setupcolors or does one need
>> to explicitely tell the region with \startoverprint ... \stopoverprint?
>>
>>   
> simply use \startoverprint ... \stopoverprint for the text
> regions. you may need to add \startknockout ... \stopknockout for
> picture elements in that region. the "overprint=yes" option is for
> document wide setting, so this is not what you want.
> anyhow, if you own a copy of acrobat, you can visualize the
> overprinted elements in the output preview (color warnings).

I managed to get a copy of acrobat.  Now I understand the benefits and
risks of overprinting.  Thank you for pointing out!

Best regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Other strange effects with overprinting (Mark II only)

2009-12-11 Thread Oliver Heins
The following code produces strange result with Mark II (Mark IV is
allright):

The Text on the first page after the \startoverprint is not visible in
Acrobat (Reader).  Poppler is okay.

Best regards,
 olli

\setupcolors[state=start] % Comment this line out to make the example
  % work in Mark II

\definelayer[mybg]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
repeat=yes]
\setlayer   [mybg]
[hoffset=5cm, voffset=7cm]
{\externalfigure[sample/hacker.jpg][max]}
%   {\externalfigure[hacker.jpg][max]}
\setupbackgrounds[page][background=mybg]

\starttext

Text without overprinting

\startoverprint
\input tufte
\stopoverprint

Text without overprinting

\page

Text without overprinting

\startoverprint
\input tufte
\stopoverprint

Text without overprinting

\stoptext

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Oliver Heins
luigi scarso  writes:

> On Fri, Dec 11, 2009 at 5:37 PM, Oliver Heins  wrote:
>> Hi Luigi,
>>
>> luigi scarso  writes:
>>
>>> hm I believed  was
>>>
>>> \color[red]{..}
>>>
>>> and
>>> \startcolor[red]
>>> ...
>>> \stopcolor
>>
>> You're right, I mixed things up here.  But nontheless, my example was
>> (unintendedly) syntactically correct, because either \color[black]{\bf
>> ...} and \color[black]\startoverprint ... \stopoverprint define a
>> block. :-)
> ok, just to be sure : can you rewrite in a correct way ?
> Can be a problem with mkii .

Okay.  But I don't see any difference.

Regards,
 olli

\setupcolors[state=start,cmyk=yes,rgb=no]

\definelayer[mybg]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
repeat=yes]
\setlayer   [mybg]
[hoffset=5cm, voffset=7cm]
{\externalfigure[sample/hacker.jpg][max]}
%   {\externalfigure[hacker.jpg][max]}
\setupbackgrounds[page][background=mybg]

\starttext

{\bf With foregroundcolor = magenta.}

\startcolor[magenta]
\startoverprint
\input tufte
\stopoverprint
\stopcolor

{\bf With foregroundcolor = black. \color[magenta]{(Some magenta
  without overprint)}}

\startcolor[black]
\startoverprint
\input tufte
\stopoverprint
\stopcolor

\stoptext


-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread luigi scarso
On Fri, Dec 11, 2009 at 5:37 PM, Oliver Heins  wrote:
> Hi Luigi,
>
> luigi scarso  writes:
>
>> hm I believed  was
>>
>> \color[red]{..}
>>
>> and
>> \startcolor[red]
>> ...
>> \stopcolor
>
> You're right, I mixed things up here.  But nontheless, my example was
> (unintendedly) syntactically correct, because either \color[black]{\bf
> ...} and \color[black]\startoverprint ... \stopoverprint define a
> block. :-)
ok, just to be sure : can you rewrite in a correct way ?
Can be a problem with mkii .

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


Re: [NTG-context] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Oliver Heins
Hi Luigi,

luigi scarso  writes:

> hm I believed  was
>
> \color[red]{..}
>
> and
> \startcolor[red]
> ...
> \stopcolor

You're right, I mixed things up here.  But nontheless, my example was
(unintendedly) syntactically correct, because either \color[black]{\bf
...} and \color[black]\startoverprint ... \stopoverprint define a
block. :-)

> see
> http://wiki.contextgarden.net/Colors

Anyway, thanks for pointing it out, because I really did not know of the
\startcolor-syntax (I'm new to context).

Regards,
 olli


-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] overprinting and underbar (mkiv)

2009-12-11 Thread Peter Rolf

Hi,

if \underbar is used inside of an overprinted test, the underbar line 
does not share the OVP attribute. Mkii works as expected, meaning the 
stroke is part of the text and should be handled equally. A minimal 
example is attached.


MTXrun | current version: 2009.11.26 16:28
This is LuaTeX, Version beta-0.46.0-2009112616

Best wishes,  Peter
\setupcolors[state=start]
\setuppagenumber[state=stop]

\starttext

\setupunderbar[bottomoffset=2pt,rulethickness=2pt]

\startoverprint
\switchtobodyfont[60pt]\underbar{O}K
\stopoverprint

\stoptext
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Oliver Heins
Hi Peter,

Peter Rolf  writes:

> Oliver Heins schrieb:
>> Hello,
>>
>> with color black overprinting is not working.  You can easily spot this
>> when you use the »Ausgabevorschau« (sorry, my acrobat is in german
>> locale, must be something with »preview« in english; located in the
>> »tools« menu) in acrobat and remove magenta and black from the preview.
>> Whilst under the region with the magenta colored text the picture gets
>> shown, in the region with the black colored text the text is cut out of
>> the picture, leaving white.
>>
>>   
> I think the visible 'knockedout' text on the picture is just another
> acrobat bug. I manually checked the text and the OVP attributes are
> correctly set. If you use the coloring mechanism (Ausgabenvorschau -> 
> Farbwarnungen -> [x] Überdruck anzeigen), you will see that everything
> looks ok.

Yes, I noticed that, too.  But to me it looks like it is first knocked
out in the pdf, and then the overprint flag is set.

I made a document with scribus, which looks alright in acrobats preview:
http://www.sopos.org/olli/overprinting-scribus.pdf

So I doubt that this is a bug in acrobat, but in context or even in
pdftex/luatex.

>> you have to manually copy the hacker.jpg to your working directory
>> (under linux e.g. with cp $(kpsewhich hacker.jpg)
>> /path/to/your/working/directory) and change the path to make the
>> minimal example work under mark iv.
>
> I noticed this too (no picture with mkiv). BOF = Bug Or Feature :)

Feature, as Taco kindly pointed out :-)

Regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Peter Rolf

Taco Hoekwater schrieb:

Peter Rolf wrote:
   you have to manually copy the
  

hacker.jpg to your working directory (under linux e.g. with cp
$(kpsewhich hacker.jpg) /path/to/your/working/directory) and change the
path to make the minimal example work under mark iv.
  
  

I noticed this too (no picture with mkiv). BOF = Bug Or Feature :)



  

Multiple choice:

[ ] Bug
[x] Feature
[x] The problem sits right before the monitor...

Thanks Taco!


\setupexternalfigures[location={local,global,default}]

The default value of \setupexternalfigures is {local,global}
and that does not actually search in the global texmf trees.

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] Bug with overprinting in Mark II/IV?

2009-12-11 Thread luigi scarso
On Fri, Dec 11, 2009 at 1:53 PM, Oliver Heins  wrote:
> Hello,
>
> with color black overprinting is not working.  You can easily spot this
> when you use the »Ausgabevorschau« (sorry, my acrobat is in german
> locale, must be something with »preview« in english; located in the
> »tools« menu) in acrobat and remove magenta and black from the preview.
> Whilst under the region with the magenta colored text the picture gets
> shown, in the region with the black colored text the text is cut out of
> the picture, leaving white.
>
> I think this is a bug, as overprinting makes most sense with black.  It
> happens both in Mark II and IV -- you have to manually copy the
> hacker.jpg to your working directory (under linux e.g. with cp
> $(kpsewhich hacker.jpg) /path/to/your/working/directory) and change the
> path to make the minimal example work under mark iv.
>
> Best regards,
>  olli
>
> \setupcolors[state=start,cmyk=yes,rgb=no]
>
> \definelayer    [mybg]
>                [x=0mm, y=0mm,
>                width=\paperwidth, height=\paperheight,
>                repeat=yes]
> \setlayer       [mybg]
>                [hoffset=5cm, voffset=7cm]
>                {\externalfigure[sample/hacker.jpg][max]} % mark ii
> %               {\externalfigure[hacker.jpg][max]} % mark iv
> \setupbackgrounds[page][background=mybg]
>
> \starttext
>
> {\bf With foregroundcolor = magenta.}
> \color[magenta]
>
> \startoverprint
> \input tufte
> \stopoverprint
>
> \color[black]
> {\bf With foregroundcolor = black. \color[magenta](Some magenta
>  without overprint)}
> \color[black]
>
> \startoverprint
> \input tufte
> \stopoverprint
>
> \stoptext
>
> --
hm I believed  was

\color[red]{..}

and
\startcolor[red]
...
\stopcolor

see
http://wiki.contextgarden.net/Colors

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


Re: [NTG-context] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Taco Hoekwater


Peter Rolf wrote:
   you have to manually copy the
>> hacker.jpg to your working directory (under linux e.g. with cp
>> $(kpsewhich hacker.jpg) /path/to/your/working/directory) and change the
>> path to make the minimal example work under mark iv.
>>   
> I noticed this too (no picture with mkiv). BOF = Bug Or Feature :)

\setupexternalfigures[location={local,global,default}]

The default value of \setupexternalfigures is {local,global}
and that does not actually search in the global texmf trees.

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
___


Re: [NTG-context] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Peter Rolf

Oliver Heins schrieb:

Hello,

with color black overprinting is not working.  You can easily spot this
when you use the »Ausgabevorschau« (sorry, my acrobat is in german
locale, must be something with »preview« in english; located in the
»tools« menu) in acrobat and remove magenta and black from the preview.
Whilst under the region with the magenta colored text the picture gets
shown, in the region with the black colored text the text is cut out of
the picture, leaving white.

  
I think the visible 'knockedout' text on the picture is just another 
acrobat bug. I manually checked the text and the OVP attributes are 
correctly set. If you use the coloring mechanism (Ausgabenvorschau -> 
Farbwarnungen -> [x] Überdruck anzeigen), you will see that everything 
looks ok.



I think this is a bug, as overprinting makes most sense with black.  It
happens both in Mark II and IV -- you have to manually copy the
hacker.jpg to your working directory (under linux e.g. with cp
$(kpsewhich hacker.jpg) /path/to/your/working/directory) and change the
path to make the minimal example work under mark iv.

  

I noticed this too (no picture with mkiv). BOF = Bug Or Feature :)


Best regards,
 olli

\setupcolors[state=start,cmyk=yes,rgb=no]

\definelayer[mybg]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
repeat=yes]
\setlayer   [mybg]
[hoffset=5cm, voffset=7cm]
{\externalfigure[sample/hacker.jpg][max]} % mark ii
%   {\externalfigure[hacker.jpg][max]} % mark iv
\setupbackgrounds[page][background=mybg]

\starttext

{\bf With foregroundcolor = magenta.}
\color[magenta]

\startoverprint
\input tufte
\stopoverprint

\color[black]
{\bf With foregroundcolor = black. \color[magenta](Some magenta
  without overprint)}
\color[black]

\startoverprint
\input tufte
\stopoverprint

\stoptext

  


___
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] margin option in itemize

2009-12-11 Thread Taco Hoekwater


Curiouslearn wrote:
> Can someone please say whether it is possible to do what I am trying
> to do below?

According to the docs 'margin' should do something, but I am not sure
what and it seems to have no effect over here. You can try if 'width'
does what you want.

Best wishes,
Taco

> Thanks.
> 
> 
> On Tue, Dec 8, 2009 at 10:11 AM, Curiouslearn  wrote:
>> Can someone please explain why the margin command does not work in
>> this example? What can I do to obtain the margin.
>>
>> Thanks.
>>
>> \setuppapersize[letter][letter]
>> \starttext
>>
>> \input tufte
>>
>> \startitemize
>>\item This is the first item of outer list.
>>\startitemize[a][stopper=)]
>>\item Context is great. The more I use it the more I 
>> love it.
>>\item Hope it continues to develop further.
>>\stopitemize
>>\item This is the second item of outer list. Margin command does not
>> work below.
>>\startitemize[a][stopper=),margin=2in]
>>\item Context is great. The more I use it the more I 
>> love it.
>>\item Hope it continues to develop further.
>>\stopitemize
>> \stopitemize
>>
>> \input tufte
>>
>> \stoptext
>>
> ___
> 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
___


[NTG-context] Bug with overprinting in Mark II/IV?

2009-12-11 Thread Oliver Heins
Hello,

with color black overprinting is not working.  You can easily spot this
when you use the »Ausgabevorschau« (sorry, my acrobat is in german
locale, must be something with »preview« in english; located in the
»tools« menu) in acrobat and remove magenta and black from the preview.
Whilst under the region with the magenta colored text the picture gets
shown, in the region with the black colored text the text is cut out of
the picture, leaving white.

I think this is a bug, as overprinting makes most sense with black.  It
happens both in Mark II and IV -- you have to manually copy the
hacker.jpg to your working directory (under linux e.g. with cp
$(kpsewhich hacker.jpg) /path/to/your/working/directory) and change the
path to make the minimal example work under mark iv.

Best regards,
 olli

\setupcolors[state=start,cmyk=yes,rgb=no]

\definelayer[mybg]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight,
repeat=yes]
\setlayer   [mybg]
[hoffset=5cm, voffset=7cm]
{\externalfigure[sample/hacker.jpg][max]} % mark ii
%   {\externalfigure[hacker.jpg][max]} % mark iv
\setupbackgrounds[page][background=mybg]

\starttext

{\bf With foregroundcolor = magenta.}
\color[magenta]

\startoverprint
\input tufte
\stopoverprint

\color[black]
{\bf With foregroundcolor = black. \color[magenta](Some magenta
  without overprint)}
\color[black]

\startoverprint
\input tufte
\stopoverprint

\stoptext

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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
___