* Centering 'clipping' text logo
@ 2011-08-17 11:50 Cecil Westerhof
2011-08-17 12:38 ` Peter Rolf
0 siblings, 1 reply; 3+ messages in thread
From: Cecil Westerhof @ 2011-08-17 11:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 258 bytes --]
I like the last example on:
http://wiki.contextgarden.net/Graphical_text_manipulation
This creates a left aligned 'logo'. I would like it to be centered. I tried
several things, but until now to no avail. How can I get it centered?
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 375 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Centering 'clipping' text logo
2011-08-17 11:50 Centering 'clipping' text logo Cecil Westerhof
@ 2011-08-17 12:38 ` Peter Rolf
2011-08-17 13:08 ` Cecil Westerhof
0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2011-08-17 12:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 17.08.2011 13:50, schrieb Cecil Westerhof:
> I like the last example on:
> http://wiki.contextgarden.net/Graphical_text_manipulation
>
> This creates a left aligned 'logo'. I would like it to be centered. I
> tried several things, but until now to no avail. How can I get it centered?
>
my first guess would be
\midaligned{\vbox{%
\clip
\clip
\clip
}}
untested.. ;-)
> --
> Cecil Westerhof
>
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Centering 'clipping' text logo
2011-08-17 12:38 ` Peter Rolf
@ 2011-08-17 13:08 ` Cecil Westerhof
0 siblings, 0 replies; 3+ messages in thread
From: Cecil Westerhof @ 2011-08-17 13:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]
2011/8/17 Peter Rolf <indiego@gmx.net>
> Am 17.08.2011 13:50, schrieb Cecil Westerhof:
> > I like the last example on:
> > http://wiki.contextgarden.net/Graphical_text_manipulation
> >
> > This creates a left aligned 'logo'. I would like it to be centered. I
> > tried several things, but until now to no avail. How can I get it
> centered?
> >
> my first guess would be
>
> \midaligned{\vbox{%
> \clip
> \clip
> \clip
> }}
>
I tried a lot, but just this one not. I got one long line with the three
parts beside each-other, a little room between the parts, no effect, …
> untested.. ;-)
>
It does exactly what I want. :-D
Would be a nice one to make a macro from. Have to delve first more deeply
into ConTeXt. I do not know enough about parameter handling. (Named,
variable, …)
I went one step further. Because I found the upper and lower parts to small,
I used:
\midaligned{\vbox{%
\clip[ny=5,y=1]{\color[blue]\MyLogo}
\clip[ny=5,y=2]{\color[blue]\MyLogo}
\clip[ny=5,y=3]{\color[yellow]\MyLogo}
\clip[ny=5,y=4]{\color[red]\MyLogo}
\clip[ny=5,y=5]{\color[red]\MyLogo}
}}
But now the second blue and the second red part become black. Why?
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 1848 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-17 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-17 11:50 Centering 'clipping' text logo Cecil Westerhof
2011-08-17 12:38 ` Peter Rolf
2011-08-17 13:08 ` Cecil Westerhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).