[NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
Hello list,

Is the a way to make the following example posted here:
http://archive.contextgarden.net/message/20060321.134723.3a8e8ff3.en.html
work with recent mkIV as it used to before?

\setupoutput[pdftex]
\setupcolors[state=start]
\frenchspacing
\tolerance = 1000
\setuplayout[width=4in]
\setupfloat
[intermezzo]
[
leftmargindistance=-.8in,
rightmargindistance=-.8in,
default={outer,high}]
\setupcaption[intermezzo][location=none]

\defineframedtext
[myohmy]
[width=6cm,bodyfont=small,
frame=off,
backgroundcorner=round,
backgroundradius=6pt,background=screen,backgroundscreen=.8]
%\showframe
\setupmarginblocks[
style=small,
width=5cm,
before=\startmyohmy,
after={\relax,\stopmyohmy},
align=middle,
]
\long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}}

\starttext
\input ward
\placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy}
\dorecurse{3}{\input knuth \par}
\page[yes]
\input ward
\placeintermezzo{}{\input dawkins\relax}
\page[yes]
\input ward

FOO
\sidebar{%
\input dawkins

Additional text.
}
\dorecurse{3}{\input knuth \par}


\stoptext


Many thanks in advance

Piotr
--
http://okle.pl
___
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
___


Re: [NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
I realized it's a general hanging problem :(

\starttext
\placefigure[left,hang]{}{\externalfigure[hacker.jpg]}
\input zapf
\stoptext


P.

2009/9/25 Piotr Kopszak kops...@gmail.com:
 Hello list,

 Is the a way to make the following example posted here:
 http://archive.contextgarden.net/message/20060321.134723.3a8e8ff3.en.html
 work with recent mkIV as it used to before?

 \setupoutput[pdftex]
 \setupcolors[state=start]
 \frenchspacing
 \tolerance = 1000
 \setuplayout[width=4in]
 \setupfloat
 [intermezzo]
 [
 leftmargindistance=-.8in,
 rightmargindistance=-.8in,
 default={outer,high}]
 \setupcaption[intermezzo][location=none]

 \defineframedtext
 [myohmy]
 [width=6cm,bodyfont=small,
 frame=off,
 backgroundcorner=round,
 backgroundradius=6pt,background=screen,backgroundscreen=.8]
 %\showframe
 \setupmarginblocks[
    style=small,
    width=5cm,
 before=\startmyohmy,
 after={\relax,\stopmyohmy},
 align=middle,
 ]
 \long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}}

 \starttext
 \input ward
 \placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy}
 \dorecurse{3}{\input knuth \par}
 \page[yes]
 \input ward
 \placeintermezzo{}{\input dawkins\relax}
 \page[yes]
 \input ward

 FOO
 \sidebar{%
 \input dawkins

 Additional text.
 }
 \dorecurse{3}{\input knuth \par}


 \stoptext


 Many thanks in advance

 Piotr
 --
 http://okle.pl




-- 
http://okle.pl
___
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
___


Re: [NTG-context] old sidebar example

2009-09-25 Thread Hans Hagen

Piotr Kopszak wrote:

Hello list,

Is the a way to make the following example posted here:
http://archive.contextgarden.net/message/20060321.134723.3a8e8ff3.en.html
work with recent mkIV as it used to before?


works here


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