Note that the || in tufte does not get handled transparently. Alan
On Mon, 15 Jun 2015 00:21:56 +0200 Mojca Miklavec <mojca.miklavec.li...@gmail.com> wrote: > On Sat, Jun 13, 2015 at 10:00 AM, Hans Hagen wrote: > > Hi, > > > > I uploaded a beta. The most significant (visible) change is in the > > way mp handles outlines. Here are some examples: > > > > % outlinetext (text) transformations ; > > % outlinetext.d (text) (draw options) transformations ; > > % outlinetext.f (text) (fill options) transformations ; > > % outlinetext.b (text) (draw options) (fill options) > > transformations ; % outlinetext.r (text) (fill options) (draw > > options) transformations ; > > > > \starttext > > > > \startMPpage > > > > draw outlinetext.b > > ("\framed[align=normal]{\input{tufte}}") > > (withcolor .5white) > > (withcolor red withpen pencircle scaled 1/10) > > xsized 10cm ; > > > > \stopMPpage > > > > \startMPpage > > > > draw outlinetext.r > > ("\framed[align=normal]{\input{tufte}}") > > (withcolor red withpen pencircle scaled 1/10) > > (withcolor .5white) > > xsized 10cm ; > > > > \stopMPpage > > > > \startMPpage > > > > draw outlinetext.d > > ("\framed[align=normal]{\input{tufte}}") > > (withcolor .5white) > > xsized 10cm ; > > > > \stopMPpage > > > > \startMPpage > > > > picture p ; p := outlinetext.p("PX") ; > > > > for i within p : > > draw i withcolor red withpen pencircle scaled 1/10 ; > > endfor ; > > > > \stopMPpage > > > > \stoptext > > Amazing. > > This also makes it easy to "drop a shadow", a simplified version being > something like: > > \starttext > > \startbuffer > \framed[align=normal]{\bf\input{tufte}} > \stopbuffer > > \startMPpage > > draw outlinetext.b > ("\getbuffer") > (withcolor .85white) > (withcolor .85white withpen pencircle scaled 1) > shifted (0.5,-0.5) ; > > draw outlinetext.f > ("\getbuffer") > (withcolor .7white) > shifted (0.5,-0.5) ; > > draw outlinetext.b > ("\getbuffer") > (withcolor yellow) > (withcolor black withpen pencircle scaled 1/10); > > \stopMPpage > > \stoptext > > ... but I believe one could now address this*** as well (with some > extra hacking of shadings): > http://tex.stackexchange.com/a/52823/6367 > ;) ;) ;) > > > The font previews are also amazing. > > Mojca > > *** Some time ago someone made me a poster on a colourful background > in Photoshop (background had both black and white elements). He used a > white font with black outline and gray dropped shadow. I reproduced > the content in ConTeXt, but I wasn't able to reproduce the nice shadow > that made the text stand out better and thus more readable. In the > printing house they asked me why I went from good to worse (ie. from > PhotoShop to TeX) by "decreasing the visibility" of letters. I assume > that doing smooth shadow behind the letters should finally be possible > in ConTeXt now as well. [Alan will probably disagree.] ___________________________________________________________________________________ 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 ___________________________________________________________________________________