Re: [NTG-context] Colored text in \type?

2011-09-01 Thread Alasdair McAndrew
Thanks very much - that works perfectly.  I didn't know about \definetype.

Thanks again,
Alasdair

On Fri, Sep 2, 2011 at 3:11 PM, Jaroslav Hajtmar  wrote:

> Hello Alasdair.
>
> Try use \definetype :
>
> \definetype[rtype][color=red,**style=type]
> \definetype[btype][color=blue,**style=type]
>
>
>
> \starttext
>
> \type{%t^y_8*&}
>
> \rtype{%t^y_8*&}
>
> \btype{%t^y_8*&}
>
> \stoptext
>
> Jaroslav Hajtmar
>
>
> Dne 2.9.2011 6:49, Alasdair McAndrew napsal(a):
>
>> I'm writing up some computer notes for my students, and I have examples of
>> variables and other commands which involve characters like % and underscore.
>>  These are typeset with
>>
>> \type{%t^y_8*&}
>>
>> for example.  What I would like to do is to color these as well.  However
>>
>> \color[blue]{\type{%t^y_8*&}}
>>
>> doesn't seem to work; nor does
>>
>> {\blue \type{%t^y_8*&}}
>>
>> So - how do I obtain colored text within \type?
>>
>> Thanks,
>> Alasdair
>>
>> --
>> Blog: http://amca01.wordpress.com
>> Web: http://bit.ly/Alasdair
>> Facebook: 
>> http://www.facebook.com/**alasdair.mcandrew
>>
>>
>> __**__**
>> ___
>> 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
> __**__**
> ___
>



-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Peter Rolf
Am 01.09.2011 20:42, schrieb Honza Hejzl:
> Thanks,
> 
> Just a notice – the style \startoverprint… should be probably in future
> versions too, or how to overprint two elements and how to knockout the
> next one? Is it possible? (In one file could be a lot of such cases needed.)
> 
You never know and as Wolfgang stated, it's best (and wise) to use the
latest official commands.

\startcolorintent[overprint] Overprinted text \stopcolorintent
\startcolorintent[knockout] Knockout text \stopcolorintent

The commands can also be nested.

\startcolorintent[overprint] OVERPRINT ONE TWO
\startcolorintent[knockout] KNOCKOUT THREE \stopcolorintent
OVERPRINT FOUR \stopcolorintent

> In case of \setupcolors[intent=overprint] is the problem in the fact
> that preflight says that all text is "gray object overprinted" and that
> is against the standards. I have simply one test page with one article
> of black text. Everything goes fine except the fact of non-embedded
> profile and the fact that text is considered like a gray scale object.
> 
The (stupid) preflight has problems with overprinting in combination
with grayscale. You could try to use CMYK (black) then. Something like

\definecolor[cmykblack][k=1]
\setupcolors[textcolor=cmykblack]


> In case you could try to generate one pdf with such settings I could
> test them in Acrobat.
> 
> Honza Hejzl
> 
> 
> 
> 
> ___
> 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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Heureka, don't know why but now, with your example, Acrobat sees just a one
simple error – it sees like a gray object the pagenumber!

Honza Hejzl
___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Thanks,

Just a notice – the style \startoverprint… should be probably in future
versions too, or how to overprint two elements and how to knockout the next
one? Is it possible? (In one file could be a lot of such cases needed.)

In case of \setupcolors[intent=overprint] is the problem in the fact that
preflight says that all text is "gray object overprinted" and that is
against the standards. I have simply one test page with one article of black
text. Everything goes fine except the fact of non-embedded profile and the
fact that text is considered like a gray scale object.

In case you could try to generate one pdf with such settings I could test
them in Acrobat.

Honza Hejzl
___
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] Multipages registers

2011-09-01 Thread Wolfgang Schuster

Am 01.09.2011 um 18:54 schrieb Pierre-François Bonnefoi:

> Hello,
> 
> I would like to be able to spread a registers on several slides from my 
> lecture notes, with the possibility to include some text at the beginning of 
> each of these slides :
> 
> first slide : title
>   index entries
> next slides : title
>   next index entries
> 
> I've not found the way to do this.

Can you be more concrete, it’s not clear what do you want.

When you need a index entry which spans multiple pages you can write it with 
“\startregister[index][]{} … 
\stopregister[index][]”.

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] Multipages registers

2011-09-01 Thread Pierre-François Bonnefoi
Hello,

I would like to be able to spread a registers on several slides from my lecture 
notes, with the possibility to include some text at the beginning of each of 
these slides :

first slide :   title
index entries
next slides :   title
next index entries

I've not found the way to do this.

Kind regards,
Pierre-François Bonnefoi.
-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
83, rue d'Isle  |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE  | The Avengers.



smime.p7s
Description: S/MIME cryptographic 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Embedding of ICC profiles and preflight

2011-09-01 Thread Peter Rolf
Am 01.09.2011 17:24, schrieb Wolfgang Schuster:
> 
> Am 01.09.2011 um 17:08 schrieb Peter Rolf:
> 
>> Use '\startoverprint ... \stopoverprint', […]
> 
> You shouldn’t recommend deprecated commands, it’s only in the core for 
> backwards
> compatibility and was replaced by “\startcolorintent[overprint] ... 
> \stopcolorintent”.
>
I see. Thanks for the info. I must admit that I still use the old ones
here (will change now)...


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

___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Wolfgang Schuster

Am 01.09.2011 um 17:08 schrieb Peter Rolf:

> Use '\startoverprint ... \stopoverprint', […]

You shouldn’t recommend deprecated commands, it’s only in the core for backwards
compatibility and was replaced by “\startcolorintent[overprint] ... 
\stopcolorintent”.

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] Embedding of ICC profiles and preflight

2011-09-01 Thread Peter Rolf
Am 01.09.2011 15:30, schrieb Honza Hejzl:
> Hello,
> I am trying to embed a profile but it doesn't work. I am using:
> 
> \setupbackend
> [format=PDF/X-1a:2001,
> intent=Coated FOGRA39 (ISO 12647-2:2004),
> file=CoatedFOGRA39.icc, 
> option=always
> ]
> 
> Acrobat Preflight says it has not profile embedded. Am I doing something
> wrong?
>
Mh, maybe add a comma after 'option=always'? You can also add

\enabletrackers[backend.pdfx]

in front of the \setupbackend command to get additional info in the log.

Is there a reason to force embedding of the profile? If I remember right
PDF/X-1a can do without, if the profile is common.

\setupbackend
[format=PDF/X-1a:2001,
 intent=Coated FOGRA39 (ISO 12647-2:2004),
 option=always, % for a much bigger document :-)
]

should be enough ('file' is derived from the entry in
colorprofiles.xml). A profile with this name should be in the specific
path. See

http://wiki.contextgarden.net/PDFX#ICC%20profiles

for the details. The mentioned $OSCOLORDIR variable is no longer valid.

> The next thing is I am using text smaller than 12pt and nothing helps me
> to prevent ConTeXt to:
> 
> 1) overprint the GRAY text (\setupcolors allows just to set cmyk-gray/rgb);
> 2) knockout text smaller than 12pt, what is not allowed in a good pdf file.
> 
Just guessing (your description rings a bell):

Use '\startoverprint ... \stopoverprint', not the global
'\setupcolors[overprint=yes]'. The latter is only useful, if your
document is pure black text only (everything in it is overprinted)!


Best wishes,  Peter


___
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] Embedding of ICC profiles and preflight

2011-09-01 Thread Honza Hejzl
Hello,
I am trying to embed a profile but it doesn't work. I am using:

\setupbackend
[format=PDF/X-1a:2001,
intent=Coated FOGRA39 (ISO 12647-2:2004),
file=CoatedFOGRA39.icc,
option=always
]

Acrobat Preflight says it has not profile embedded. Am I doing something
wrong?

The next thing is I am using text smaller than 12pt and nothing helps me to
prevent ConTeXt to:

1) overprint the GRAY text (\setupcolors allows just to set cmyk-gray/rgb);
2) knockout text smaller than 12pt, what is not allowed in a good pdf file.

Any solutions highly appreciated, Jan Hejzl
___
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
___