Re: [NTG-context] luatex 0.75

2013-03-04 Thread Otared Kavian

On 4 mars 2013, at 23:34, Hans Hagen  wrote:
> […]
> first-setup currently fetches a 0.70 indeed
> 


Not here: I just updated with first-setup.sh on my Mac and got:
This is LuaTeX, Version beta-0.75.0-2013030308 (TeX Live 2013/dev)(rev 
4589)
an ConTeXt version is
current version: 2013.03.04 18:28

Best regards: OK___
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
___

Re: [NTG-context] luatex 0.75

2013-03-04 Thread Hans Hagen

On 3/4/2013 10:57 PM, Colin Fraizer wrote:

I only have one luatex.exe that came from the context install:
It is context/tex/texmf-mswin/bin/luatex.exe

Where would the second one normally be?

-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Monday, March 04, 2013 4:32 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] luatex 0.75

On Mon, Mar 4, 2013 at 8:09 PM, Colin Fraizer wrote:

What is the normal way to download LuaTeX beta binaries?  I run on

Windows.


(I had tried 'first-setup.bat --context=beta', but I still end up with
luatex beta-0.70.2-2013021710.)


When you fetch the distribution you get two binaries - one for running
mtx-update.lua and the other one that's actually used when typesetting
documents.

If you are still getting beta-0.70.2 that's either the one in "bin"
that's only responsible for running rsync or something must be wrong/broken.


first-setup currently fetches a 0.70 indeed


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.75

2013-03-04 Thread Hans Hagen

On 3/4/2013 10:30 PM, Mojca Miklavec wrote:

On Mon, Mar 4, 2013 at 7:02 PM, Hans Hagen wrote:

Hi,

I uploaded a beta. This will be the last one useable with pre-0.75 luatex so
if you depend on it, best make a snapshot now.

Some 50 files will be replaced in 0.75 and I'm not sure when Mojca will do
the 0.75 garden update.


Nearly all (= as good as all) binaries on the garden are at 0.75
already. For TLContrib I'm waiting on Taco's answer (whether or not to
update MetaPost as well, whether the old ConTeXt still works with
0.75, updating the base package etc).


older context (say 0.72) will work with 0.75


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.75

2013-03-04 Thread Colin Fraizer
I only have one luatex.exe that came from the context install:
It is context/tex/texmf-mswin/bin/luatex.exe

Where would the second one normally be?

-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Monday, March 04, 2013 4:32 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] luatex 0.75

On Mon, Mar 4, 2013 at 8:09 PM, Colin Fraizer wrote:
> What is the normal way to download LuaTeX beta binaries?  I run on
Windows.
>
> (I had tried 'first-setup.bat --context=beta', but I still end up with 
> luatex beta-0.70.2-2013021710.)

When you fetch the distribution you get two binaries - one for running
mtx-update.lua and the other one that's actually used when typesetting
documents.

If you are still getting beta-0.70.2 that's either the one in "bin"
that's only responsible for running rsync or something must be wrong/broken.

Mojca

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


Re: [NTG-context] luatex 0.75

2013-03-04 Thread Mojca Miklavec
On Mon, Mar 4, 2013 at 8:09 PM, Colin Fraizer wrote:
> What is the normal way to download LuaTeX beta binaries?  I run on Windows.
>
> (I had tried 'first-setup.bat --context=beta', but I still end up with
> luatex beta-0.70.2-2013021710.)

When you fetch the distribution you get two binaries - one for running
mtx-update.lua and the other one that's actually used when typesetting
documents.

If you are still getting beta-0.70.2 that's either the one in "bin"
that's only responsible for running rsync or something must be
wrong/broken.

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


Re: [NTG-context] luatex 0.75

2013-03-04 Thread Mojca Miklavec
On Mon, Mar 4, 2013 at 7:02 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a beta. This will be the last one useable with pre-0.75 luatex so
> if you depend on it, best make a snapshot now.
>
> Some 50 files will be replaced in 0.75 and I'm not sure when Mojca will do
> the 0.75 garden update.

Nearly all (= as good as all) binaries on the garden are at 0.75
already. For TLContrib I'm waiting on Taco's answer (whether or not to
update MetaPost as well, whether the old ConTeXt still works with
0.75, updating the base package etc).

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


[NTG-context] problem with aligncharacter=yes

2013-03-04 Thread Peter Münster
Hi,

It seems, that \characteralignmentmode=2 and align=flushright do not
work together:

--8<---cut here---start->8---
\setupTABLE[offset=0em]
\setupTABLE[c][1][align=flushright, alignmentcharacter=., aligncharacter=yes]
\setupTABLE[c][2][align=flushleft]
\starttext
\section{flushright does not work}
\bTABLE
  \chardef\characteralignmentmode=2
  \bTR \bTD 1234  \eTD \bTD € \eTD \eTR
  \bTR \bTD 123.4 \eTD \bTD € \eTD \eTR
  \bTR \bTD 12.34 \eTD \bTD € \eTD \eTR
\eTABLE

\section{workaround}
\bTABLE
  \chardef\characteralignmentmode=4
  \bTR \bTD 1234\white. \eTD \bTD € \eTD \eTR
  \bTR \bTD 123.4   \eTD \bTD € \eTD \eTR
  \bTR \bTD 12.34   \eTD \bTD € \eTD \eTR
\eTABLE
\stoptext
--8<---cut here---end--->8---

Is there a cleaner solution than my workaround?

TIA for any hints,
-- 
   Peter
___
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
___

Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-03-04 Thread Wolfgang Schuster

Am 04.03.2013 um 14:57 schrieb Peter Münster :

> Hi,
> 
> How could I embed \startletter/\stopletter in a macro please?
> 
> This does not work:
> 
> --8<---cut here---start->8---
> \usemodule[letter]
> \def\myStartLetter{\startletter}
> \def\myStopLetter{\stopletter}
> \myStartLetter
> \input tufte
> \myStopLetter
> --8<---cut here---end--->8---

The module uses a buffer to store the content of the letter environment.

What you can do is to create a new buffer for your environment and feed
the content of this buffer to the letter module.

\usemodule[letter]

\startsetups[letter:section:content]
\getbuffer[MyLetter]
\stopsetups

\setuplettersection[content][alternative=setups]

\def\StartLetter
  {\starttext
   \grabbufferdata[MyLetter][StartLetter][StopLetter]}

\def\StopLetter
  {\placeletter
   \stoptext}

\StartLetter
\input tufte
\StopLetter

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.75

2013-03-04 Thread Colin Fraizer
What is the normal way to download LuaTeX beta binaries?  I run on Windows.

(I had tried 'first-setup.bat --context=beta', but I still end up with
luatex beta-0.70.2-2013021710.)

-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Hans Hagen
Sent: Monday, March 04, 2013 1:02 PM
To: mailing list for ConTeXt users
Subject: [NTG-context] luatex 0.75

Hi,

I uploaded a beta. This will be the last one useable with pre-0.75 luatex so
if you depend on it, best make a snapshot now.

Some 50 files will be replaced in 0.75 and I'm not sure when Mojca will do
the 0.75 garden update.

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 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  :
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
___


[NTG-context] luatex 0.75

2013-03-04 Thread Hans Hagen

Hi,

I uploaded a beta. This will be the last one useable with pre-0.75 
luatex so if you depend on it, best make a snapshot now.


Some 50 files will be replaced in 0.75 and I'm not sure when Mojca will 
do the 0.75 garden update.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Understanding \lesshyphens

2013-03-04 Thread Hans Hagen

On 3/4/2013 3:14 PM, Marco Patzer wrote:

Hi,

how is \lesshyphens supposed to work? According to the source it's
supposed to increment the current value of lefthyphenmin and
righthyphenmin. But apparently I'm mistaken, it has no effect
whatsoever. Can someone enlighten me?

\setuplayout [width=3cm]
%% \setuplanguage [lefthyphenmin=3] %% works
\lesshyphens%% no effect
\starttext
   \input zapf
\stoptext


a sync macro is missing .. will be fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Understanding \lesshyphens

2013-03-04 Thread Marco Patzer
Hi,

how is \lesshyphens supposed to work? According to the source it's
supposed to increment the current value of lefthyphenmin and
righthyphenmin. But apparently I'm mistaken, it has no effect
whatsoever. Can someone enlighten me?

\setuplayout [width=3cm]
%% \setuplanguage [lefthyphenmin=3] %% works
\lesshyphens%% no effect
\starttext
  \input zapf
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote:

> A lucky guess did me look into the code. Whereas I got no results
> with [align=] it turns out that [itemalign=flushright] does the
> trick. Spares you the "ugly solution".

That's indeed much better :)

> Maybe someone more apt to do things in the contextgarden, will be
> so kind as put this there.

Done.

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-03-04 Thread Peter Münster
Hi,

How could I embed \startletter/\stopletter in a macro please?

This does not work:

--8<---cut here---start->8---
\usemodule[letter]
\def\myStartLetter{\startletter}
\def\myStopLetter{\stopletter}
\myStartLetter
\input tufte
\myStopLetter
--8<---cut here---end--->8---

TIA for any hints,
-- 
   Peter
___
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
___


Re: [NTG-context] itemize

2013-03-04 Thread Meer, H. van der
A lucky guess did me look into the code. Whereas I got no results with [align=] 
it turns out that [itemalign=flushright] does the trick. Spares you the "ugly 
solution". Maybe someone more apt to do things in the contextgarden, will be so 
kind as put this there.

Hans van der Meer



On 4 mrt. 2013, at 14:19, Marco Patzer 
mailto:home...@lavabit.com>> wrote:

On 2013–03–04 Meer, H. van der wrote:

How does one forces the item nubers to the right. The goal is have the units 
above each other and not above the tens:

Here's an ugly solution using a box. Maybe there's a more clean
solution.

\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]
\starttext
 \startitemize [n, packed, columns]
   \dorecurse{32}{\startitem foo \stopitem}
 \stopitemize
\stoptext

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

Re: [NTG-context] text overlayed

2013-03-04 Thread Roland Thiers


Le 4 mars 13 à 12:37, Marco Patzer a écrit :


On 2013–03–04 Roland Thiers wrote:


I'm learning a little bit of metapost language, using metafun manual.
I made some background for a title (surely the code is awful, thanks
for suggestions of improvement) but it's static, i'd like to adapt  
it to

the widthof the text. I don't know if it is possible from my code
and if it is i don't know how to do !


You can use the variable OverlayWidth to obtain the width of the
overlay, which is determined by the provided text. You can use it as
follows:

\setuplayout
 [backspace=6cm]

\startuniqueMPgraphic{essai}
 path p,p',q,q';

 w:=2OverlayWidth;

 p := (0,0.1cm) -- (w,0.3cm);
 q := (11cm,-0.7cm) -- (w,2.2cm);
 p':= (w,1.3cm) -- (-0.4cm,1.4cm);
 q':= (0.3cm,2.4cm) -- (0.2cm,-0.3cm);

 pickup pencircle scaled 1mm;
 drawoptions(withcolor 0.3white);

 draw p; draw p';
 draw q; draw q';

 pair A; A:=q'intersectionpoint p';
 pair B; B:=q intersectionpoint p';
 pair C; C:=p intersectionpoint q;
 pair D; D:=q'intersectionpoint p;
 path s; s:= A--B--C--D--cycle;

 fill s withcolor .8white;
\stopuniqueMPgraphic

\defineoverlay
 [encadrement]
 [\uniqueMPgraphic{essai}]

\defineframed
 [boxframed]
 [frame=off,
  foregroundstyle=bolditalic,
  foregroundcolor=darkred,
  background=encadrement]

\starttext
 \boxframed{Devoir de mathématiques}
 \blank [2cm]
 \boxframed{Devoir de mathématiques and some more text}
\stoptext


Marco
Great ! Thank you very much, Marco ! I saw the use of the numeric  
variable OverlayWidth and also all your improvements

like drawoptions, defineframed ... in preamble.
Roland

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


Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote:

> How does one forces the item nubers to the right. The goal is have the units 
> above each other and not above the tens:

Here's an ugly solution using a box. Maybe there's a more clean
solution.

\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]
\starttext
  \startitemize [n, packed, columns]
\dorecurse{32}{\startitem foo \stopitem}
  \stopitemize
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] itemize

2013-03-04 Thread Meer, H. van der
How does one forces the item nubers to the right. The goal is have the units 
above each other and not above the tens:

< 1>   <1>
..not
< 9>   <9>
<10>   <10>

Could not find it in the command refs of the contextgarden.

Hans van der Meer



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

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-03-04 Thread Mikael P. Sundqvist
On Tue, Feb 26, 2013 at 10:01 PM, Marco Patzer  wrote:
> Hi Mikael,
>
> your original example works for me with a current beta if you
> replace uniqueMPgraphic with useMPgraphic.
>
>
> Marco
>
> ___
> 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
> ___

Thanks, it works here aswell with useMPgraphic now with latest beta.

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


Re: [NTG-context] text overlayed

2013-03-04 Thread Marco Patzer
On 2013–03–04 Roland Thiers wrote:

> I'm learning a little bit of metapost language, using metafun manual.
> I made some background for a title (surely the code is awful, thanks 
> for suggestions of improvement) but it's static, i'd like to adapt it to 
> the widthof the text. I don't know if it is possible from my code 
> and if it is i don't know how to do !

You can use the variable OverlayWidth to obtain the width of the
overlay, which is determined by the provided text. You can use it as
follows:

\setuplayout
  [backspace=6cm]

\startuniqueMPgraphic{essai}
  path p,p',q,q';

  w:=2OverlayWidth;

  p := (0,0.1cm) -- (w,0.3cm);
  q := (11cm,-0.7cm) -- (w,2.2cm);
  p':= (w,1.3cm) -- (-0.4cm,1.4cm);
  q':= (0.3cm,2.4cm) -- (0.2cm,-0.3cm);

  pickup pencircle scaled 1mm;
  drawoptions(withcolor 0.3white);

  draw p; draw p';
  draw q; draw q';

  pair A; A:=q'intersectionpoint p';
  pair B; B:=q intersectionpoint p';
  pair C; C:=p intersectionpoint q;
  pair D; D:=q'intersectionpoint p;
  path s; s:= A--B--C--D--cycle;

  fill s withcolor .8white;
\stopuniqueMPgraphic

\defineoverlay
  [encadrement]
  [\uniqueMPgraphic{essai}]

\defineframed
  [boxframed]
  [frame=off,
   foregroundstyle=bolditalic,
   foregroundcolor=darkred,
   background=encadrement]

\starttext
  \boxframed{Devoir de mathématiques}
  \blank [2cm]
  \boxframed{Devoir de mathématiques and some more text}
\stoptext


Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] text overlayed

2013-03-04 Thread Roland Thiers
Hello all,
I'm learning a little bit of metapost language, using metafun manual.
I made some background for a title (surely the code is awful, thanks 
for suggestions of improvement) but it's static, i'd like to adapt it to 
the widthof the text. I don't know if it is possible from my code 
and if it is i don't know how to do !
Thanks for any help,
best regards, Roland
My code :
\setuplayout[width=fit,height=fit,header=0cm,topspace=1.8cm,footer=1.2cm,%
bottomspace=1cm,backspace=6cm,leftmargin=1.5cm,
leftmargindistance=0.5cm,rightmargin=1cm,rightmargindistance=0.5cm,
location=singlesided]

\startuniqueMPgraphic{essai}
path p,p',q,q';
p:=(0,0.1cm)--(12cm,0.3cm);
 q:=(11cm,-0.7cm)--(11.5cm,2.2cm);
p':=(11.7cm,1.3cm)--(-0.4cm,1.4cm);
 q':=(0.3cm,2.4cm)--(0.2cm,-0.3cm);
 draw p withpen pencircle scaled 1mm withcolor 0.3white;
 draw p' withpen pencircle scaled 1mm withcolor 0.3white;
 draw q withpen pencircle scaled 1mm withcolor 0.3white;
 draw q' withpen pencircle scaled 1mm withcolor 0.3white;
pair A; A:=q'intersectionpoint p';
pair B; B:=q intersectionpoint p';
pair C; C:=p intersectionpoint q;
pair D; D:=q'intersectionpoint p;
path s; s:= A--B--C--D--cycle;
fill s withcolor .8white;
\stopuniqueMPgraphic
\starttext
\defineoverlay[encadrement][\uniqueMPgraphic{essai}]
\framed[frame=off,background=encadrement]{\it\tfb\color[darkred]{Devoir de
mathématiques}}
\stoptext

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

Re: [NTG-context] FiXme and ConTeXt mkiv

2013-03-04 Thread Janne Junnila
On Sun, Mar 3, 2013 at 7:45 PM, Wolfgang Schuster
 wrote:
> I put a new version of the module on the server but I suggest to
> use the annotation module which has more options and let you
> create your own commands/environments to print notes etc.

Thank you very much! I'll take a look at the annotations module, too.

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