Re: try compiling Tex showcase source : program_sample.tex
Christopher Creutzig wrote:
olivier Turlier wrote:
I've tryed to compile whithout success.
The files are deliberately incomplete. ...generate the output, is
more than a simple texexec. :-)
Regards, Christopher
Hi Christopher, I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog (http://typokvitek.com/stormcontext/) push hard the limit of those transparent overlays that I'm still in quest to reproduce. Salutations -- Olivier TURLIER
olivier Turlier wrote:
Christopher Creutzig wrote:
olivier Turlier wrote:
I've tryed to compile whithout success.
The files are deliberately incomplete. ...generate the output, is
more than a simple texexec. :-)
Regards, Christopher
Hi Christopher, I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog
interesting document (maybe there should be a copy on the wiki)
(http://typokvitek.com/stormcontext/) push hard the limit of those transparent overlays that I'm still in quest to reproduce.
not sure what you mean here ... the demo shows up ok here; (maybe it will look slightly better if the big two-chars are behind the text) ; the main thing to keep into mind with transparencies is that some versions of the reader mess up anti aliasing when transparencies are involved; i took a quick look in the style -) \expandafter\processcommalist\expandafter[\glyphset]\doglyph ==> processcommacommand[\glyphset]\doglyph \expandafter\switchtobodyfont\expandafter[\the\bigInitSize]#1}% ==> \expanded{\switchtobodyfont[\the\bigInitSize]} actually i think that the expanded is not even needed here (best to use UpperCaseNames in order to prevent clashes) 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 -----------------------------------------------------------------
Hans Hagen wrote:
olivier Turlier wrote:
I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog
interesting document (maybe there should be a copy on the wiki)
Thanks to Patrick it is already on wiki: http://modules.contextgarden.net/stormfontsupport There is also source code for the catalogue: http://dl.contextgarden.net/modules/stormfontsupport/stormcontext-cat.zip vit P.S. Sorry for a delay I was several days off.
olivier Turlier wrote:
I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog
Sorry for not answering for such a long time. Please try the following code: \setupcolors[state=start] \startuseMPgraphic{bgnd} StartPage; linear_shade(llcorner Page -- urcorner Page -- ulcorner Page -- cycle, 2, 0.2[red,green], 0.8[red,green]); linear_shade(llcorner Page -- lrcorner Page -- urcorner Page -- cycle, 2, 0.2[green,red], 0.8[green, red]); BoundPageAreas; \stopuseMPgraphic \defineoverlay[bgnd][\useMPgraphic{bgnd}] \setupbackgrounds[page][background=bgnd] \startuseMPgraphic{brighten} StartPage; fill Field[Text][Text] enlarged 2pt withcolor transparent(1, 0.5, white); BoundPageAreas; \stopuseMPgraphic \defineoverlay[brighten][\useMPgraphic{brighten}] \setupbackgrounds[text][background=brighten,backgroundoffset=2pt] \starttext \input tufte \stoptext I'm getting a displaced background this way (leaving the backgroundoffset out does not help), but I'm sure someone will be able to tell us the secret incantation to fix that. Strange thing is – I had tried that a while ago and the transparency was simply lost. (Right now, the numbers must be different depending on whether you put the thing in front of an MP graphic or in front of a plain color background.) If that happens to you, try putting both graphics into the same stack of backgrounds, as in \setupbackgrounds[page][background={bgnd,brighten}] As a last resort, you could of course join the code into one MP graphic. Christopher
Christopher Creutzig wrote:
olivier Turlier wrote:
I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog
Sorry for not answering for such a long time. Please try the following code:
\setupcolors[state=start]
\startuseMPgraphic{bgnd} StartPage; linear_shade(llcorner Page -- urcorner Page -- ulcorner Page -- cycle, 2, 0.2[red,green], 0.8[red,green]); linear_shade(llcorner Page -- lrcorner Page -- urcorner Page -- cycle, 2, 0.2[green,red], 0.8[green, red]); BoundPageAreas; \stopuseMPgraphic
\defineoverlay[bgnd][\useMPgraphic{bgnd}] \setupbackgrounds[page][background=bgnd]
\startuseMPgraphic{brighten} StartPage; fill Field[Text][Text] enlarged 2pt withcolor transparent(1, 0.5, white); BoundPageAreas; \stopuseMPgraphic
\defineoverlay[brighten][\useMPgraphic{brighten}]
\setupbackgrounds[text][background=brighten,backgroundoffset=2pt]
\starttext
\input tufte
\stoptext
I'm getting a displaced background this way (leaving the backgroundoffset out does not help), but I'm sure someone will be able to tell us the secret incantation to fix that.
That's because you operate on a page (btw, it's StartPage ... StopPage); In this case you can better use: \startuseMPgraphic{brighten} fill OverlayBox enlarged 2pt withcolor transparent(1, 0.5, white); \stopuseMPgraphic ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (4)
-
Christopher Creutzig
-
Hans Hagen
-
olivier Turlier
-
Vit Zyka