Re: [NTG-context] Framedtext : text out of frame

2021-09-26 Thread Hans Hagen via ntg-context

On 9/26/2021 5:07 PM, Fabrice Couvreur via ntg-context wrote:

Hi,
How to fix the small problem in the code below where the text goes out 
of the frame ?

Thanks
Fabrice

\usecolors[x11]

\starttext
   \startframedtext[frame=off,width=\textwidth, 
align={broad,right},indenting={yes},background=color,backgroundcolor=navajowhite1]

       \startitemize[columns,three,n]
         \startitem
          Une quantité constante est une quantité déterminée, qui 
conserve toujours la même valeur.

         \stopitem\par
         \startitem
           Une quantité variable est une quantité indéterminée, ou, si 
l'on veut, une quantité universelle, qui comprend toutes les valeurs 
déterminées.

         \stopitem\par
         \startitem
           Une quantité variable devient déterminée, lorsqu'on lui 
attribue une valeur déterminée quelconque.

         \stopitem\par
         \startitem
           Une fonction de quantité variable est une expression 
analytique composée, de quelque manière que ce soit, de cette même 
quantité & de nombres, ou de quantités constantes.


           Par exemple, \m{a+3z} ; \m{az-4zz} ;

           \m{az+b\sqrt{aa-zz}} , cz ; \m{etc}. sont des

           fonctions de \m{z}.
         \stopitem\par
         \startitem
           Une fonction de variable est

           donc aussi une quantité variable.
         \stopitem\par
       \stopitemize
     \stopframedtext
\stoptext1
columns and framedtext etc kind of interfere here so the solution space 
becomes small


the best i can come up with now is:

\setupmixedcolumns[itemgroupcolumns][method=box,maxwidth=\availablehsize]
\startitemize[columns,three,n]
\setupalign[flushleft,broad,verytolerant,extremestretch]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Framedtext : text out of frame

2021-09-26 Thread Fabrice Couvreur via ntg-context
Hi,
How to fix the small problem in the code below where the text goes out of
the frame ?
Thanks
Fabrice

\usecolors[x11]

\starttext
  \startframedtext[frame=off,width=\textwidth,
align={broad,right},indenting={yes},background=color,backgroundcolor=navajowhite1]
  \startitemize[columns,three,n]
\startitem
 Une quantité constante est une quantité déterminée, qui conserve
toujours la même valeur.
\stopitem\par
\startitem
  Une quantité variable est une quantité indéterminée, ou, si l'on
veut, une quantité universelle, qui comprend toutes les valeurs déterminées.
\stopitem\par
\startitem
  Une quantité variable devient déterminée, lorsqu'on lui attribue
une valeur déterminée quelconque.
\stopitem\par
\startitem
  Une fonction de quantité variable est une expression analytique
composée, de quelque manière que ce soit, de cette même quantité & de
nombres, ou de quantités constantes.

  Par exemple, \m{a+3z} ; \m{az-4zz} ;

  \m{az+b\sqrt{aa-zz}} , cz ; \m{etc}. sont des

  fonctions de \m{z}.
\stopitem\par
\startitem
  Une fonction de variable est

  donc aussi une quantité variable.
\stopitem\par
  \stopitemize
\stopframedtext
\stoptext1
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Rik Kabel


On 11/30/2020 15:05, Wolfgang Schuster wrote:

Rik Kabel schrieb am 30.11.2020 um 18:15:

On 11/29/2020 17:15, Hans Hagen wrote:

On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt  ver: 2020.11.28 13:18 LMTX  fmt: 2020.11.29 the 
*\framedtext* output is consistently *0.8\textwidth*. MkiV gives 
the expected result.


    \starttext
    \framedtext{Fail}\par
    \framedtext[width=fit]{Fail}\par
    \framedtext[width=3cm]{Fail}\par
    \framedtext[width=0.8\textwidth]{Fine by accident}\par
    \framedtext[width=\textwidth]{Fail}\par
    \framed{Fine}\par
    \framed[width=fit]{Fine}\par
    \framed[width=3cm]{Fine}\par
    \framed[width=0.8\textwidth]{Fine}\par
    \framed[width=\textwidth]{Fine}\par
    \stoptext

fixed in next upload (tomorrow)




Sadly, *\framedtext* still appears to have a problem with the default 
width, although with today's update one can now explicitly set the 
width. (Nothing I can find in the docs suggests that *\framedtext* 
has a different default width than *\framed*. Perhaps I missed it.)




There is nothing wrong with framedtext, the command always used a 
fixed width as default setting.


Wolfgang



Wikified.


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Wolfgang Schuster

Rik Kabel schrieb am 30.11.2020 um 18:15:

On 11/29/2020 17:15, Hans Hagen wrote:

On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt  ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the 
*\framedtext* output is consistently *0.8\textwidth*. MkiV gives the 
expected result.


    \starttext
    \framedtext{Fail}\par
    \framedtext[width=fit]{Fail}\par
    \framedtext[width=3cm]{Fail}\par
    \framedtext[width=0.8\textwidth]{Fine by accident}\par
    \framedtext[width=\textwidth]{Fail}\par
    \framed{Fine}\par
    \framed[width=fit]{Fine}\par
    \framed[width=3cm]{Fine}\par
    \framed[width=0.8\textwidth]{Fine}\par
    \framed[width=\textwidth]{Fine}\par
    \stoptext

fixed in next upload (tomorrow)




Sadly, *\framedtext* still appears to have a problem with the default 
width, although with today's update one can now explicitly set the 
width. (Nothing I can find in the docs suggests that *\framedtext* has 
a different default width than *\framed*. Perhaps I missed it.)




There is nothing wrong with framedtext, the command always used a fixed 
width as default setting.


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-30 Thread Rik Kabel


On 11/29/2020 17:15, Hans Hagen wrote:

On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt  ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the 
*\framedtext* output is consistently *0.8\textwidth*. MkiV gives the 
expected result.


    \starttext
    \framedtext{Fail}\par
    \framedtext[width=fit]{Fail}\par
    \framedtext[width=3cm]{Fail}\par
    \framedtext[width=0.8\textwidth]{Fine by accident}\par
    \framedtext[width=\textwidth]{Fail}\par
    \framed{Fine}\par
    \framed[width=fit]{Fine}\par
    \framed[width=3cm]{Fine}\par
    \framed[width=0.8\textwidth]{Fine}\par
    \framed[width=\textwidth]{Fine}\par
    \stoptext

fixed in next upload (tomorrow)




Sadly, *\framedtext* still appears to have a problem with the default 
width, although with today's update one can now explicitly set the 
width. (Nothing I can find in the docs suggests that *\framedtext* has a 
different default width than *\framed*. Perhaps I missed it.)


New overwrought example:

   \definelayer  [HRule]
   [x=0mm,y=0pt,width=\textwidth,height=\textheight]
   \setlayer [HRule]
  [hoffset=0pt,voffset=10em]
   {\blackrule[color=green,height=1pt,width=10cm]}
   %setupframedtext  [offset=0pt]
   \definelayer  [VRule]
   [x=0mm,y=0pt,width=\textwidth,height=\textheight]
   \setlayer [VRule]
  [hoffset=0.75\textwidth,voffset=0pt]
  {\blackrule[color=red,height=10em,width=1pt]}
   \setupbackgrounds [text]
  [background={HRule,VRule}]
   \setupframedtext  [offset=0pt]
   \starttext
   \framed{default width for \tex{framed} is {\tt fit}}\par
   \framedtext{default width for \tex{framedtext} is not {\tt fit}. It
   appears to be 0.75\tex{textwidth}}\par
   \framedtext[width=10cm]{explicit width for \tex{framedtext} now
   works}\par
   \framedtext[width=fit]{{\tt fit} width for \tex{framedtext} now
   works}\par
   \stoptext

--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] framedtext is (still) broken in LMTX

2020-11-29 Thread Hans Hagen

On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt  ver: 2020.11.28 13:18 LMTX  fmt: 2020.11.29 the 
*\framedtext* output is consistently *0.8\textwidth*. MkiV gives the 
expected result.


\starttext
\framedtext{Fail}\par
\framedtext[width=fit]{Fail}\par
\framedtext[width=3cm]{Fail}\par
\framedtext[width=0.8\textwidth]{Fine by accident}\par
\framedtext[width=\textwidth]{Fail}\par
\framed{Fine}\par
\framed[width=fit]{Fine}\par
\framed[width=3cm]{Fine}\par
\framed[width=0.8\textwidth]{Fine}\par
\framed[width=\textwidth]{Fine}\par
\stoptext

fixed in next upload (tomorrow)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] framedtext is (still) broken in LMTX

2020-11-29 Thread Rik Kabel
With ConTeXt  ver: 2020.11.28 13:18 LMTX  fmt: 2020.11.29 the 
*\framedtext* output is consistently *0.8\textwidth*. MkiV gives the 
expected result.


   \starttext
   \framedtext{Fail}\par
   \framedtext[width=fit]{Fail}\par
   \framedtext[width=3cm]{Fail}\par
   \framedtext[width=0.8\textwidth]{Fine by accident}\par
   \framedtext[width=\textwidth]{Fail}\par
   \framed{Fine}\par
   \framed[width=fit]{Fine}\par
   \framed[width=3cm]{Fine}\par
   \framed[width=0.8\textwidth]{Fine}\par
   \framed[width=\textwidth]{Fine}\par
   \stoptext


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Framedtext in a float

2016-11-05 Thread Wolfgang Schuster

Fabrice Couvreur 
1. November 2016 um 12:09
Okay, so to change locally, I do this:


\placerecipe{}{
\setupframedtexts[MyFrame][width=10cm]
\startMyFrame[Title=One]

You can set the width with \startMyFrame, e.g.

\startMyFrame[Title=One,width=10cm]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-05 Thread Alan Braslau
Sounds something like how PowerPoint works (but adjusting point size to fit a 
frame...).

Alan

> On 1 Nov 2016, at 04:17, Piotr Kopszak  wrote:
> 
> You mean, you effectively want ConTeXt to choose best proportions for
> the framed text on its own? I guess very few designers would agree for
> that, if any.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
Okay, so to change locally, I do this :


\placerecipe{}{
\setupframedtexts[MyFrame][width=10cm]
\startMyFrame[Title=One]

  \stopMyFrame}
  \placerecipe{}{
\setupframedtexts[MyFrame][width=8cm]
\startMyFrame[Title=Two]

  \stopMyFrame}
  \placerecipe{}{
\startMyFrame[Title=Three]

  \stopMyFrame}

2016-11-01 11:17 GMT+01:00 Piotr Kopszak :

> You mean, you effectively want ConTeXt to choose best proportions for
> the framed text on its own? I guess very few designers would agree for
> that, if any.
>
> 2016-11-01 10:47 GMT+01:00 Fabrice Couvreur :
> > Hello,
> > The option align = tolerant rule one of the problems I may encounter.
> But I
> > wonder if it's possible that I should not choose myself width = 6cm to
> fit
> > the text. If I have to use the command several times with different
> content,
> > how make ?
> > Thank you
> > Fabrice
> >
> > 2016-11-01 9:23 GMT+01:00 Piotr Kopszak :
> >>
> >> Just use
> >> ...
> >> \startMyFrame[Title=Info]
> >> \setupalign[hyphenated,morehyphenation,verytolerant]
> >> ...
> >>
> >> Piotr
> >>
> >> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur  >:
> >> > Hello,
> >> > How to make the width of framedtext automatically adapts to its
> >> > contents.
> >> > Fabrice
> >> >
> >> > \definefloat
> >> >[recipe]
> >> >[figure]
> >> >
> >> > \setupfloat
> >> >[recipe]
> >> >[default={right,none}]
> >> >
> >> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> >> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
> >> >
> >> >
> >> > \defineframedtext
> >> >   [MyFrame]
> >> >   [before={\blank},
> >> >after={\blank},
> >> >frame=off,
> >> >background=MyFrame,
> >> >width=6cm,
> >> >height=fit]
> >> >
> >> > \startuseMPgraphic{MyFrame}
> >> >  path b;
> >> >  picture p;
> >> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
> >> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
> >> > p+.25ExHeight);
> >> >  b := boundingbox p enlarged .3EmWidth ;
> >> >  fill OverlayBox withcolor \MPcolor{MyColorA};
> >> >  fill b withcolor \MPcolor{MyColorB} ;
> >> >  draw p ;
> >> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> >> > \stopuseMPgraphic
> >> >
> >> > \defineoverlay
> >> >   [MyFrame]
> >> >   [\useMPgraphic{MyFrame}]
> >> >
> >> >   \starttext
> >> >
> >> >   \placerecipe{}{
> >> >   \startMyFrame[Title=Info]
> >> >   L'histogramme est constitué de rectangles dont les bases
> correspondent
> >> > aux
> >> > classes et dont les aires sont proportionnelles aux effectifs ou
> >> > fréquences
> >> > des classes.
> >> >   \stopMyFrame}
> >> >
> >> >   \input Knuth
> >> >
> >> >   \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://context.aanhet.net
> >> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> >> > wiki : http://contextgarden.net
> >> >
> >> > 
> ___
> >>
> >>
> >>
> >> --
> >> 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://context.aanhet.net
> >> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >> 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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > 
> ___
>
>
>
> --
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : 

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
You mean, you effectively want ConTeXt to choose best proportions for
the framed text on its own? I guess very few designers would agree for
that, if any.

2016-11-01 10:47 GMT+01:00 Fabrice Couvreur :
> Hello,
> The option align = tolerant rule one of the problems I may encounter. But I
> wonder if it's possible that I should not choose myself width = 6cm to fit
> the text. If I have to use the command several times with different content,
> how make ?
> Thank you
> Fabrice
>
> 2016-11-01 9:23 GMT+01:00 Piotr Kopszak :
>>
>> Just use
>> ...
>> \startMyFrame[Title=Info]
>> \setupalign[hyphenated,morehyphenation,verytolerant]
>> ...
>>
>> Piotr
>>
>> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur :
>> > Hello,
>> > How to make the width of framedtext automatically adapts to its
>> > contents.
>> > Fabrice
>> >
>> > \definefloat
>> >[recipe]
>> >[figure]
>> >
>> > \setupfloat
>> >[recipe]
>> >[default={right,none}]
>> >
>> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
>> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>> >
>> >
>> > \defineframedtext
>> >   [MyFrame]
>> >   [before={\blank},
>> >after={\blank},
>> >frame=off,
>> >background=MyFrame,
>> >width=6cm,
>> >height=fit]
>> >
>> > \startuseMPgraphic{MyFrame}
>> >  path b;
>> >  picture p;
>> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
>> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
>> > p+.25ExHeight);
>> >  b := boundingbox p enlarged .3EmWidth ;
>> >  fill OverlayBox withcolor \MPcolor{MyColorA};
>> >  fill b withcolor \MPcolor{MyColorB} ;
>> >  draw p ;
>> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
>> > \stopuseMPgraphic
>> >
>> > \defineoverlay
>> >   [MyFrame]
>> >   [\useMPgraphic{MyFrame}]
>> >
>> >   \starttext
>> >
>> >   \placerecipe{}{
>> >   \startMyFrame[Title=Info]
>> >   L'histogramme est constitué de rectangles dont les bases correspondent
>> > aux
>> > classes et dont les aires sont proportionnelles aux effectifs ou
>> > fréquences
>> > des classes.
>> >   \stopMyFrame}
>> >
>> >   \input Knuth
>> >
>> >   \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://context.aanhet.net
>> > archive  : https://bitbucket.org/phg/context-mirror/commits/
>> > wiki : http://contextgarden.net
>> >
>> > ___
>>
>>
>>
>> --
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___



-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
Hello,
The option align = tolerant rule one of the problems I may encounter.
But I wonder
if it's possible that I should not choose myself width = 6cm to fit the
text. If I have to use the command several times with different content,
how make ?
Thank you
Fabrice

2016-11-01 9:23 GMT+01:00 Piotr Kopszak :

> Just use
> ...
> \startMyFrame[Title=Info]
> \setupalign[hyphenated,morehyphenation,verytolerant]
> ...
>
> Piotr
>
> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur :
> > Hello,
> > How to make the width of framedtext automatically adapts to its contents.
> > Fabrice
> >
> > \definefloat
> >[recipe]
> >[figure]
> >
> > \setupfloat
> >[recipe]
> >[default={right,none}]
> >
> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
> >
> >
> > \defineframedtext
> >   [MyFrame]
> >   [before={\blank},
> >after={\blank},
> >frame=off,
> >background=MyFrame,
> >width=6cm,
> >height=fit]
> >
> > \startuseMPgraphic{MyFrame}
> >  path b;
> >  picture p;
> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
> p+.25ExHeight);
> >  b := boundingbox p enlarged .3EmWidth ;
> >  fill OverlayBox withcolor \MPcolor{MyColorA};
> >  fill b withcolor \MPcolor{MyColorB} ;
> >  draw p ;
> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> > \stopuseMPgraphic
> >
> > \defineoverlay
> >   [MyFrame]
> >   [\useMPgraphic{MyFrame}]
> >
> >   \starttext
> >
> >   \placerecipe{}{
> >   \startMyFrame[Title=Info]
> >   L'histogramme est constitué de rectangles dont les bases correspondent
> aux
> > classes et dont les aires sont proportionnelles aux effectifs ou
> fréquences
> > des classes.
> >   \stopMyFrame}
> >
> >   \input Knuth
> >
> >   \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://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > 
> ___
>
>
>
> --
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Piotr Kopszak
Just use
...
\startMyFrame[Title=Info]
\setupalign[hyphenated,morehyphenation,verytolerant]
...

Piotr

2016-11-01 0:12 GMT+01:00 Fabrice Couvreur :
> Hello,
> How to make the width of framedtext automatically adapts to its contents.
> Fabrice
>
> \definefloat
>[recipe]
>[figure]
>
> \setupfloat
>[recipe]
>[default={right,none}]
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
>
> \defineframedtext
>   [MyFrame]
>   [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=6cm,
>height=fit]
>
> \startuseMPgraphic{MyFrame}
>  path b;
>  picture p;
>  p := textext.rt("\tfx\white\framedtextparameter{Title}");
>  p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
>  b := boundingbox p enlarged .3EmWidth ;
>  fill OverlayBox withcolor \MPcolor{MyColorA};
>  fill b withcolor \MPcolor{MyColorB} ;
>  draw p ;
>  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> \stopuseMPgraphic
>
> \defineoverlay
>   [MyFrame]
>   [\useMPgraphic{MyFrame}]
>
>   \starttext
>
>   \placerecipe{}{
>   \startMyFrame[Title=Info]
>   L'histogramme est constitué de rectangles dont les bases correspondent aux
> classes et dont les aires sont proportionnelles aux effectifs ou fréquences
> des classes.
>   \stopMyFrame}
>
>   \input Knuth
>
>   \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___



-- 
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Marco Patzer
On Tue, 1 Nov 2016 00:12:37 +0100
Fabrice Couvreur  wrote:

> How to make the width of framedtext automatically adapts to its
> contents.
> 
> […]
> 
> \defineframedtext
>   [MyFrame]
>   [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=6cm,
   align=tolerant,
>height=fit]
> 
> […]

You can use \showframe to visualise the frames and check what's
going on.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Framedtext in a float

2016-10-31 Thread Fabrice Couvreur
Hello,
How to make the width of framedtext automatically adapts to its contents.
Fabrice

\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]

\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]


\defineframedtext
  [MyFrame]
  [before={\blank},
   after={\blank},
   frame=off,
   background=MyFrame,
   width=6cm,
   height=fit]

\startuseMPgraphic{MyFrame}
 path b;
 picture p;
 p := textext.rt("\tfx\white\framedtextparameter{Title}");
 p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
 b := boundingbox p enlarged .3EmWidth ;
 fill OverlayBox withcolor \MPcolor{MyColorA};
 fill b withcolor \MPcolor{MyColorB} ;
 draw p ;
 setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
\stopuseMPgraphic

\defineoverlay
  [MyFrame]
  [\useMPgraphic{MyFrame}]

  \starttext

  \placerecipe{}{
  \startMyFrame[Title=Info]
  L'histogramme est constitué de rectangles dont les bases correspondent
aux classes et dont les aires sont proportionnelles aux effectifs ou
fréquences des classes.
  \stopMyFrame}

  \input Knuth

  \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] framedtext

2016-04-11 Thread Meer, Hans van der
Wolfgang, Hans,
Thanks for your explanations.
Hans van der Meer

On 11 Apr 2016, at 19:10, Wolfgang Schuster 
> wrote:

Meer, Hans van der
11. April 2016 um 18:49


Could be of course. But the question is: from where the counterintuitive 
behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)
It’s easy to explain on the following example.

 begin example
\starttext

\hfil Text\hfil

\hfill Text\hfill

\stoptext
 end example

At the end of a paragraph TeX removes the last skip and inserts the 
\parskipfill [1] value which is by default "0pt plus 1fil".

For the first text line this results in the expected output but not for the 
second line because the inserted “fil” is smaller than the needed “fill”. You 
can check this when you change the \parskipfill stretchability from fil to fill:

 begin example
\starttext

\hfill Text\hfill

\start \parfillskip = 0pt plus 1 fill
\hfill Text\hfill \par
\stop

\stoptext
 end example

[1] https://www.tug.org/utilities/plain/cseq.html#parfillskip-rp

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
___

met vriendelijke groet
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] framedtext

2016-04-11 Thread Wolfgang Schuster

Meer, Hans van der 
11. April 2016 um 18:49


Could be of course. But the question is: from where the 
counterintuitive behavioud of \hfil and \hfil?

It is my nature to be not satisfied until I know ;-)

It's easy to explain on the following example.

 begin example
\starttext

\hfil Text\hfil

\hfill Text\hfill

\stoptext
 end example

At the end of a paragraph TeX removes the last skip and inserts the 
\parskipfill [1] value which is by default "0pt plus 1fil".


For the first text line this results in the expected output but not for 
the second line because the inserted "fil" is smaller than the needed 
"fill". You can check this when you change the \parskipfill 
stretchability from fil to fill:


 begin example
\starttext

\hfill Text\hfill

\start \parfillskip = 0pt plus 1 fill
\hfill Text\hfill \par
\stop

\stoptext
 end example

[1] https://www.tug.org/utilities/plain/cseq.html#parfillskip-rp

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] framedtext

2016-04-11 Thread Hans Hagen

On 4/11/2016 6:49 PM, Meer, Hans van der wrote:



On 11 Apr 2016, at 18:13, Alan BRASLAU > wrote:

Would it not be better to use ConTeXt alignment, rather than the TeX
primitives \hfil and \hfill?

\startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft]
left
\stopframedtext


Could be of course. But the question is: from where the counterintuitive
behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)


because internally the framed align can inject \hfil \hfill \hss or 
whatever was decided best ... it's already complex enough to write 
macros like \framed that adapt to all cases users throw at it so the 
options (like align) are there for a reason


if you don't want that you need to wrap your stuff in a box in which 
case you can do inside that box what you like


Hans

(you can use \showmakeup to see what is in a \framed box)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] framedtext

2016-04-11 Thread Meer, Hans van der

On 11 Apr 2016, at 18:13, Alan BRASLAU 
> wrote:

Would it not be better to use ConTeXt alignment, rather than the TeX
primitives \hfil and \hfill?

\startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft]
left
\stopframedtext

Could be of course. But the question is: from where the counterintuitive 
behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)

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] framedtext

2016-04-11 Thread Alan BRASLAU
Would it not be better to use ConTeXt alignment, rather than the TeX
primitives \hfil and \hfill?

\starttext

\startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft]
left
\stopframedtext

\startframedtext[middle][frame=on,offset=0pt,width=broad,align=middle]
centered
\stopframedtext

\startframedtext[right][frame=on,offset=0pt,width=broad,align=flushright]
right
\stopframedtext

\stoptext





On Mon, 11 Apr 2016 13:28:47 +0300
Mari Voipio  wrote:

> On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der
>  wrote:
> 
> > \startframedtext[middle][frame=on,offset=0pt,width=broad]
> > \hfil centered\hfil
> > \stopframedtext
> > \startframedtext[middle][frame=on,offset=0pt,width=broad]
> > \hfill centered\hfill
> > \stopframedtext
> 
> One has \hfil with one l and the other has \hfill with two l:s. \hfil
> with one l seems to produce centering, while \hfill with two l:s makes
> the text end up on the right.
> 
> Don't know if this is a feature or a bug, but this is the reason to
> why those lines differ.

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

2016-04-11 Thread Meer, Hans van der

> On 11 Apr 2016, at 12:28, Mari Voipio  wrote:
>
> On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der  
> wrote:
>
>> \startframedtext[middle][frame=on,offset=0pt,width=broad]
>> \hfil centered\hfil
>> \stopframedtext
>> \startframedtext[middle][frame=on,offset=0pt,width=broad]
>> \hfill centered\hfill
>> \stopframedtext
>
> One has \hfil with one l and the other has \hfill with two l:s. \hfil
> with one l seems to produce centering, while \hfill with two l:s makes
> the text end up on the right.
>
> Don't know if this is a feature or a bug, but this is the reason to
> why those lines differ.

Indeed, but that is just what puzzles me and why I posted my question.
\hfill is stronger than \hfil and thus it seems all the more strange that the 
left and right \hfill do not produce the same centering as the \hfil's do.

Hans van der Meer





framedtext-middle.pdf
Description: framedtext-middle.pdf
___
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] framedtext

2016-04-11 Thread Mari Voipio
On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der  wrote:

> \startframedtext[middle][frame=on,offset=0pt,width=broad]
> \hfil centered\hfil
> \stopframedtext
> \startframedtext[middle][frame=on,offset=0pt,width=broad]
> \hfill centered\hfill
> \stopframedtext

One has \hfil with one l and the other has \hfill with two l:s. \hfil
with one l seems to produce centering, while \hfill with two l:s makes
the text end up on the right.

Don't know if this is a feature or a bug, but this is the reason to
why those lines differ.



Mari
___
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] framedtext

2016-04-11 Thread Meer, Hans van der
I am getting an unexpected results with framedtexts.Why is the second 
"centered" not centered?

\starttext
\startframedtext[left][frame=on,offset=0pt,width=broad]
left\hfill
\stopframedtext
\startframedtext[middle][frame=on,offset=0pt,width=broad]
\hfil centered\hfil
\stopframedtext
\startframedtext[middle][frame=on,offset=0pt,width=broad]
\hfill centered\hfill
\stopframedtext
\startframedtext[right][frame=on,offset=0pt,width=broad]
\hfill right
\stopframedtext
\startframedtext[none][frame=on,offset=0pt,width=broad]
none
\stopframedtext
\stoptext

This is LuaTeX, Version beta-0.90.0 (TeX Live 2016)
ConTeXt  ver: 2016.04.01 13:01 MKIV beta  fmt: 2016.4.5  int: english/english

Hans van der Meer





framedtext-middle.pdf
Description: framedtext-middle.pdf
___
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] framedtext and itemize

2014-07-22 Thread Meer, H. van der
I have a question regarding the interplay between framedtext and itemize.

Example
\startitemize[n]\startitem
\startframedtext[left][width=0.5\textwidth]\leavevmode
   some text
\stopframedtext
\stopitem\stopitemize

The framedtext is put on the next line instead of on the first of the item.
[cid:3B8394EB-ADB8-4DA9-9E09-6ACFB9389BB4]
How do I get here the top frameline of the framedtext aligned with the 1. of 
the itemnumber? Playing with the location-parameter on the \startframedtext 
doesn't seem to make any difference. Especially I would like the baseline of 
the  first line inside the framed text to be at the same level as the itemlabel.

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] framedtext and itemize

2014-07-22 Thread Otared Kavian
Hi,

Maybe you want something like this:

\starttext
\startitemize[n]
\setlocalhsize
\item \framed[width=\localhsize,align=right]{Some text.}
\item \startframed[width=\localhsize,align=right] Some text. \stopframed
\stopitemize
\stoptext

Best regards: OK

On 22 Jul 2014, at 12:05, Meer, H. van der h.vanderm...@uva.nl wrote:

 I have a question regarding the interplay between framedtext and itemize.
 
 Example
 \startitemize[n]\startitem
 \startframedtext[left][width=0.5\textwidth]\leavevmode
some text
 \stopframedtext
 \stopitem\stopitemize
 
 The framedtext is put on the next line instead of on the first of the item.
 notframed.jpg
 How do I get here the top frameline of the framedtext aligned with the 1. of 
 the itemnumber? Playing with the location-parameter on the \startframedtext 
 doesn't seem to make any difference. Especially I would like the baseline of 
 the  first line inside the framed text to be at the same level as the 
 itemlabel.
 
 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
 ___

___
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] framedtext and itemize

2014-07-22 Thread Herbert Voss
Am 22.07.2014 16:12, schrieb Otared Kavian:

 Maybe you want something like this:
 
 \starttext
 \startitemize[n]
 \setlocalhsize
 \item \framed[width=\localhsize,align=right]{Some text.}
 \item \startframed[width=\localhsize,align=right] Some text. \stopframed
 \stopitemize
 \stoptext

or

\item \inframed[width=\localhsize,align=right]{Some text.}


Herbert


___
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] framedtext and margin

2013-03-20 Thread H. van der Meer
As can be seen in the following example, within an itemized list the framedtext sticks out to the right, instead of having its right edge aligned with the outer ones.Is there a simple remedy or is it an unwanted effect?I would like the right edges line up perfectly.
Hans van der Meer

\starttext\startframedtext[width=local]\input tufte\stopframedtextBefore list.\startitemize\startitem item one\stopitem\startitem item two\startframedtext[width=local]\input tufte\stopframedtext\stopitem\startitem item three\stopitem\stopitemizeAfter list.\startframedtext[width=local]\input tufte\stopframedtext\stoptext

frameplace.pdf
Description: Adobe PDF document
___
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] framedtext and margin

2013-03-20 Thread Wolfgang Schuster

Am 20.03.2013 um 19:29 schrieb H. van der Meer h.vanderm...@uva.nl:

 As can be seen in the following example, within an itemized list the 
 framedtext sticks out to the right, instead of having its right edge aligned 
 with the outer ones.
 Is there a simple remedy or is it an unwanted effect?
 I would like the right edges line up perfectly.

This was fixed a few days ago.

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] framedtext and margin

2013-03-20 Thread Meer H. van der
Immediately downloaded the latest beta. 
Great! And just in time. 
Works not only in my minimal example, but even in the more complex environment 
in which I am using it.

Hans van der Meer



On 20 mrt. 2013, at 19:35, Wolfgang Schuster schuster.wolfg...@gmail.com
 wrote:

 
 Am 20.03.2013 um 19:29 schrieb H. van der Meer h.vanderm...@uva.nl:
 
 As can be seen in the following example, within an itemized list the 
 framedtext sticks out to the right, instead of having its right edge aligned 
 with the outer ones.
 Is there a simple remedy or is it an unwanted effect?
 I would like the right edges line up perfectly.
 
 This was fixed a few days ago.
 
 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
 ___

___
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] framedtext in itemize

2012-01-04 Thread Hans van der Meer
Why does framedtext extends to the right in \itemize? Shouldn't the width be 
reduced by the extend of the item-shift? Isn't that the idea behind the 
fit-parameter.

It wouldn't be a problem to calculate a reduced width, but how can I access the 
marginshift caused by the item?

A minimal example:

\starttext
\startitemize[a]
\item \startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\item \input tufte
\stopitemize
\startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\stoptext

Hans van der Meer



itemize-frame.pdf
Description: Adobe PDF document

___
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] framedtext in itemize

2012-01-04 Thread Wolfgang Schuster

Am 04.01.2012 um 16:25 schrieb Hans van der Meer:

 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?

Use “width=local”.

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] framedtext in itemize

2012-01-04 Thread Meer, H. van der
That is it! Thanks.

Hans van der Meer


On 4 jan. 2012, at 17:09, Wolfgang Schuster wrote:

 
 Am 04.01.2012 um 16:25 schrieb Hans van der Meer:
 
 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?
 
 Use “width=local”.
 
 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
___


[NTG-context] \framedtext vs. \framed in columns

2010-03-23 Thread Andreas Harder
Hi all,

pleas have a look at the following example

\setuplayout[grid=yes]

\starttext
\startcolumns
  \input tufte \par \input tufte \par
  \startframedtext[width=broad] % ,location=high
\input tufte \par
  \stopframedtext
\stopcolumns
\page
\startcolumns
  \input tufte \par \input tufte \par
  \framed[align=normal,width=broad]{\input tufte \par}
\stopcolumns
\stoptext

shouldn't location=high be the default behaviour?

Greeting
Andreas
___
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] framedtext

2010-03-23 Thread Hans van der Meer
I experience the following behaviour of framedtext in relation to  
inright and inleft.
With \startframedtext[offset=value] the positioning of left and right  
margin inserts shifts with the size of 'value'.


The next example shows the shift to the right of L2 and R2 (both mkii  
and mkiv). Change the offset to see the margin notes L2/R2 shift.

\starttext
\showframe[text,margin,edge]
ABC
\inright{\framed[width=10mm,height=5mm]{R1}}
\inleft{\framed[width=10mm,height=5mm]{L1}}
\startframedtext[offset=2cm]
XYZ
\inright{\framed[width=10mm,height=5mm]{R2}}
\inleft{\framed[width=10mm,height=5mm]{L2}}
\stopframedtext
\stoptext

Pictured:
..L1.|...|.R1
.|.L2|.R2
.|...|
.^...^
^ = frame lines of showpage

I wonder if this is correct behaviour. The margins are imho fixed  
areas, defined as the areas on the left/right of the textframe. One  
would expect the margin texts put just there, not influenced by  
something that happens to be placed in the text.

Or am I amiss?

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] framedtext

2010-03-23 Thread Hans Hagen

On 23-3-2010 13:34, Hans van der Meer wrote:

I experience the following behaviour of framedtext in relation to
inright and inleft.
With \startframedtext[offset=value] the positioning of left and right
margin inserts shifts with the size of 'value'.

The next example shows the shift to the right of L2 and R2 (both mkii
and mkiv). Change the offset to see the margin notes L2/R2 shift.
\starttext
\showframe[text,margin,edge]
ABC
\inright{\framed[width=10mm,height=5mm]{R1}}
\inleft{\framed[width=10mm,height=5mm]{L1}}
\startframedtext[offset=2cm]
XYZ
\inright{\framed[width=10mm,height=5mm]{R2}}
\inleft{\framed[width=10mm,height=5mm]{L2}}
\stopframedtext
\stoptext

Pictured:
...L1.|...|.R1
..|.L2|.R2
..|...|
..^...^
^ = frame lines of showpage

I wonder if this is correct behaviour. The margins are imho fixed areas,
defined as the areas on the left/right of the textframe. One would
expect the margin texts put just there, not influenced by something that
happens to be placed in the text.
Or am I amiss?


indeed ... inleft and inright use vadjust and that is somewhat special

i will come up with an alternative in mkiv

maybe \margintitle{...} works ok (delays till a paragraph)


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


Re: [NTG-context] framedtext in naturaltables

2009-10-02 Thread Xan

En/na Wolfgang Schuster ha escrit:


Am 30.09.2009 um 21:22 schrieb Xan:


Hi,

If I put 
\startframedtext[frame=off,background=screen,width=broad]\stopframedtext 
in naturaltable, then I get that framed text passes table and that it 
aligns at top.


Can you say me please how to get a right behaviour?


\startframedtext[location=top,frame=off,background=screen,width=\dimexpr\hsize-\itemgrouplistwidth\relax] 



or better

\defineframedtext
  [tableframed]
  [location=top,
   frame=off,
   background=color, % screen works only with mkii but color with mkii 
and mkiv

   backgroundcolor=gray
   width=\dimexpr\hsize-\itemgrouplistwidth\relax]

\bTD\starttableframed ... \stoptableframed\eTD

Wolfgang


It does not work:

duplicate reference [][fig:smiley-semblants] on page 3 (copia
-de-T1-Estructura-Externa-Terra-Roques-i-Minerals)
) (/usr/share/texmf/tex/context/base/pdfr-def.tex)
systems : begin file 
copia-de-T1-Estructura-Externa-Terra-Roques-i-Mine

rals at line 122
! Undefined control sequence.
\@@kdframedtextwidth ...size -\itemgrouplistwidth

\startlocalframed ...h {\framedparameter \c!width
 }\edef \localheight 
{\fram...


\dododostartframedtext ...#1][\c!strut =\v!no ,#3]
 \bgroup \let 
\\=\endgraf \...

to be read again
  {
argument ...expr \hsize -\itemgrouplistwidth ] {
 \bf \em Estructura 
interna...


\handleTBLcell ...{\bTBLCELL \TBLcharalign {#2}{#4
 }\eTBLCELL \inTBLcell 
{#1}...

...
l.257 \eTABLE
}
?


at least in MKII.


I attached the whole file.

Thanks a lot,
Xan.
% interface=en output=pdftex

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,10pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
\setuplayout[topspace=1.5cm,margin=1.5cm,header=0.8cm,footer=1.5cm,width=fit,height=fit,backspace=1.7cm]


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]

% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\ssbfc}, header=nomarking]
\setuphead[subsection][style={\ssbfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
%\usemodule[bib]
%\usemodule[bibltx]
%\setupbibtex[database=funcions,sort=author]
%\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=all]%
%\setupheadtext[ca][pubs=Referències]
%\setuppublicationlist[authoretallimit=3]
%\setuppublicationlist[authoretaltext={\it\  et al.}]
%\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
%\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  
[text={Exercici},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx 4t DIVER CN. Tema 1 - Estructura Externa de la 
Terra}][{\tfx IES Binissalem. {\bf FULL 1}. \currentdate.}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}

Re: [NTG-context] framedtext in naturaltables

2009-10-02 Thread Xan

En/na Wolfgang Schuster ha escrit:


Am 02.10.2009 um 13:29 schrieb Xan:

If I put 
\startframedtext[frame=off,background=screen,width=broad]\stopframedtext 
in naturaltable, then I get that framed text passes table and that 
it aligns at top.


Can you say me please how to get a right behaviour?


\startframedtext[location=top,frame=off,background=screen,width=\dimexpr\hsize-\itemgrouplistwidth\relax] 




It does not work:


\itemgrouplistwidth is not defined in mkii, you could use a fixed 
value like 2em

to decrease the width of the framedtext

\startframedtext[..,width=\dimexpr\hsize-2em\relax,...]


It does not work at all. The bullet is at top of the framedtext.



@Hans: can you save the current width of the textarea in itemize in 
\localhsize so one can say 'width=\localhsize'


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
___


Re: [NTG-context] framedtext in naturaltables

2009-10-01 Thread luigi scarso
2009/9/30 Xan dxpubl...@telefonica.net

 Hi,

 If I put
 \startframedtext[frame=off,background=screen,width=broad]\stopframedtext
 in naturaltable, then I get that framed text passes table and that it aligns
 at top.

 Can you say me please how to get a right behaviour?

 no solution, sorry-- I will try it it this weekend.
-- 
luigi
___
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] framedtext in naturaltables

2009-10-01 Thread Wolfgang Schuster


Am 30.09.2009 um 21:22 schrieb Xan:


Hi,

If I put \startframedtext 
[frame=off,background=screen,width=broad]\stopframedtext in  
naturaltable, then I get that framed text passes table and that it  
aligns at top.


Can you say me please how to get a right behaviour?


\startframedtext[location=top,frame=off,background=screen,width= 
\dimexpr\hsize-\itemgrouplistwidth\relax]


or better

\defineframedtext
  [tableframed]
  [location=top,
   frame=off,
   background=color, % screen works only with mkii but color with  
mkii and mkiv

   backgroundcolor=gray
   width=\dimexpr\hsize-\itemgrouplistwidth\relax]

\bTD\starttableframed ... \stoptableframed\eTD

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
___


[NTG-context] framedtext in naturaltables

2009-09-30 Thread Xan

Hi,

If I put 
\startframedtext[frame=off,background=screen,width=broad]\stopframedtext 
in naturaltable, then I get that framed text passes table and that it 
aligns at top.


Can you say me please how to get a right behaviour?

An example:



\placefigure
 [here,none]
 [fig:taula-roques-i-minerals]
 {Característiques de roques i minerals}
 {\bTABLE[frame=off,align=middle]
\setupTABLE[1,2][1][leftframe=off,rightframe=off]
\setupTABLE[r][2][topframe=on,bottomframe=on]
\setupTABLE[c][1][rightframe=on]
\setupTABLE[c][2][leftframe=on]
\bTR[align=middle]
\bTD[align=middle]
{\sc {\blue{Minerals}}}
\eTD
\bTD[align=middle]
{\sc {\blue{Roques}}}
\eTD
\eTR
\bTR[align=middle]
\bTD[align=middle,nc=2]
{\sc Composició}:

Les roques i els minerals estan formats per {\em \bf matèria 
inorgànica}, que és diferent de la matèria que compon els éssers vius

\eTD
\eTR
\bTR[align=middle]
\bTD
{\sc Definició}:

Els minerals són materials terrestres que formen les roques. Un mineral 
es defineix com una substància:


\startitemize[1]
\item {\bf \em Sòlida}. L'estat físic que apareixen els materials ha de 
ser sòlid. Els gasos i l'aigua no són minerals.

\item {\bf \em Natural}. Els materials artificials no són minerals.
\item {\bf \em Inorgànica}. Els compostos que formen els minerals són 
aquells que formen la matèria que no està viva

\item \startframedtext[frame=off,background=screen,width=broad]
{\bf \em Estructura interna fixa i ordenada}. Les partícules que formen 
els minerals estan {\bf \em \red{ordenades}} i ocupen un {\bf \em 
\red{lloc fix}} a l'espai. Qualsevol mostra d'un mateix mineral sempre 
té la mateixa estructura.

\stopframedtext
\item {\bf \em Composició química determinada}. Tots els materials tenen 
una {\bf \em \red{fórmula química fixa}}. Un material sempre té la 
mateixa proporció de cada element que el forma.

\stopitemize

\eTD
\bTD
{\sc Definició}:

Una roca és un {\em \bf agregats} (unió) {\bf \em de minerals}. Poden 
estar formades per un sol mineral o per diversos minerals.


\startitemize[1]
\item
\stopitemize
\eTD
\eTR

\eTABLE}

___
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] Framedtext left/right offset?

2006-05-24 Thread Ehrt, Michael
Hi,

Is there a way to have 

\startcolumnsetspan[intro]
\startframedtext[frame=off,bottomframe=on,topframe=on,offset=1ex]
\it Some introduction text here
\stopframedtext
\stopcolumnsetspan

without the offset to the left and right? There's no frame drawn to the
left and right so I don't want the offset there. Since I couldn't find a
way to get rid of the offset I'm currently using

\startcolumnsetspan[intro]
\hrule\vskip1ex
\it \input knuth
\vskip1ex\hrule\crlf
\stopcolumnsetspan

I know that the use of \vskip is not recommended (according to the
manual), but this is the only way I found...

Cheers

Michael
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Framedtext width

2006-05-22 Thread nico
Hello,

Is there a way (magical option) to have the framedtext width adapt to the  
environment width where it is put?

I've tried width=broad, but it always uses the page \textwidth, even if  
the framedtext is in an item or something like this. There is the same  
behaviour for background too.

An example:

\setuplayout[middle]
\setupcolors[state=start]

\defineframedtext[mybox]
   [width=broad,
frame=on,
before=\blank,
after=\blank]

\starttext

Here is an example:

\startitemize[n]
\item
\input tufte

\startmybox
Some text in the box
\stopmybox

\input tufte
\stopitemize

\stoptext

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framedtext width

2006-05-22 Thread andrea valle
(Just to say it's a question I was going to post too)

-a-

On 22 May 2006, at 12:54, nico wrote:

 Hello,

 Is there a way (magical option) to have the framedtext width adapt to 
 the
 environment width where it is put?

 I've tried width=broad, but it always uses the page \textwidth, even if
 the framedtext is in an item or something like this. There is the same
 behaviour for background too.

 An example:

 \setuplayout[middle]
 \setupcolors[state=start]

 \defineframedtext[mybox]
[width=broad,
 frame=on,
 before=\blank,
 after=\blank]

 \starttext

 Here is an example:

 \startitemize[n]
 \item
 \input tufte

 \startmybox
 Some text in the box
 \stopmybox

 \input tufte
 \stopitemize

 \stoptext

 Regards,
 BG
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framedtext width

2006-05-22 Thread Taco Hoekwater


andrea valle wrote:
 (Just to say it's a question I was going to post too)
 
 -a-
 
 On 22 May 2006, at 12:54, nico wrote:
 
Hello,

Is there a way (magical option) to have the framedtext width adapt to 
the environment width where it is put?

\defineframedtext[mybox] [width=local]

Cheers, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framedtext width

2006-05-22 Thread andrea valle

On 22 May 2006, at 15:10, Taco Hoekwater wrote:

 \defineframedtext[mybox] [width=local]

Thanks Taco

Definitively, from now on this

\setupframedtexts[width=local]

will be in my preferites


-a-

Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framedtext width

2006-05-22 Thread Hans Hagen
nico wrote:
 Hello,

 Is there a way (magical option) to have the framedtext width adapt to the  
 environment width where it is put?

 I've tried width=broad, but it always uses the page \textwidth, even if  
 the framedtext is in an item or something like this. There is the same  
 behaviour for background too.

 An example:

 \setuplayout[middle]
 \setupcolors[state=start]

 \defineframedtext[mybox]
[width=broad,
 frame=on,
 before=\blank,
 after=\blank]

   
well, this is what 'local' is for:

\defineframedtext[mybox] [width=local,..]


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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framedtext width

2006-05-22 Thread Hans Hagen
Hans Hagen wrote:
 well, this is what 'local' is for:

 \defineframedtext[mybox] [width=local,..]
   
(i hit send button too soon -) 

here we can use a keyword but when no such option is present one can say: 

\setlocalhsize \hsize\localhsize 

as in: 

\start \setlocalhsize \hsize\localhsize whatever content \par \stop 


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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] framedtext white above

2006-02-20 Thread Taco Hoekwater


Hans van der Meer wrote:
 In framedtext I see some whitespace just below the topframe and the  
 first row of text.
 At the bottom this is not the case, the textbottom and framebottom  
 are close together.
 Here is a minimal example, the whitespace is just above the first row  
 of b's
 
 How can I get rid of the white on the top?

The explicit \crlf  includes a \strut on the first line.
You have to use the low-level \hfil\break instead.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] framedtext white above

2006-02-18 Thread Hans van der Meer
In framedtext I see some whitespace just below the topframe and the  
first row of text.
At the bottom this is not the case, the textbottom and framebottom  
are close together.
Here is a minimal example, the whitespace is just above the first row  
of b's

How can I get rid of the white on the top?

\starttext
\startframedtext[depthcorrection=off,offset=0pt,strut=no]%
bbb\crlf
bbb
\stopframedtext
\stoptext

depthcorrection does the trick for the bottom.
I see no further changes when I add linecorrection=off too (not  
sure what it does).

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context