* Re: ConTeXt T-shirts?
2009-03-12 17:18 ` Wolfgang Schuster
@ 2009-03-12 19:03 ` Xan
2009-03-12 19:13 ` Xan
2009-03-12 19:56 ` Aditya Mahajan
2 siblings, 0 replies; 37+ messages in thread
From: Xan @ 2009-03-12 19:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
En/na Wolfgang Schuster ha escrit:
>
> Am 12.03.2009 um 18:01 schrieb Xan:
>
>> Thanks, Wolfgang. Now it works, but whith tiny letters (see attachments)
>
> New version (the old worked only under MkIV).
>
> % logo.mp: creates a blue traffic sign-style context logo
> % Copyright 2008 Taco Hoekwater
> % You are free to use this code any way you can
>
> \setupcolors[state=start,textcolor=white]
>
> \startMPenvironment
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
> \stopMPenvironment
>
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
>
> \starttext
>
> \startMPpage[offset=0pt]
> color darkblue,textcolor;
> darkblue := (0.0625,0,.412); % 0f006b =
> textcolor := (1,1,1);
> def rect (expr xl,yl,r) =
> pickup pencircle scaled 1;
> draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)--
> (xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle
> withcolor textcolor;
> enddef;
>
> f:= 14;
> h:=8;
> v:=4;
>
> fill fullcircle scaled 408 shifted (112,0)
> withcolor darkblue;
> label (textext("C"), (0,v*f) ) withcolor textcolor ;
> label (textext("O"), (f*h,2*v*f) ) withcolor textcolor ;
> label (textext("N"), (2*f*h,v*f) ) withcolor textcolor ;
> label (textext("T"), (0,-v*f) ) withcolor textcolor ;
> label (textext("E"), (f*h,0) ) withcolor textcolor ;
> label (textext("X"), (f*h*2,-v*f)) withcolor textcolor ;
> label (textext("T"), (f*h,-2*v*f)) withcolor textcolor ;
> r := h*f;
>
> rect (0,v*f,r);
> rect (f*h,2*v*f,r);
> rect (2*f*h,v*f,r);
> rect (0,-v*f,r);
> rect (f*h,0,r);
> rect (f*h*2,-v*f,r);
> rect (f*h,-2*v*f,r);
> \stopMPpage
>
> \stoptext
>
> Wolfgang
Great!. It works now with MKII.
Thanks a lot, Wolfgang,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-12 17:18 ` Wolfgang Schuster
2009-03-12 19:03 ` Xan
@ 2009-03-12 19:13 ` Xan
2009-03-12 19:56 ` Aditya Mahajan
2 siblings, 0 replies; 37+ messages in thread
From: Xan @ 2009-03-12 19:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1984 bytes --]
En/na Wolfgang Schuster ha escrit:
>
> Am 12.03.2009 um 18:01 schrieb Xan:
>
>> Thanks, Wolfgang. Now it works, but whith tiny letters (see attachments)
>
> New version (the old worked only under MkIV).
>
> % logo.mp: creates a blue traffic sign-style context logo
> % Copyright 2008 Taco Hoekwater
> % You are free to use this code any way you can
>
> \setupcolors[state=start,textcolor=white]
>
> \startMPenvironment
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
> \stopMPenvironment
>
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
>
> \starttext
>
> \startMPpage[offset=0pt]
> color darkblue,textcolor;
> darkblue := (0.0625,0,.412); % 0f006b =
> textcolor := (1,1,1);
> def rect (expr xl,yl,r) =
> pickup pencircle scaled 1;
> draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)--
> (xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle
> withcolor textcolor;
> enddef;
>
> f:= 14;
> h:=8;
> v:=4;
>
> fill fullcircle scaled 408 shifted (112,0)
> withcolor darkblue;
> label (textext("C"), (0,v*f) ) withcolor textcolor ;
> label (textext("O"), (f*h,2*v*f) ) withcolor textcolor ;
> label (textext("N"), (2*f*h,v*f) ) withcolor textcolor ;
> label (textext("T"), (0,-v*f) ) withcolor textcolor ;
> label (textext("E"), (f*h,0) ) withcolor textcolor ;
> label (textext("X"), (f*h*2,-v*f)) withcolor textcolor ;
> label (textext("T"), (f*h,-2*v*f)) withcolor textcolor ;
> r := h*f;
>
> rect (0,v*f,r);
> rect (f*h,2*v*f,r);
> rect (2*f*h,v*f,r);
> rect (0,-v*f,r);
> rect (f*h,0,r);
> rect (f*h*2,-v*f,r);
> rect (f*h,-2*v*f,r);
> \stopMPpage
>
> \stoptext
>
> Wolfgang
>
Wolfgang, perhaps now I will be a little bit noisy, but the logo in the
wiki [http://wiki.contextgarden.net/skins/common/images/logo-alt4.png ]
has the letters more bold rather than the mp graphic (see attachment below).
How can we do thick more the letters? (and have exactly the same logo).
I don't know metafun.
Thanks in advance,
Xan
[-- Attachment #2: prova.pdf --]
[-- Type: application/pdf, Size: 5264 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-12 17:18 ` Wolfgang Schuster
2009-03-12 19:03 ` Xan
2009-03-12 19:13 ` Xan
@ 2009-03-12 19:56 ` Aditya Mahajan
2009-03-12 20:08 ` Wolfgang Schuster
2 siblings, 1 reply; 37+ messages in thread
From: Aditya Mahajan @ 2009-03-12 19:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 12 Mar 2009, Wolfgang Schuster wrote:
>
> Am 12.03.2009 um 18:01 schrieb Xan:
>
>> Thanks, Wolfgang. Now it works, but whith tiny letters (see attachments)
>
> New version (the old worked only under MkIV).
>
> % logo.mp: creates a blue traffic sign-style context logo
> % Copyright 2008 Taco Hoekwater
> % You are free to use this code any way you can
>
> \setupcolors[state=start,textcolor=white]
Ha, there is a trick that I know but Wolfgang does not ;)
> \startMPenvironment
You can use \startMPenvironment[global]
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
> \stopMPenvironment
then you do not need to repeat this.
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,120pt]
With [global] the environment is applied to both the MP file and the TeX
file.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-12 19:56 ` Aditya Mahajan
@ 2009-03-12 20:08 ` Wolfgang Schuster
2009-03-13 13:18 ` Xan
0 siblings, 1 reply; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-12 20:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 12.03.2009 um 20:56 schrieb Aditya Mahajan:
> Ha, there is a trick that I know but Wolfgang does not ;)
What do you expect, I don't use ConTeXt as long as you do ;-)
>> \startMPenvironment
>
> You can use \startMPenvironment[global]
>
>> \usetypescript[postscript][ec]
>> \setupbodyfont[postscript,ss,120pt]
>> \stopMPenvironment
\startMPenvironment[global]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,ss,144pt]\bf
\stopMPenvironment
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-12 20:08 ` Wolfgang Schuster
@ 2009-03-13 13:18 ` Xan
2009-03-13 13:26 ` Wolfgang Schuster
2009-03-14 13:50 ` Xan
0 siblings, 2 replies; 37+ messages in thread
From: Xan @ 2009-03-13 13:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
En/na Wolfgang Schuster ha escrit:
>
> \startMPenvironment[global]
> \usetypescript[postscript][ec]
> \setupbodyfont[postscript,ss,144pt]\bf
> \stopMPenvironment
>
> Wolfgang
>
Without "\bf" at the end, I get letters more bold.
Is it not the contrary of natural behaviour? 8-|
Thanks,
Xan.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: prova.tex --]
[-- Type: text/x-tex; name="prova.tex", Size: 1267 bytes --]
% logo.mp: creates a blue traffic sign-style context logo
% Copyright 2008 Taco Hoekwater
% You are free to use this code any way you can
\setupcolors[state=start,textcolor=white]
\startMPenvironment[global]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,ss,144pt]
\stopMPenvironment
\starttext
\startMPpage[offset=0pt]
color darkblue,textcolor;
darkblue := (0.0625,0,.412); % 0f006b =
textcolor := (1,1,1);
def rect (expr xl,yl,r) =
pickup pencircle scaled 1;
draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)--
(xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle
withcolor textcolor;
enddef;
f:= 14;
h:=8;
v:=4;
fill fullcircle scaled 408 shifted (112,0)
withcolor darkblue;
label (textext("C"), (0,v*f) ) withcolor textcolor ;
label (textext("O"), (f*h,2*v*f) ) withcolor textcolor ;
label (textext("N"), (2*f*h,v*f) ) withcolor textcolor ;
label (textext("T"), (0,-v*f) ) withcolor textcolor ;
label (textext("E"), (f*h,0) ) withcolor textcolor ;
label (textext("X"), (f*h*2,-v*f)) withcolor textcolor ;
label (textext("T"), (f*h,-2*v*f)) withcolor textcolor ;
r := h*f;
rect (0,v*f,r);
rect (f*h,2*v*f,r);
rect (2*f*h,v*f,r);
rect (0,-v*f,r);
rect (f*h,0,r);
rect (f*h*2,-v*f,r);
rect (f*h,-2*v*f,r);
\stopMPpage
\stoptext
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-13 13:18 ` Xan
@ 2009-03-13 13:26 ` Wolfgang Schuster
2009-03-14 13:50 ` Xan
1 sibling, 0 replies; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-13 13:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.03.2009 um 14:18 schrieb Xan:
> En/na Wolfgang Schuster ha escrit:
>>
>> \startMPenvironment[global]
>> \usetypescript[postscript][ec]
>> \setupbodyfont[postscript,ss,144pt]\bf
>> \stopMPenvironment
> Without "\bf" at the end, I get letters more bold.
> Is it not the contrary of natural behaviour? 8-|
Weird??? Can you show the result with/without \bf.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-13 13:18 ` Xan
2009-03-13 13:26 ` Wolfgang Schuster
@ 2009-03-14 13:50 ` Xan
2009-03-14 15:00 ` Wolfgang Schuster
1 sibling, 1 reply; 37+ messages in thread
From: Xan @ 2009-03-14 13:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
En/na Xan ha escrit:
> En/na Wolfgang Schuster ha escrit:
>>
>> \startMPenvironment[global]
>> \usetypescript[postscript][ec]
>> \setupbodyfont[postscript,ss,144pt]\bf
>> \stopMPenvironment
>>
>> Wolfgang
>>
> Without "\bf" at the end, I get letters more bold.
> Is it not the contrary of natural behaviour? 8-|
>
> Thanks,
> Xan.
>
Hi another time ;-)
How can I get the background were transaparent? (not white)
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: ConTeXt T-shirts?
2009-03-14 13:50 ` Xan
@ 2009-03-14 15:00 ` Wolfgang Schuster
2009-03-14 15:45 ` Context logo (was ConTeXt T-shirts?) Xan
0 siblings, 1 reply; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-14 15:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.03.2009 um 14:50 schrieb Xan:
> How can I get the background were transaparent? (not white)
What do you mean, the background is already transparent.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo (was ConTeXt T-shirts?)
2009-03-14 15:00 ` Wolfgang Schuster
@ 2009-03-14 15:45 ` Xan
2009-03-14 15:59 ` Context logo Wolfgang Schuster
0 siblings, 1 reply; 37+ messages in thread
From: Xan @ 2009-03-14 15:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
En/na Wolfgang Schuster ha escrit:
>
> Am 14.03.2009 um 14:50 schrieb Xan:
>
>> How can I get the background were transaparent? (not white)
>
> What do you mean, the background is already transparent.
>
> Wolfgang
>
> __
Wolfgang, when I run texexec prova.tex I obtain prova.pdf and
prova-mpgraph.1 Both files have background white and not transparent
background. I don't know how explain it.
Perhaps this
[http://www.mediacollege.com/adobe/photoshop/transparent/background.html]
could help you (?).
How do you mean that it's already transparent?
Xan.
[-- Attachment #2: prova.pdf --]
[-- Type: application/pdf, Size: 5268 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: prova.tex --]
[-- Type: text/x-tex; name="prova.tex", Size: 1267 bytes --]
% logo.mp: creates a blue traffic sign-style context logo
% Copyright 2008 Taco Hoekwater
% You are free to use this code any way you can
\setupcolors[state=start,textcolor=white]
\startMPenvironment[global]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,ss,144pt]
\stopMPenvironment
\starttext
\startMPpage[offset=0pt]
color darkblue,textcolor;
darkblue := (0.0625,0,.412); % 0f006b =
textcolor := (1,1,1);
def rect (expr xl,yl,r) =
pickup pencircle scaled 1;
draw (xl-.5r,yl-.5r) -- (xl+.5r,yl-.5r)--
(xl+.5r,yl+.5r) -- (xl-.5r,yl+.5r) -- cycle
withcolor textcolor;
enddef;
f:= 14;
h:=8;
v:=4;
fill fullcircle scaled 408 shifted (112,0)
withcolor darkblue;
label (textext("C"), (0,v*f) ) withcolor textcolor ;
label (textext("O"), (f*h,2*v*f) ) withcolor textcolor ;
label (textext("N"), (2*f*h,v*f) ) withcolor textcolor ;
label (textext("T"), (0,-v*f) ) withcolor textcolor ;
label (textext("E"), (f*h,0) ) withcolor textcolor ;
label (textext("X"), (f*h*2,-v*f)) withcolor textcolor ;
label (textext("T"), (f*h,-2*v*f)) withcolor textcolor ;
r := h*f;
rect (0,v*f,r);
rect (f*h,2*v*f,r);
rect (2*f*h,v*f,r);
rect (0,-v*f,r);
rect (f*h,0,r);
rect (f*h*2,-v*f,r);
rect (f*h,-2*v*f,r);
\stopMPpage
\stoptext
[-- Attachment #4: prova-mpgraph.1 --]
[-- Type: application/postscript, Size: 1919 bytes --]
[-- Attachment #5: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 15:45 ` Context logo (was ConTeXt T-shirts?) Xan
@ 2009-03-14 15:59 ` Wolfgang Schuster
2009-03-14 16:15 ` Xan
0 siblings, 1 reply; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-14 15:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: logo.pdf --]
[-- Type: application/pdf, Size: 10739 bytes --]
[-- Attachment #2: Type: text/plain, Size: 532 bytes --]
Am 14.03.2009 um 16:45 schrieb Xan:
> Wolfgang, when I run texexec prova.tex I obtain prova.pdf and prova-
> mpgraph.1 Both files have background white and not transparent
> background. I don't know how explain it.
>
> Perhaps this [http://www.mediacollege.com/adobe/photoshop/transparent/background.html
> ] could help you (?).
>
> How do you mean that it's already transparent?
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=green]
\starttext
\externalfigure[prova]
\stoptext
Wolfgang
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 15:59 ` Context logo Wolfgang Schuster
@ 2009-03-14 16:15 ` Xan
2009-03-14 16:48 ` Wolfgang Schuster
0 siblings, 1 reply; 37+ messages in thread
From: Xan @ 2009-03-14 16:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 881 bytes --]
En/na Wolfgang Schuster ha escrit:
>
> Am 14.03.2009 um 16:45 schrieb Xan:
>
>> Wolfgang, when I run texexec prova.tex I obtain prova.pdf and
>> prova-mpgraph.1 Both files have background white and not transparent
>> background. I don't know how explain it.
>>
>> Perhaps this
>> [http://www.mediacollege.com/adobe/photoshop/transparent/background.html]
>> could help you (?).
>>
>> How do you mean that it's already transparent?
>
> \setupcolors[state=start]
> \setupbackgrounds[page][background=color,backgroundcolor=green]
> \starttext
> \externalfigure[prova]
> \stoptext
>
> Wolfgang
>
Eh? Green? I think in transparent. I transform your logo.pdf with GIMP
and applying transparency in green color. The result I save as png file
(gimp says me that eps does not support transparency!? is it true?).
Please, see the png file and see that background is transparent.
Xan.
[-- Attachment #2: prova-mpgraph.1-1.png --]
[-- Type: image/png, Size: 16311 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 16:15 ` Xan
@ 2009-03-14 16:48 ` Wolfgang Schuster
2009-03-14 19:22 ` Xan
0 siblings, 1 reply; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-14 16:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.03.2009 um 17:15 schrieb Xan:
> Eh? Green? I think in transparent.
I tried to show you the included pdf had a transparent background, the
color is unimportant.
> I transform your logo.pdf with GIMP and applying transparency in
> green color. The result I save as png file (gimp says me that eps
> does not support transparency!? is it true?).
Dunno about eps but AFAIK postscript 3(?) supports transparent colors.
> Please , see the png file and see that background is transparent.
If you're interested I can send you a better version with bold letters.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 16:48 ` Wolfgang Schuster
@ 2009-03-14 19:22 ` Xan
2009-03-14 19:34 ` Wolfgang Schuster
0 siblings, 1 reply; 37+ messages in thread
From: Xan @ 2009-03-14 19:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
En/na Wolfgang Schuster ha escrit:
>
> Am 14.03.2009 um 17:15 schrieb Xan:
>
>> Eh? Green? I think in transparent.
>
> I tried to show you the included pdf had a transparent background, the
> color is unimportant.
Eh? Can you explain with more details this fact?. I see green the
blackground. Why do you say that it's not important and transparent?
>
>> I transform your logo.pdf with GIMP and applying transparency in
>> green color. The result I save as png file (gimp says me that eps
>> does not support transparency!? is it true?).
>
> Dunno about eps but AFAIK postscript 3(?) supports transparent colors.
How do you pass from pdf to postscript?.
When I run texexec prova.tex I get prova-mpgraph.1 that file says me
that it's eps. How can I pass from this file to transparent postscript?
or from pdf to postscript?
In theory if postscript support transparent background, eps should do (?)
>
>> Please , see the png file and see that background is transparent.
>
> If you're interested I can send you a better version with bold letters.
Yes, I want to have "exactly" the same logo of the wiki.
>
> Wolfgang
>
Thanks Wolfgang for your hacking. ;-)
Regards,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 19:22 ` Xan
@ 2009-03-14 19:34 ` Wolfgang Schuster
2009-03-14 20:52 ` Xan
0 siblings, 1 reply; 37+ messages in thread
From: Wolfgang Schuster @ 2009-03-14 19:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.03.2009 um 20:22 schrieb Xan:
>> I tried to show you the included pdf had a transparent background,
>> the color is unimportant.
>
> Eh? Can you explain with more details this fact?. I see green the
> blackground. Why do you say that it's not important and transparent?
Let me explain this on a example.
\setupcolors[state=start]
\starttext
\externalfigure[contextlogo.png][frame=on]
\page
\setupbackgrounds[page][background=color,backgroundcolor=red]
\externalfigure[contextlogo.png][frame=on]
\stoptext
You can on the first page the background of the picture is white,
to show the site of the picture I enabled the frame. On the second
page I set a background color for the entire page and as you can
see the background of the picture around the circle has the same
color as the page background, this could only happen because the
background of the picture is transparent. If you go now back on
the first page you can now see, the white background is not from
the picture but from the page background.
>>> I transform your logo.pdf with GIMP and applying transparency in
>>> green color. The result I save as png file (gimp says me that eps
>>> does not support transparency!? is it true?).
>>
>> Dunno about eps but AFAIK postscript 3(?) supports transparent
>> colors.
>
> How do you pass from pdf to postscript?.
> When I run texexec prova.tex I get prova-mpgraph.1 that file says me
> that it's eps. How can I pass from this file to transparent
> postscript? or from pdf to postscript?
>
> In theory if postscript support transparent background, eps should
> do (?)
Dou you need the eps generated or can you also use the pdf generated
from ConTeXt with the included metapost graphic.
>> If you're interested I can send you a better version with bold
>> letters.
>
> Yes, I want to have "exactly" the same logo of the wiki.
Which size do you need?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 19:34 ` Wolfgang Schuster
@ 2009-03-14 20:52 ` Xan
2009-03-14 21:31 ` Aditya Mahajan
2009-03-15 8:39 ` Mojca Miklavec
0 siblings, 2 replies; 37+ messages in thread
From: Xan @ 2009-03-14 20:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2449 bytes --]
En/na Wolfgang Schuster ha escrit:
>
> Am 14.03.2009 um 20:22 schrieb Xan:
>
>>> I tried to show you the included pdf had a transparent background,
>>> the color is unimportant.
>>
>> Eh? Can you explain with more details this fact?. I see green the
>> blackground. Why do you say that it's not important and transparent?
>
> Let me explain this on a example.
>
> \setupcolors[state=start]
> \starttext
> \externalfigure[contextlogo.png][frame=on]
> \page
> \setupbackgrounds[page][background=color,backgroundcolor=red]
> \externalfigure[contextlogo.png][frame=on]
> \stoptext
>
> You can on the first page the background of the picture is white,
> to show the site of the picture I enabled the frame. On the second
> page I set a background color for the entire page and as you can
> see the background of the picture around the circle has the same
> color as the page background, this could only happen because the
> background of the picture is transparent. If you go now back on
> the first page you can now see, the white background is not from
> the picture but from the page background.
>
Yes, Wolfgang. Now I understand it.
The actually process is:
texexec prova.tex --> prova.pdf and prova-mpgraph.1 (eps file) generated.
Try your code for prova.pdf:
\setupcolors[state=start]
\starttext
\externalfigure[prova.pdf][frame=on]
\page
\setupbackgrounds[page][background=color,backgroundcolor=red]
\externalfigure[prova.pdf][frame=on]
\stoptext
and I see what you said.
So it has transparent background, but why gimp says that eps does not
support transparency? Strange. Really strange.
>
>>> If you're interested I can send you a better version with bold letters.
>>
>> Yes, I want to have "exactly" the same logo of the wiki.
>
> Which size do you need?
Size? The size of the font: the same. But more bold.If you see wiki logo
have letters more bold than our pdf logo (see attachments)
>
> Wolfgang
Thanks a lot,
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
> ___________________________________________________________________________________
>
[-- Attachment #2: logo-alt4.png --]
[-- Type: image/png, Size: 11428 bytes --]
[-- Attachment #3: prova.pdf --]
[-- Type: application/pdf, Size: 5267 bytes --]
[-- Attachment #4: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 20:52 ` Xan
@ 2009-03-14 21:31 ` Aditya Mahajan
2009-03-15 9:47 ` Xan
2009-03-15 8:39 ` Mojca Miklavec
1 sibling, 1 reply; 37+ messages in thread
From: Aditya Mahajan @ 2009-03-14 21:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 14 Mar 2009, Xan wrote:
>>
> Yes, Wolfgang. Now I understand it.
> The actually process is:
> texexec prova.tex --> prova.pdf and prova-mpgraph.1 (eps file) generated.
>
> and I see what you said.
> So it has transparent background, but why gimp says that eps does not support
> transparency? Strange. Really strange.
AFAIU, trasparency is implemented using specials in mp code, so the eps
(the .1 file) does not contain transparency, but the pdf does. Did you
open the pdf or the eps file in gimp?
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 21:31 ` Aditya Mahajan
@ 2009-03-15 9:47 ` Xan
0 siblings, 0 replies; 37+ messages in thread
From: Xan @ 2009-03-15 9:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
En/na Aditya Mahajan ha escrit:
> On Sat, 14 Mar 2009, Xan wrote:
>
>>>
>> Yes, Wolfgang. Now I understand it.
>> The actually process is:
>> texexec prova.tex --> prova.pdf and prova-mpgraph.1 (eps file)
>> generated.
>>
>> and I see what you said.
>> So it has transparent background, but why gimp says that eps does not
>> support transparency? Strange. Really strange.
>
> AFAIU, trasparency is implemented using specials in mp code, so the
> eps (the .1 file) does not contain transparency, but the pdf does. Did
> you open the pdf or the eps file in gimp?
Aditya, when I open pdf or eps file in gimp, gimp pop-up a windows of
convert the file. When the conversion is completed, it puts white
background in the image. So I can't see if pdf has _really_ transparent
background.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-14 20:52 ` Xan
2009-03-14 21:31 ` Aditya Mahajan
@ 2009-03-15 8:39 ` Mojca Miklavec
2009-03-15 9:53 ` Xan
1 sibling, 1 reply; 37+ messages in thread
From: Mojca Miklavec @ 2009-03-15 8:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, Mar 14, 2009 at 21:52, Xan wrote:
>
> So it has transparent background, but why gimp says that eps does not
> support transparency? Strange. Really strange.
At least in older versions of (E)PS you cannot use "transparent blue"
or "transparent red" to fill shapes for example. But the background is
always transparent even in PostScript in the sense that unless you
explicitely paint the background with white, you can include your
image in another document and you won't see any white white
rectangular border around it.
GIMP doesn't really support EPS. I don't know what you need GIMP for,
but when I need to convert some EPS or PDF image into transparent PNG,
I do:
gs -dSAFER -dBATCH -dNOPAUSE \
-sDEVICE=pngalpha \
-dTextAlphaBits=4 \
-dGraphicsAlphaBits=4 \
-sOutputFile=converted_file.png \
-r100.0 \ (put here whatever number you want)
original_file.pdf
You can try that with the logo and you'll notice the transparent
background with GIMP.
Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: Context logo
2009-03-15 8:39 ` Mojca Miklavec
@ 2009-03-15 9:53 ` Xan
2009-03-15 9:58 ` Taco Hoekwater
0 siblings, 1 reply; 37+ messages in thread
From: Xan @ 2009-03-15 9:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
En/na Mojca Miklavec ha escrit:
> On Sat, Mar 14, 2009 at 21:52, Xan wrote:
>
>> So it has transparent background, but why gimp says that eps does not
>> support transparency? Strange. Really strange.
>>
>
> At least in older versions of (E)PS you cannot use "transparent blue"
> or "transparent red" to fill shapes for example. But the background is
> always transparent even in PostScript in the sense that unless you
> explicitely paint the background with white, you can include your
> image in another document and you won't see any white white
> rectangular border around it.
>
Okay Mojca.
Anyone knows if newest version of eps support it?
> GIMP doesn't really support EPS. I don't know what you need GIMP for,
> but when I need to convert some EPS or PDF image into transparent PNG,
> I do:
>
> gs -dSAFER -dBATCH -dNOPAUSE \
> -sDEVICE=pngalpha \
> -dTextAlphaBits=4 \
> -dGraphicsAlphaBits=4 \
> -sOutputFile=converted_file.png \
> -r100.0 \ (put here whatever number you want)
> original_file.pdf
>
> You can try that with the logo and you'll notice the transparent
> background with GIMP.
>
Thanks Mojca for this script. I did the same with gimp with more more
effort (open eps file, gimp says that it should convert, then a file
with white background appears and then I substitute white background
with transparent background, and save as png file. Uf!!).
Mojca, how is this script for converting pdf file to (newest) eps? For
seeing if newest eps supports transparency.
> Mojca
>
Regards,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 37+ messages in thread