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


[NTG-context] The future of context conference pdf?

2009-09-25 Thread Xan

Hi,

I'm interested of the conference of Hans The Future of ConTeXt 
[http://www.ntg.nl/EuroTeX2009/programme.html]. Is it in some place for 
downloading the presentation?


Thanks in advance,
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
___


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
___


[NTG-context] Metafun problem

2009-09-25 Thread David Arnold

All,

I've got the context minimals installed and I'm compiling the  
following (from the new Metafun manual) using MKIV:


\startuniqueMPgraphic{name}
path p;
p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight;
fill p withcolor .625yellow;
draw p withcolor .625red;
\stopuniqueMPgraphic

\starttext
Hello, World!

\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background=my graphic,frame=off]{Go Home}[firstpage]

\stoptext

No button shows up. Am I missing something?

David
___
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] Numbering of sub-header

2009-09-25 Thread Wolfgang Schuster


Am 23.09.2009 um 09:15 schrieb Flavien Lambert:

Dear all, I am using Mark IV from the minimals. I have a problem  
concerning the numbering fo my sub-header. I defined exercices in  
the following way :


% Titres
\setuphead[subject][textstyle={\bfc},align=left,after=\hairline]

% Commandes
\def\exnu#1{%
  \framed 
[width 
= 
1.5em 
,corner 
= 
06 
,background 
=color,backgroundcolor=myGray,foreground=color,foregroundcolor=white] 
{#1}%

}
\definehead[exercice][subsection]
\setuphead[exercice][textstyle={\bf},numberstyle={},numbercommand= 
\exnu]


A few months ago, when using Mark II, the numbering of exercice was  
continuous even if new sujects were introduced. But now, the  
numbering is reinitialized when I put a subject. Can I go back to  
the previous behaviour ?


Example!

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
___