[NTG-context] framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
I have no problem of aligning two or more \framedtext boxes bottomwise on the 
baseline, nor centering them vertically within a \vcenter.
But I do not succeed in placing them with their top aligned without the 
following trick: typeset them in a box, determine largestheight and then 
typeset again each within: \vbox to largestheight and \vill'ed to the bottom.

All very well, but it is disastrous when there are side effects: twice 
typesetting then fails in some instances.
I hope I described the question sufficiently clear, because an MWE is not so 
minimal.

Therefore my question: how can I align two or more \framedtext's thus:

|--] |--] |--] ...
|  ] [  ] [  ]
|  ] [  ] [  ]
|  ] [  ] [  ]
|  ] |--] [  ]
|  ]  [  ]
|  ]  [  ]
|--]  [  ]
  |--]

yours sincerely
dr. 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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
The wiki page for \setupexternalfigure says
 "Show frame around image. Most(?) options of \setupframed are usable!"

I tried to put a frame around a picture (using \externalfigure with
frame=on) but I didn't get the frame to play nicely (see example below).  I
can get the frame where I want it if instead I do
 \framed[frame=on,...]{\externalfigure...}
but this leaves me wondering whether
(1) I am misinterpreting the wiki pages,
(2) The wiki pages are misleading/wrong, or
(3) There is a bug in some code.

If anyone would care to enlighten me, I would appreciate it.

In particular, the offset=... option of \externalfigure does not seem to be
consistent with the offset=... option of \framed.

Here is the example... one and all should be able to directly run it, but
the text above and below each picture may make the issues clear without
having to run the code.  (The result I was looking for is the second figure
in this example.)

Thanks.
Jim

%%% cut here %

\setuppapersize[legal]

\starttext

fr[ef] with frameoffset=1cm: This preceding text ends up inside the frame.

\framed[frame=on,frameoffset=1cm]{\externalfigure[cow][width=3cm,frame=on]}

This following text ends up inside the frame.


\vskip0.25 in\hrule\vskip0.25 in


fr[ef] with offset=1cm: This preceding text is above the frame as desired.

\framed[frame=on,offset=1cm]{\externalfigure[cow][width=3cm,frame=on]}

This following text is below the frame, as desired.


\vskip0.25 in\hrule\vskip0.25 in


ef[fr] with frameoffset=1cm: This preceding text ends up inside the frame.

\externalfigure[cow][width=3cm,frame=on,frameoffset=1cm]

This following text ends up inside the frame.


\vskip0.25 in\hrule\vskip0.25 in


ef[fr] with offset=1cm: The frame is tight to the image, not 1cm away.

\externalfigure[cow][width=3cm,frame=on,offset=1cm]

This following text ends up just below the image.


\vskip0.25 in\hrule\vskip0.25 in


ef[fr] with frameoffset=1cm,offset=1cm: This preceding text ends up inside
the frame.

\externalfigure[cow][width=3cm,frame=on,frameoffset=1cm,offset=1cm]

This following text ends up inside the frame.

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm

Hi,

in my ConTeXt book, some examples for \framed with rounded corners look 
odd, as if the MetaPost calculation of rounded corners fails.


I can’t find a minimal example that shows the problem, and I can’t 
imagine which of the settings in my extensive environment would cause it.


Find below the code that works on its own, but causes the results as 
shown in the attachments within my book. There’s nowhere a \setupframed, 
and nothing that should influence MetaPost.


Do you have any clue for what I should look?

Hraban

\starttext

\framed[
  rulethickness=1pt,
  offset=0.5em,
  background=color,
  backgroundcolor=yellow,
  framecorner=13,
  backgroundcorner=07,
  backgroundoffset=0.5em,
]{Das Runde muss ins Eckige}

\blank

\framed[
  frame=on,
  corner=round,
  frameoffset=0.5em,
  framecolor=black,
  background=color,
  backgroundcolor=darkgreen,
  backgroundoffset=1em,
  foregroundcolor=white,
  foregroundstyle={\ss\bf},
]{Komm ins Grüne!}

\stoptext___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref.
a counter 1, 2, etc.. Is there a way to change this frame text title as
following with the chapter number and a sequential number and the title.

Code Fragment 1.1 (The First Title)
Code Fragment 1.2 (The Second Title)
Code Fragment 2.1 (The Third Title)

MWE:

\startuseMPgraphic{CountFrame}
  picture p; numeric w, h, o;
  p := textext.rt("\wrappedcurrentconstruction");
  w := OverlayWidth; h := OverlayHeight; o := BodyFontSize;
p := p shifted (2o,h-ypart center p);
draw p;
path b;
b := boundingbox p enlarged (o/10);
drawoptions (withpen pencircle scaled 1pt withcolor black);
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner b,h);
draw b;
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay
  [CountFrame]
  [\useMPgraphic{CountFrame}]

\defineframedtext
  [CountFramedText]
  [frame=off,
   background=CountFrame,
   offset=\bodyfontsize,
   width=\textwidth,
%   style={\switchtobodyfont[11pt,tt]}]
   bodyfont=11pt,
   style={\tt},
   ]

\def\FrameTitle#1%
  {\setMPtext{CountFrame}
  {\hbox spread 1em{\hss\strut#1\hss}}}\setMPtext{CountFrame}
  {}

\defineenumeration
  [Counter]
  [title=yes,
   alternative=empty,
   before=\startCountFramedText,
   after=\stopCountFramedText]

\starttext

\startchapter
  [title=first]

\startCounter
  [title={The First Title},
   reference={tit1}]
   Some verbatim text
\stopCounter

\startCounter
  [title={The Second Title},
   reference={tit2}]
   Some verbatim text
\stopCounter

Refer to \in{code fragment}[tit1] bla

\stopchapter

\startchapter
  [title=second]

\startCounter
  [title={The Third Title},
   reference={tit3}]
   Some verbatim text
\stopCounter

\stopchapter

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line

2020-11-16 Thread Wolfgang Schuster



Garulfo schrieb am 16.11.2020 um 21:07:

Hi,

with a simple application of \framed, see MWE below, the space between 
the first line and the second line doesn't match with the others (gap 
is bigger).


I get similar results:
- with my computer and live.contextgarden.net
- with context 2019.03.21 and 2020.11.08


1. Is it the expected behavior ?


Yes.


2. What is the recommended way to benefit from the functionnalities of
   \framed but without this effect ?


Add "strut=no" to \framed, you can see the same effect when you add 
\strut at the beginning of the first line in the other examples. You can 
add \showstruts at the begin of your document to see the effect of \strut.


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
___


[NTG-context] \framed command: (strange ?) difficulty to control the interlinespace between the first and the second line

2020-11-16 Thread Garulfo

Hi,

with a simple application of \framed, see MWE below, the space between 
the first line and the second line doesn't match with the others (gap is 
bigger).


I get similar results:
- with my computer and live.contextgarden.net
- with context 2019.03.21 and 2020.11.08


1. Is it the expected behavior ?
2. What is the recommended way to benefit from the functionnalities of
   \framed but without this effect ?


Many thanks again for your support.



== MWE =

\setupbodyfont[sans, 16pt]

\starttext

\framed[align=flushleft,offset=0pt,frame=off,foregroundcolor=darkred]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}

\blank[big]
\startalignment[flushleft]
{\WORD\tfb
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce
Ce titre est trop long pour ce}
\stopalignment

\blank[big]
\vbox{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}

\blank[big]
\framed[offset=0pt,frame=off,foregroundcolor=darkgreen]
{\ruledvtop{\raggedright\WORD\tfb
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce
Ce titre est trop llong pour ce}}

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


[NTG-context] \framed[align=] with a 'maxwidth' instead of a width? Or get the size of a \frame returned to lua without typesetting it in a document?

2020-04-26 Thread Gerben Wierda
Setup:

TeX file
Contains ctxlua{} call
lua function reads XML file and calls context() statements, it 
puts out a
\startMPpage
METAPOST statements
Of which some are textext(\framed[align, so 
vbox, width defined by lua]{}, the whole TeX string for textext is created in 
lua and passed whole on to METAPOST as METAPOST is pretty limited on string 
manipulation compared to lua)
\stopMPpage

I am running into the following conundrum:

If I do give it a width (say a maximum) it will also be that wide when it is 
mostly empty if there is little text, this interferes with optimal placing
If I don’t give a width to the \framed command it may grow far too wide if 
there is a lot of text instead of wrapping around.

The typeset text is rather unpredictable. It may be three very short 
single-word lines with \\ at the end but it may also be a large paragraph.

So, I would like to find a way to let the \framed become a box as narrow as 
possible, but not growing wider than a pre-set width.

This is way too difficult for my meagre skills. What I could do (but I think is 
clumsy) is pass two \framed commands to METAPOST, have both by typeset with 
textext() and if the one without a width becomes too wide, take the one with 
the width set.

But I would like a neater option. E.g. call TeX (no need for METAPOST in 
between) from lua to typeset the \framed without actually typesetting it to the 
document and getting the dimensions back to lua so I can decide there what to 
do. Or a \specialframed command where I don’t give it a ‘width', but a 
‘maxwidth’

Is one of these doable? If not, I’ll have to implement the ‘clumsy’ route.

Preferably (the what is now thought of as ideal solution) I would be able in 
lua to give a piece of TeX code to TeX and ask it to produce a box and give me 
the dimensions of that box. That alone would give me an option, e.g.

- trial typeset
- if box surface (w*h) is more than what is available, shrink font size and 
lineheight so the total will be within set limits, then typeset it again with 
the smaller font and max width available
- else, if trial box width is more than the width available, typeset again with 
fixed width
- else use the way the trial box was typeset 

But I’m still puzzling.

G

PS. Why is the bbox of a textext(\framed[]{}) slightly larger than the frame?
___
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] Framed text split over multiple pages

2019-03-13 Thread Aditya Mahajan

Is there a simple way to split a large \startframedtext environment over
multiple pages. It doesn't work out of the box and I didn't find any
option make it work in the wiki nor in the documentation I read.


Use backgrounds or textbackgrounds.

Aditya
___
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] Framed text split over multiple pages

2019-03-13 Thread Romain Diss
Hi,

Is there a simple way to split a large \startframedtext environment over
multiple pages. It doesn't work out of the box and I didn't find any
option make it work in the wiki nor in the documentation I read.

Thanks.

-- 
Romain Diss
___
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] Framed mathematics

2018-12-07 Thread Wolfgang Schuster

Mathias Schickel schrieb am 07.12.18 um 12:09:

Dear list,

it seems that \mframed does not align properly. Compare the example 
fount at https://www.contextgarden.net/Framed#Location_parameter to 
the compiled example attached.


What can I do to get a correctly aligned framed formula?

\inmframed{...}

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
___

[NTG-context] Framed mathematics

2018-12-07 Thread Mathias Schickel
Dear list,it seems that \mframed does not align properly. Compare the example fount at https://www.contextgarden.net/Framed#Location_parameter to the compiled example attached.What can I do to get a correctly aligned framed formula?Many thanks for you help,Mathias

mframed.tex
Description: TeX document


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

Re: [NTG-context] \framed regression

2018-10-30 Thread Hans van der Meer
> 
> So, \offinterlineskip disables the interline skip completely? 

Indeed, it is just plain TeX. In order to inhibit the interline glue in front 
of the next line only, use \nointerlineskip.

dr. Hans van der Meer


> On 30 Oct 2018, at 14:08, Henning Hraban Ramm  wrote:
> 
> Am 2018-10-29 um 16:47 schrieb Herbert Voss :
> 
>> Am 29.10.18 um 16:13 schrieb Henning Hraban Ramm:
>> 
>>> But it doesn’t help with my labels.
>> 
>> you have a
>> 
>> \setupinterlinespace[2ex]
>> 
>> so \offinterlinespace has no real meaning here. Try it without and
>> 
>> \setupinterlinespace[0.1pt]
>> 
>>> And why did it work without \offinterlineskip before?
>> 
>> No idea ...
>> 
>> Herbert, hope that I understand your problem well
> 
> I already tried without \setupinterlinespace, no change.
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> 
> ___
> 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] \framed regression

2018-10-30 Thread Henning Hraban Ramm
Am 2018-10-29 um 16:47 schrieb Herbert Voss :

> Am 29.10.18 um 16:13 schrieb Henning Hraban Ramm:
> 
>> But it doesn’t help with my labels.
> 
> you have a
> 
> \setupinterlinespace[2ex]
> 
> so \offinterlinespace has no real meaning here. Try it without and
> 
> \setupinterlinespace[0.1pt]
> 
>> And why did it work without \offinterlineskip before?
> 
> No idea ...
> 
> Herbert, hope that I understand your problem well

So, \offinterlineskip disables the interline skip completely? Then I can’t use 
it where there’s text involved.

I already tried without \setupinterlinespace, no change.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


___
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] \framed regression

2018-10-29 Thread Herbert Voss

Am 29.10.18 um 16:13 schrieb Henning Hraban Ramm:


But it doesn’t help with my labels.


you have a

\setupinterlinespace[2ex]

so \offinterlinespace has no real meaning here. Try it without and

\setupinterlinespace[0.1pt]


And why did it work without \offinterlineskip before?


No idea ...

Herbert, hope that I understand your problem well
___
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] \framed regression

2018-10-29 Thread Henning Hraban Ramm
Am 2018-10-28 um 20:49 schrieb Herbert Voss :

> Am 28.10.18 um 20:37 schrieb Henning Hraban Ramm:
>> If I just typeset frames, they get 1pt of space inbetween:
>> \starttext
> 
> \offinterlineskip
> 
>> \dorecurse{20}{%
>>   %\vskip-1pt% to avoid space
>>   \framed[width=10cm,height=1cm]{\ConTeXt}%
>> }
>> \stoptext
> 
> Herbert

Thank you, that works in this case.

But it doesn’t help with my labels.

And why did it work without \offinterlineskip before?

See attachment - it’s right if the labels fit one page. At the moment I need a 
negative vskip of 5pt.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


aufkleber.pdf
Description: Adobe PDF document


aufkleber.tex
Description: Binary data
___
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] \framed regression

2018-10-28 Thread Herbert Voss

Am 28.10.18 um 20:37 schrieb Henning Hraban Ramm:

If I just typeset frames, they get 1pt of space inbetween:

\starttext


\offinterlineskip


\dorecurse{20}{%
   %\vskip-1pt% to avoid space
   \framed[width=10cm,height=1cm]{\ConTeXt}%
}
\stoptext


Herbert





I’m not quite sure if that shows the real problem and if that really was tight 
before.

With my tiny labels I had to \vskip-2.365mm to make them fit again.
There the font size was set to 7.5pt and the baselineskip to 2ex.
But these settings didn’t change the 1pt between frames.
The difference it probably due to the labels consisting of nested \frameds with 
images.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-10-28 um 20:01 schrieb Henning Hraban Ramm :


Ahoi,

there were a few strange changes in ConTeXt rendering since about since 
mid-August, probably all related to box handling.

I recognized \framed inserts some additional space when I re-typeset some 
sheets of labels that suddenly didn’t fit the labels any more.

Today my editor in chief asked me where the pagination of our magazine went to 
– I guess its footer box became too small, couldn’t investigate yet. He didn’t 
see that the type on the back is askew, probably also from the additional space 
around a \framed

Such sudden changes are really frustrating and might cost me a lot of money 
(the magazine is already printed and distributed).

I’ll try to come up with a MWE.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

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


___
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] \framed regression

2018-10-28 Thread Henning Hraban Ramm
If I just typeset frames, they get 1pt of space inbetween:

\starttext
\dorecurse{20}{%
  %\vskip-1pt% to avoid space
  \framed[width=10cm,height=1cm]{\ConTeXt}%
}
\stoptext

I’m not quite sure if that shows the real problem and if that really was tight 
before.

With my tiny labels I had to \vskip-2.365mm to make them fit again.
There the font size was set to 7.5pt and the baselineskip to 2ex.
But these settings didn’t change the 1pt between frames.
The difference it probably due to the labels consisting of nested \frameds with 
images.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-10-28 um 20:01 schrieb Henning Hraban Ramm :

> Ahoi,
> 
> there were a few strange changes in ConTeXt rendering since about since 
> mid-August, probably all related to box handling.
> 
> I recognized \framed inserts some additional space when I re-typeset some 
> sheets of labels that suddenly didn’t fit the labels any more.
> 
> Today my editor in chief asked me where the pagination of our magazine went 
> to – I guess its footer box became too small, couldn’t investigate yet. He 
> didn’t see that the type on the back is askew, probably also from the 
> additional space around a \framed
> 
> Such sudden changes are really frustrating and might cost me a lot of money 
> (the magazine is already printed and distributed).
> 
> I’ll try to come up with a MWE.
> 
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> ___
> 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
___

[NTG-context] \framed regression

2018-10-28 Thread Henning Hraban Ramm
Ahoi,

there were a few strange changes in ConTeXt rendering since about since 
mid-August, probably all related to box handling.

I recognized \framed inserts some additional space when I re-typeset some 
sheets of labels that suddenly didn’t fit the labels any more.

Today my editor in chief asked me where the pagination of our magazine went to 
– I guess its footer box became too small, couldn’t investigate yet. He didn’t 
see that the type on the back is askew, probably also from the additional space 
around a \framed

Such sudden changes are really frustrating and might cost me a lot of money 
(the magazine is already printed and distributed).

I’ll try to come up with a MWE.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Framed flush bottom

2018-08-14 Thread Hans Hagen

On 8/14/2018 11:53 AM, Henri Menke wrote:

Dear list,

According to the wiki page for \setupalign

"height" Fill the height: press the last line's baseline against the 
lower boundary.


but that doesn't see to work in framed.  How can I get the interline 
space stretched to flush to the bottom?  MWE is below.

\starttext

\installalign
  {henri}
  {\baselineskip1\baselineskip plus 10pt}

\startframed
  [width=\textwidth,
   height=\textheight,
   align={normal,henri},
   top=,
   bottom=]
  \input knuth \par
  \input knuth
\stopframed

\stoptext


-
  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] Framed flush bottom

2018-08-14 Thread Henri Menke

Dear list,

According to the wiki page for \setupalign

"height" Fill the height: press the last line's baseline against the 
lower boundary.


but that doesn't see to work in framed.  How can I get the interline 
space stretched to flush to the bottom?  MWE is below.


Cheers, Henri

---

\starttext

\startframed[width=\textwidth,height=\textheight,align={width,height}]
  \input knuth

  \input knuth
\stopframed

\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] Framed & before/after

2018-03-22 Thread Wolfgang Schuster




Procházka Lukáš Ing. 
21. März 2018 um 14:24
Hello,

does \framed recognize before and after keys, as mentioned here:

http://wiki.contextgarden.net/Command/defineframed
or:http://wiki.contextgarden.net/Command/setupframedtexts ?

In the following example it seems both keys are ignored:


\defineframed[AddressBox][before=\red,after=\small]

\starttext
  \green A
  \AddressBox{\cldcontext{"Hele"}}
  B
\stoptext

The values of the before and after keys are only used when you write

\startAdressBox
…
\stopAdressBox


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] Framed & before/after

2018-03-22 Thread Aditya Mahajan

On Thu, 22 Mar 2018, Henri Menke wrote:


On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote:

Hello,

does \framed recognize before and after keys, as mentioned here:

http://wiki.contextgarden.net/Command/defineframed
or: http://wiki.contextgarden.net/Command/setupframedtexts ?

In the following example it seems both keys are ignored:


Is this going to do what you need?

\defineframed[AddressBox][extras=\red]

\starttext
   \green A
   \AddressBox{\cldcontext{"Hele"}}
   B
\stoptext


Or the more direct

\defineframed[AddressBox][framecolor=red,foregroundcolor=red]

Aditya___
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] Framed & before/after

2018-03-21 Thread Henri Menke
On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote:
> Hello,
> 
> does \framed recognize before and after keys, as mentioned here:
> 
>   http://wiki.contextgarden.net/Command/defineframed
> or:   http://wiki.contextgarden.net/Command/setupframedtexts ?
> 
> In the following example it seems both keys are ignored:

Is this going to do what you need?

\defineframed[AddressBox][extras=\red]

\starttext
   \green A
   \AddressBox{\cldcontext{"Hele"}}
   B
\stoptext

> 
> 
> \defineframed[AddressBox][before=\red,after=\small]
> 
> \starttext
>    \green A
>    \AddressBox{\cldcontext{"Hele"}}
>    B
> \stoptext
> 
> 
> Best regards,
> 
> Lukas
> 
> 
> __
> _
> 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] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
On 03/21/2018 02:24 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> does \framed recognize before and after keys, as mentioned here:
> 
>   http://wiki.contextgarden.net/Command/defineframed
> or:   http://wiki.contextgarden.net/Command/setupframedtexts ?

Hi Lukáš,

\framed inherits from \setupframed (as explained in
tex/texmf-context/tex/context/interface/mkiv/i-context.pdf).

\setupframedtext (which I don’t think is exactly the same as
\setupframed) inherits from \setupplacement (which contains both keys
before and after).

That being said, I don’t know why before and after don’t work with
framed texts.

Pablo


> In the following example it seems both keys are ignored:
> 
> 
> \defineframedtext[AddressBox][before=\red,after=\small]
> 
> \starttext
>\green A
>\AddressBox{\cldcontext{"Hele"}}
>B
> \stoptext
> 
> 
> Best regards,
> 
> Lukas


-- 
http://www.ousia.tk
___
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] Framed & before/after

2018-03-21 Thread Procházka Lukáš Ing .

Hello,

does \framed recognize before and after keys, as mentioned here:

http://wiki.contextgarden.net/Command/defineframed
or: http://wiki.contextgarden.net/Command/setupframedtexts ?

In the following example it seems both keys are ignored:


\defineframed[AddressBox][before=\red,after=\small]

\starttext
  \green A
  \AddressBox{\cldcontext{"Hele"}}
  B
\stoptext


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

~2~.mkiv
Description: Binary data


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

Re: [NTG-context] framed with titles

2017-12-03 Thread Jeong Dal
Dear Pablo,

I also think that it is good to collect styles for math people in the wiki.
However, I have no experience to add something to the wiki, so I don’t know how.
I may try first and if I can’t, I’ll may ask your help.

I should mention again that these examples are not possible without Wolfgang’s 
solution.

Thank you.

Best regards,

Dalyoung

> 
> would it be possible that you add both samples to the wiki?
> 
> This is the best way to have a reference for future needs.
> 
___
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] framed with titles

2017-12-02 Thread Pablo Rodriguez
Hi Dalyoung,

would it be possible that you add both samples to the wiki?

This is the best way to have a reference for future needs.

Pablo


On 12/03/2017 12:11 AM, Jeong Dal wrote:
> Hi,
> 
> Some days ago, I asked a method to put theorem numbers in a framed title.
> Recently, Wolfgang gave me a solution which worked very well.
> 
> Although the first one is much simpler than the second, I’d like to show
> two samples made by his suggestion. 
> I hope that it may help someone who has the similar problem.
> 
> Thanks Wolfgang again.
> 
> Best regards,
> 
> Dalyoung
> 
> %% first method
> %1. use \enumerationparameter{text} and add “text=Theorem” in
> \defineenumeration.
> %%%
> \defineframed
>   [FunnyFramed]
>   [frame=off,
>    loffset=1ex,
>    roffset=1ex,
>    foregroundstyle=\ssbf]
> 
> \startuseMPgraphic{FunnyFrame}
>     picture p ; numeric o ; path a, b ; pair c ;
>     p := textext.rt("\FunnyFramed{\enumerationparameter{text}
> \convertedcounter[Theorem]}") ;
>     o := BodyFontSize ;
>     a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
>     p := p shifted (2o,OverlayHeight-ypart center p) ;
>     drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
>     b := a superellipsed .95 ;
>     draw b ;
>     b := (boundingbox p) superellipsed .95 ;
>     fill b withcolor .85white ;
>     draw b ;
>     draw p withcolor black ;
>     setbounds currentpicture to a ;
> \stopuseMPgraphic 
> 
> 
> \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 
> 
> \defineframedtext
>   [FunnyText]
>   [frame=off,
>    background=FunnyFrame,
>    before={\blank[line,halfline]},
>    after={\blank[line]},
>    offset=\bodyfontsize,
>    width=\textwidth]
> 
> \defineenumeration[Theorem]
>   [title=no,
>   text=Theorem,
>    prefix=yes,
>    prefixsegments=chapter,
>    way=bychapter,
>    alternative=command,
>    headcommand=\gobbleoneargument,
>    before=\startFunnyText,
>    after=\stopFunnyText]
> 
> \defineenumeration[Lemma]
>   [title=no,
>   text=Lemma,
>    prefix=yes,
>    prefixsegments=chapter,
>    way=bychapter,
>    alternative=command,
>    counter=Theorem,
>    headcommand=\gobbleoneargument,
>    before=\startFunnyText,
>    after=\stopFunnyText]
>    
> \defineenumeration[Coro]
>   [title=no,
>   text=Corollary,
>    prefix=yes,
>    prefixsegments=chapter,
>    way=bychapter,
>    alternative=command,
>    counter=Theorem,
>    headcommand=\gobbleoneargument,
>    before=\startFunnyText,
>    after=\stopFunnyText]
> \starttext
> 
> \dorecurse{3}
> {\chapter{Chapter Title}
>     
> 
> \startLemma
>     Fort's space is a compact and Hausdorff topological space.
> \stopLemma
> 
> \startTheorem
>     Fort's space is a compact and Hausdorff topological space.
> \stopTheorem
> 
> 
> \startTheorem
> Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let
> $\mathcal T$ be the family of subsets $G$ such that either (i) $\infty
> \notin G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space
> $(X, {\mathcal T} )$ is called {\bf Fort's space}.
> \stopTheorem
> 
> \startLemma
>     Fort's space is a compact and Hausdorff topological space.
> \stopLemma
> 
> \startCoro
>     Fort's space is a compact and Hausdorff topological space.
> \stopCoro
> }
> 
> \stoptext
>     
> % 2nd method
> %2. use \MPvar{} and define 3 different backgrounds, 3 different
> framedtexts like
> %\defineoverlay[FunnyFrameT][\useMPgraphic{FunnyFrame}{what=Theorem}] 
> %
> 
> \defineframed
>   [FunnyFramed]
>   [frame=off,
>    loffset=1ex,
>    roffset=1ex,
>    foregroundstyle=\ssbf]
> 
> \startuseMPgraphic{FunnyFrame}
>     picture p ; numeric o ; path a, b ; pair c ;
>     p := textext.rt("\FunnyFramed{\MPvar{what}
> \convertedcounter[Theorem]}") ;                   
>     o := BodyFontSize ;
>     a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
>     p := p shifted (2o,OverlayHeight-ypart center p) ;
>     drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
>     b := a superellipsed .95 ;
>     draw b ;
>     b := (boundingbox p) superellipsed .95 ;
>     fill b withcolor .85white ;
>     draw b ;
>     draw p withcolor black ;
>     setbounds currentpicture to a ;
> \stopuseMPgraphic 
> 
> \defineoverlay[FunnyFrameT][\useMPgraphic{FunnyFrame}{what=Theorem}] 
> \defineoverlay[FunnyFrameL][\useMPgraphic{FunnyFrame}{what=Lemma}] 
> \defineoverlay[FunnyFrameC][\useMPgraphic{FunnyFrame}{what=Corollary}] 
> 
> \defineframedtext
>   [FunnyTheorem]
>   [frame=off,
>    background=FunnyFrameT,
>    before={\blank[line,halfline]},
>    after={\blank[line]},
>    offset=\bodyfontsize,
>    width=\textwidth]
> 
> \defineframedtext
>   [FunnyLemma]
>   [frame=off,
>    background=FunnyFrameL,
>    before={\blank[line,halfline]},
>    after={\blank[line]},
>    offset=\bodyfontsize,
>    width=\textwidth]
> 
> \defineframedtext
>   [FunnyCoro]
>   [frame=off,
>    background=FunnyFrameC,
>    before={\blank[line,halfline]},
>    after={\blank[line]},
>  

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
Hi,

Some days ago, I asked a method to put theorem numbers in a framed title.
Recently, Wolfgang gave me a solution which worked very well.

Although the first one is much simpler than the second, I’d like to show two 
samples made by his suggestion. 
I hope that it may help someone who has the similar problem.

Thanks Wolfgang again.

Best regards,

Dalyoung

%% first method
%1. use \enumerationparameter{text} and add “text=Theorem” in 
\defineenumeration.
%%%
\defineframed
  [FunnyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt("\FunnyFramed{\enumerationparameter{text} 
\convertedcounter[Theorem]}") ;
o := BodyFontSize ;
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic 


\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 

\defineframedtext
  [FunnyText]
  [frame=off,
   background=FunnyFrame,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineenumeration[Theorem]
  [title=no,
  text=Theorem,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   headcommand=\gobbleoneargument,
   before=\startFunnyText,
   after=\stopFunnyText]

\defineenumeration[Lemma]
  [title=no,
  text=Lemma,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   counter=Theorem,
   headcommand=\gobbleoneargument,
   before=\startFunnyText,
   after=\stopFunnyText]
   
\defineenumeration[Coro]
  [title=no,
  text=Corollary,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   counter=Theorem,
   headcommand=\gobbleoneargument,
   before=\startFunnyText,
   after=\stopFunnyText]
\starttext

\dorecurse{3}
{\chapter{Chapter Title}


\startLemma
Fort's space is a compact and Hausdorff topological space.
\stopLemma

\startTheorem
Fort's space is a compact and Hausdorff topological space.
\stopTheorem


\startTheorem
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopTheorem

\startLemma
Fort's space is a compact and Hausdorff topological space.
\stopLemma

\startCoro
Fort's space is a compact and Hausdorff topological space.
\stopCoro
}

\stoptext

% 2nd method
%2. use \MPvar{} and define 3 different backgrounds, 3 different framedtexts 
like
%   \defineoverlay[FunnyFrameT][\useMPgraphic{FunnyFrame}{what=Theorem}]
%

\defineframed
  [FunnyFramed]
  [frame=off,
   loffset=1ex,
   roffset=1ex,
   foregroundstyle=\ssbf]

\startuseMPgraphic{FunnyFrame}
picture p ; numeric o ; path a, b ; pair c ;
p := textext.rt("\FunnyFramed{\MPvar{what} \convertedcounter[Theorem]}") ;  
 
o := BodyFontSize ;
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
p := p shifted (2o,OverlayHeight-ypart center p) ;
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;
b := a superellipsed .95 ;
draw b ;
b := (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic 

\defineoverlay[FunnyFrameT][\useMPgraphic{FunnyFrame}{what=Theorem}] 
\defineoverlay[FunnyFrameL][\useMPgraphic{FunnyFrame}{what=Lemma}] 
\defineoverlay[FunnyFrameC][\useMPgraphic{FunnyFrame}{what=Corollary}] 

\defineframedtext
  [FunnyTheorem]
  [frame=off,
   background=FunnyFrameT,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineframedtext
  [FunnyLemma]
  [frame=off,
   background=FunnyFrameL,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineframedtext
  [FunnyCoro]
  [frame=off,
   background=FunnyFrameC,
   before={\blank[line,halfline]},
   after={\blank[line]},
   offset=\bodyfontsize,
   width=\textwidth]

\defineenumeration[Theorem]
  [title=no,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   headcommand=\gobbleoneargument,
   before=\startFunnyTheorem,
   after=\stopFunnyTheorem]

\defineenumeration[Lemma]
  [title=no,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   alternative=command,
   counter=Theorem,
   headcommand=\gobbleoneargument,
   before=\startFunnyLemma,
   after=\stopFunnyLemma]

\defineenumeration[Coro]
  [ti

Re: [NTG-context] framed with titles

2017-11-14 Thread Jeong Dal
Hi, 

I got a partial solution to suppress the automatic display by changing 
“text=theorem,” to “text=,” and “number=yes” to “number=no”.
But, I couldn’t remove a blank line before the main text.
So it is a partial solution.

> 1. to put “Theorem #.#” inside the FrameTitle?(#.# means that chapter 
> number.theorem number)
> 2. to suppress the automatically display of “Thm #” inside the text?

The command
\FrameTitle{Theorem \getmarking[chapternumber].\recurselevel}
shows “Theorem 1.1”, but the it shows the chapternumber -1 not the real 
chapternumber.
Also I don’t know how to put the theorem counter after chapternumber instead of 
\recurselevel.

Here is a sample code.

Thank you for reading.

Best regards,

Dalyoung

 framed Text copied from MetaFun manual
\startuseMPgraphic{FunnyFrame} 
picture p ; numeric o ; path a, b ; pair c ; 
p := textext.rt(\MPstring{FunnyFrame}) ; 
o := BodyFontSize ; 
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; 
p := p shifted (2o,OverlayHeight-ypart center p) ; 
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; 
b := a superellipsed .95 ; 
%fill b withcolor .85white ; 
draw b ; 
b := (boundingbox p) superellipsed .95 ; 
fill b withcolor .85white ;  %.425green;%.
draw b ; 
draw p withcolor black ;
setbounds currentpicture to a ; 
\stopuseMPgraphic 

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 
\defineframedtext[FunnyText][frame=off,background=FunnyFrame, 
offset=\bodyfontsize, width=\textwidth]%\overlaywidth]%
\def\FrameTitle #1% 
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} 

\defineenumeration[Thm]
   [text=,
style=,
title=no,
prefix=yes,
prefixsegments={chapter},
way=bychapter,
number=no,
before={\FrameTitle {Theorem \getmarking[chapternumber].\recurselevel} 
\startFunnyText},
after={\stopFunnyText\blank}]

%\define[2]\thm{\FrameTitle{#1}
%\startFunnyText #2 \stopFunnyText}

\starttext

\dorecurse{3}
{\chapter{Chapter Title}

{\FrameTitle{Fort's space test}
\startFunnyText
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopFunnyText}

{\getmarking[chapternumber]}.\recurselevel}%

\startThm
Fort's space is a compact and Hausdorff topological space.
\stopThm

\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] framed with titles

2017-11-13 Thread Jeong Dal
Hi,

Here is a sample code of framed text with titles using FunnyFrame.

I tried to use it to display theorems “Theorem #.#” inside the FrameTitle, and 
the text in FunnyFrame.
So, I defined “\defineenumeration[Thm]”.
But I couldn’t make it.
Is it possible to do that? If so, please let me know how to do the following 
two things.

1. to put “Theorem #.#” inside the FrameTitle?(#.# means that chapter 
number.theorem number)
2. to suppress the automatically display of “Thm #” inside the text?

Thanks for reading.

Best regards,

Dalyoung

 framed Text copied from MetaFun book.
\startuseMPgraphic{FunnyFrame} 
picture p ; numeric o ; path a, b ; pair c ; 
p := textext.rt(\MPstring{FunnyFrame}) ; 
o := BodyFontSize ; 
a := unitsquare xyscaled (OverlayWidth,OverlayHeight) ; 
p := p shifted (2o,OverlayHeight-ypart center p) ; 
drawoptions (withpen pencircle scaled 1pt withcolor .625red) ; 
b := a superellipsed .95 ; 
%fill b withcolor .85white ; 
draw b ; 
b := (boundingbox p) superellipsed .95 ; 
fill b withcolor .85white ;  %.425green;%.
draw b ; 
draw p withcolor black ;
setbounds currentpicture to a ; 
\stopuseMPgraphic 

\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] 
\defineframedtext[FunnyText][frame=off,background=FunnyFrame, 
offset=\bodyfontsize, width=\textwidth]%\overlaywidth]%
\def\FrameTitle #1% 
{\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut\ss\bf #1\hss}}} 

\defineenumeration[Thm]
   [%text=\thm,
style=,
title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
number=yes,
before={\blank[big]\FrameTitle{Theorem} \startFunnyText},
after={\stopFunnyText\blank}]

\starttext

{\FrameTitle{Fort's space}
\startFunnyText{Fort's space}
Let $X$ be a uncountable set. Let $\infty$ is a fixed point of $X$. Let 
$\mathcal T$ be the family of subsets $G$ such that either (i) $\infty \notin 
G$ or (ii) $\infty \in G \text{ and } G^c$ is finite. The space $(X, {\mathcal 
T} )$ is called {\bf Fort's space}.
\stopFunnyText}

\startThm
Fort's space is a compact and Hausdorff topological space.
\stopThm
\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] framed with titles

2017-11-05 Thread Jeong Dal
Dear Javier,

There is a nice sample (‘FunnyFrame’ and ‘\FrameTitle’) which you can find in 
metafun manual.(metafun-p.pdf or metafun-s.pdf)
I used it a lot with a little modification.

I hope that is what you want.

cheers,

Dalyoung

> 2017. 11. 5. 오후 8:00, ntg-context-requ...@ntg.nl 작성:
> 
> Subject: [NTG-context] framed with titles
> Message-ID:  <mailto:bb2fd6ca-0f8b-6955-9b17-a765ba489...@us.es>>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Hi,
> 
> I'm trying to generate a frame with a title.
> 
> My first idea is something like (ASCII Art):
> 
> +- Title  -+
> |  Text text text text |
> |  more and more text  |
> +--+
> 
> A frame with title breaking the top line .
> 
> But I am not picky and something like beamer floating boxes (theorem, 
> proof, ...) for latex is good for me too.
> 
> In wiki, the frames doesn't have title and I'm not sure about if I have 
> to fight with overlays, with MP and this is out of my league.
> 
> Questions:
> 
> * what is the way for implement a title in the frame?
> 
> * Could you write a minimal example witch allows me to complete it for 
> my needs?
> 
> Thanks.
> 
> Javier M. Mora
> 

___
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] framed with titles

2017-11-05 Thread Jean-Pierre Delange
Oups !

There is a little error in the sample I've given : Don't read "\knuth" but 
"\input knuth" below !

\startMyFrame[Title=Knuth Text]

\input knuth

\stopMyFrame

\stoptext


- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Dimanche 5 Novembre 2017 11:40:03
Objet: Re: [NTG-context] framed with titles

Hi Javier,

As Thomas put it, it is beter to provide a minimal sample, even if it doesn't 
work correctly.
Given that, you can dig in this list archives, which contain few questions on 
the topic you are dealing with.

I am afraid that you can't achieve your goal (which is more or less a text 
within a frame with a title), without MP, which seems to me a good tool to draw 
such frame.
I remember that Fabrice Couvreur once has asked in 2016 a similar question, in 
order to draw a frame for a "summary" at the end of a chapter.

You need to populate the preamble of your file with something like below (you 
have to test it and modify it to your needs). 

Pay attention ! You have to give a \start command, after the \starttext 
command, inside the body of your text, when you want \startMyFrame[Title=A 
Title], and when to stop the frame with the \stopMyFrame command.
Have a look to the code below and test it (note that the frame is red in this 
sample).

% Début de la définition d'un texte encadré en rouge

% Defining a framed text
\defineframedtext
[MyFrame]
[before={\blank[3*big]},
 after={\blank[5*big]},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]

% Defining a label
\definelabel
 [Definition]
 [headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getvariable{text}{text1}");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;
fill OverlayBox withcolor lightgray;  %\MPcolor{
fill b withcolor darkred;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw topboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw p;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm;
\stopuseMPgraphic

\defineoverlay
 [MyFrame]
 [\useMPgraphic{MyFrame}]
% Fin de la définition d'un texte encadré en rouge

\starttext

\startMyFrame[Title=Knuth Text]

\knuth

\stopMyFrame
\stoptext

Hope it helps !
JP

- Mail original -----
De: "Javier M Mora" 
À: ntg-context@ntg.nl
Envoyé: Dimanche 5 Novembre 2017 10:14:47
Objet: [NTG-context] framed with titles

Hi,

I'm trying to generate a frame with a title.

My first idea is something like (ASCII Art):

+- Title  -+
|  Text text text text |
|  more and more text  |
+--+

A frame with title breaking the top line .

But I am not picky and something like beamer floating boxes (theorem, 
proof, ...) for latex is good for me too.

In wiki, the frames doesn't have title and I'm not sure about if I have 
to fight with overlays, with MP and this is out of my league.

Questions:

* what is the way for implement a title in the frame?

* Could you write a minimal example witch allows me to complete it for 
my needs?

Thanks.

Javier M. Mora



___
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
___
___
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] framed with titles

2017-11-05 Thread Jean-Pierre Delange
Hi Javier,

As Thomas put it, it is beter to provide a minimal sample, even if it doesn't 
work correctly.
Given that, you can dig in this list archives, which contain few questions on 
the topic you are dealing with.

I am afraid that you can't achieve your goal (which is more or less a text 
within a frame with a title), without MP, which seems to me a good tool to draw 
such frame.
I remember that Fabrice Couvreur once has asked in 2016 a similar question, in 
order to draw a frame for a "summary" at the end of a chapter.

You need to populate the preamble of your file with something like below (you 
have to test it and modify it to your needs). 

Pay attention ! You have to give a \start command, after the \starttext 
command, inside the body of your text, when you want \startMyFrame[Title=A 
Title], and when to stop the frame with the \stopMyFrame command.
Have a look to the code below and test it (note that the frame is red in this 
sample).

% Début de la définition d'un texte encadré en rouge

% Defining a framed text
\defineframedtext
[MyFrame]
[before={\blank[3*big]},
 after={\blank[5*big]},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]

% Defining a label
\definelabel
 [Definition]
 [headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getvariable{text}{text1}");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;
fill OverlayBox withcolor lightgray;  %\MPcolor{
fill b withcolor darkred;
draw bottomboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw topboundary OverlayBox withpen pencircle scaled 1pt  withcolor
darkred;
draw p;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm;
\stopuseMPgraphic

\defineoverlay
 [MyFrame]
 [\useMPgraphic{MyFrame}]
% Fin de la définition d'un texte encadré en rouge

\starttext

\startMyFrame[Title=Knuth Text]

\knuth

\stopMyFrame
\stoptext

Hope it helps !
JP

- Mail original -
De: "Javier M Mora" 
À: ntg-context@ntg.nl
Envoyé: Dimanche 5 Novembre 2017 10:14:47
Objet: [NTG-context] framed with titles

Hi,

I'm trying to generate a frame with a title.

My first idea is something like (ASCII Art):

+- Title  -+
|  Text text text text |
|  more and more text  |
+--+

A frame with title breaking the top line .

But I am not picky and something like beamer floating boxes (theorem, 
proof, ...) for latex is good for me too.

In wiki, the frames doesn't have title and I'm not sure about if I have 
to fight with overlays, with MP and this is out of my league.

Questions:

* what is the way for implement a title in the frame?

* Could you write a minimal example witch allows me to complete it for 
my needs?

Thanks.

Javier M. Mora



___
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] framed with titles

2017-11-05 Thread Schmitz Thomas A.


> On 5. Nov 2017, at 10:14, Javier M Mora  wrote:
> 
> Questions:
> 
> * what is the way for implement a title in the frame?

There are examples for titles in frames at 
http://wiki.contextgarden.net/Titles#Chapter_titles_in_new_line

> 
> * Could you write a minimal example witch allows me to complete it for my 
> needs?

In general, it behooves the OP to provide a minimal example.

HTH

Thomas


___
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] framed with titles

2017-11-05 Thread Javier M Mora

Hi,

I'm trying to generate a frame with a title.

My first idea is something like (ASCII Art):

+- Title  -+
|  Text text text text |
|  more and more text  |
+--+

A frame with title breaking the top line .

But I am not picky and something like beamer floating boxes (theorem, 
proof, ...) for latex is good for me too.


In wiki, the frames doesn't have title and I'm not sure about if I have 
to fight with overlays, with MP and this is out of my league.


Questions:

* what is the way for implement a title in the frame?

* Could you write a minimal example witch allows me to complete it for 
my needs?


Thanks.

Javier M. Mora



___
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] framed broken?

2015-09-06 Thread dr. Hans van der Meer
I tried to reproduce a framed example from the context-reference:



Input taken from this example by copying the lines from the reference document:
\starttext
\framed
[width=.2\hsize,height=3cm]
{\cbox to 2.5cm{\hsize2.5cm just\\in the\\middle}}
\stoptext

result is wrong in comparison with the middle \cbox example. The text is not 
centered.
Is framed at fault here?

Hans van der Meer


framedlines.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] framed and placefigure

2014-10-27 Thread Alan BRASLAU
On Sun, 26 Oct 2014 22:51:47 +
DesdeChaves  wrote:

> why this happens:

Because that is what you specified:

> After a specification of the foregroundcolor  the figures are  behind
> a framed color. 
___
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] framed and placefigure

2014-10-26 Thread DesdeChaves
why this happens:

After a specification of the foregroundcolor  the figures are  behind a
framed color.

\setupframed[offset=2mm,
 corner=round,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=yellow,
 frame=off,
 strut=no,
 align=normal, location=top,
 width=\textwidth]

For example, is this case my \placefigure[right,nonumber,2*hang]
{}{\externalfigure[ostrichhead][width=5cm]} is behind a yellow framed
rectangle.

Jorge
___
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] Framed text and page breaks

2014-09-02 Thread Keith McKay

Thank you Aditya!

Your hint to using the narrower environment lead me to \startnarrower 
\stopnarrower on the wiki which was exactly what I was looking for.


Thanks again

Best Wishes
Keith McKay

On 02/09/2014 17:22, Aditya Mahajan wrote:
If you just want to reduce the width of paragraphs, use the narrower 
environment. If you also want frames or background colors that break 
across page, use the background environment. If you want floats and 
parshape to also work, use the textbackground environment.


Aditya

On Tue, 2 Sep 2014, Keith McKay wrote:


Colleagues

I've been struggling today with trying to change paragraph width of 
selected paragraphs within the body text of a novel I'm typesetting. 
I thought that the way to do this would be by framing the text that I 
would like to reduce the paragraph width off.  However the framed 
text doesn't seem to honour page breaks and just seems to disappear 
off the page bottom.  Also the framed text starts on a new page which 
I do not want to happen.


Any suggestions on how I may go about solving this problem?

Best Wishes
Keith McKay

Here is an example tex file which shows these effects:
\definepapersize[book][width=5.06in,height=7.81in]

\setuppapersize [book][]

\setuplayout 
[width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm]


\starttext

\dorecurse{2}{\input ward \blank}

\midaligned

\framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input 
ward \blank}}


\dorecurse{2}{\input ward \blank}

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



___
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] Framed text and page breaks

2014-09-02 Thread Aditya Mahajan
If you just want to reduce the width of paragraphs, use the narrower 
environment. If you also want frames or background colors that break 
across page, use the background environment. If you want floats and 
parshape to also work, use the textbackground environment.


Aditya

On Tue, 2 Sep 2014, Keith McKay wrote:


Colleagues

I've been struggling today with trying to change paragraph width of selected 
paragraphs within the body text of a novel I'm typesetting. I thought that 
the way to do this would be by framing the text that I would like to reduce 
the paragraph width off.  However the framed text doesn't seem to honour page 
breaks and just seems to disappear off the page bottom.  Also the framed text 
starts on a new page which I do not want to happen.


Any suggestions on how I may go about solving this problem?

Best Wishes
Keith McKay

Here is an example tex file which shows these effects:
\definepapersize[book][width=5.06in,height=7.81in]

\setuppapersize [book][]

\setuplayout 
[width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm]


\starttext

\dorecurse{2}{\input ward \blank}

\midaligned

\framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input 
ward \blank}}


\dorecurse{2}{\input ward \blank}

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


[NTG-context] Framed text and page breaks

2014-09-02 Thread Keith McKay

Colleagues

I've been struggling today with trying to change paragraph width of 
selected paragraphs within the body text of a novel I'm typesetting. I 
thought that the way to do this would be by framing the text that I 
would like to reduce the paragraph width off.  However the framed text 
doesn't seem to honour page breaks and just seems to disappear off the 
page bottom.  Also the framed text starts on a new page which I do not 
want to happen.


Any suggestions on how I may go about solving this problem?

Best Wishes
Keith McKay

Here is an example tex file which shows these effects:
\definepapersize[book][width=5.06in,height=7.81in]

\setuppapersize [book][]

\setuplayout 
[width=middle,backspace=12.5mm,cutspace=12.5mm,height=middle,topspace=12.7mm,bottomspace=12.7mm]


\starttext

\dorecurse{2}{\input ward \blank}

\midaligned

\framed[frame=off,width=5cm,align={width,nothyphenated,verytolerant,stretch},before=\blank]{\dorecurse{4}{\input 
ward \blank}}


\dorecurse{2}{\input ward \blank}

\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] \framed versus \inframed

2014-07-22 Thread Hans Hagen

On 7/22/2014 2:13 PM, Herbert Voss wrote:

I'd expect a double frame for a nested \inframed, too. And also
fog in the last row always on the baseline fort \inframed.


\starttext
foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo

fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog

\setupframed[strut=no]
fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog
\stoptext



\inframed{\framed{fog}}

inframed is in fact a locator option (location=low)

(you can look at \installframedlocator in pack-rul.mkiv for more of 
them; in practice these manipulate ht/dp and shift up and down a bit)



running current minimal

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
___




--

-
  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] \framed versus \inframed

2014-07-22 Thread Herbert Voss
I'd expect a double frame for a nested \inframed, too. And also
fog in the last row always on the baseline fort \inframed.


\starttext
foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo

fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog

\setupframed[strut=no]
fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog
\stoptext


running current minimal

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
___


Re: [NTG-context] Framed: Individual background offsets

2013-03-23 Thread Wolfgang Schuster

Am 23.03.2013 um 14:56 schrieb Marco Patzer :

> Hi,
> 
> how can I set individual offsets for the background, similar to
> loffset, roffset, etc.?
> 
> \defineframedtext
>  [foo]
>  [frame=off,
>   offset=none,
>   backgroundoffset=1cm,
>   %% backgroundloffset=1cm, %% there is no backgroundloffset
>   background=screen]
> 
> \starttext
> 
> %% backgroundoffset is applied on all four sides
> \startfoo
>  \input ward
> \stopfoo
> 
> \input knuth
> 
> %% this is what I'm aiming for
> \startnarrower [-1cm]
>  \startfoo [backgroundoffset=0cm, loffset=1cm]
>\input ward
>  \stopfoo
> \stopnarrower
> 
> \stoptext

\startuseMPgraphic{framed:background}
  fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm 
withcolor \MPcolor{lightgray};
  setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

\defineoverlay[framed:background][\useMPgraphic{framed:background}]

\defineframedtext
 [foo]
 [frame=off,
  offset=none,
  background=framed:background]

\starttext

\startfoo
\input ward
\stopfoo

\stoptext

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] Framed: Individual background offsets

2013-03-23 Thread Marco Patzer
Hi,

how can I set individual offsets for the background, similar to
loffset, roffset, etc.?

\defineframedtext
  [foo]
  [frame=off,
   offset=none,
   backgroundoffset=1cm,
   %% backgroundloffset=1cm, %% there is no backgroundloffset
   background=screen]

\starttext

%% backgroundoffset is applied on all four sides
\startfoo
  \input ward
\stopfoo

\input knuth

%% this is what I'm aiming for
\startnarrower [-1cm]
  \startfoo [backgroundoffset=0cm, loffset=1cm]
\input ward
  \stopfoo
\stopnarrower

\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] framed algorithm / float: problems with line break

2012-12-18 Thread Andreas Mang
Dear Wolfgang,

thanks for looking into this. Works nicely.

> I can add a “color” key to the algorithmic environment which allows you to 
> set the color
> with \setupalgorithmic and you don’t need the \white command after 
> \startalgorithmic
> anymore.

The coloring in my minimal example was simply taken from contextgarden to make 
sure that I am consistent with what is typically used as an example. 
Personally, I think this is way to fancy. I'll use some faint color so that I 
do not need to change the text color. So from my perspective there is no need 
for a color command.


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


Re: [NTG-context] framed algorithm / float: problems with line break

2012-12-18 Thread Wolfgang Schuster

Am 17.12.2012 um 13:14 schrieb Andreas Mang :

> Dear all,
> 
> Quick access: there is no line break in case algorithmic is used together 
> with framed as a float.
> 
> I'd like to put some pseudocode in my document. I've used the algorithmic 
> module. Since I'd like to refer to the algorithm in the text, I've defined a 
> float environment. However, putting the pseudocode into my document, I've 
> realised that it does not really stand out from the text. My first idea was 
> to put some box around it. In the garden I've found some example for using 
> framed together with floats:
> 
> http://wiki.contextgarden.net/Framed
> 
> However, this screws up the line break in the algorithmic environment. I 
> could define manually the size of the box, but I think there might be better 
> solutions. Any ideas or better ways for achieving this or a similar 
> behaviour?!
> 
> Thanks in advance.
> 
> Cheers,
> Andreas 
> 
> ConTeXt  ver: 2012.12.10 23:20 MKIV  fmt: 2012.12.14
> 
> %%% MINIMAL EXAMPLE %%%
> \usemodule[algorithmic]
> 
> 
> \definefloat[algorithm][algorithms] 
> 
> \setuplabeltext[de][algorithm=Algorithmus ]
> 
> \setupcaption[algorithm][
>   headstyle=bold,
>   location=top,
>   width=0.95\textwidth]
> 
> 
> \starttext
> 
> \placealgorithm[top][alg:some-algorithm]{Some description of some algorithm.}{
> \framed
>  [background=color,backgroundcolor=darkblue,
>   foreground=color,foregroundcolor=white,width=broad]{

You have to add “align=right” to \framed to force a multiline frame but you 
don’t need
the command because floats do also use the \framed command. You can use this 
feature
and set the background with \setupfloat, only the text color can’t be set with 
\setupfloat
because it’s applied to late in the process and a manual setting is necessary.

I can add a “color” key to the algorithmic environment which allows you to set 
the color
with \setupalgorithmic and you don’t need the \white command after 
\startalgorithmic
anymore.

\usemodule[algorithmic]

\definefloat[algorithm][algorithms] 

\setuplabeltext[de][algorithm=Algorithmus ]

\setupcaption
  [algorithm]
  [headstyle=bold,
   location=top,
   width=0.95\textwidth]

\setupfloat
  [algorithm]
  [background=color,
   backgroundcolor=darkblue]

\starttext

\placealgorithm[top][alg:some-algorithm]{Some description of some algorithm.}
  {\startalgorithmic\white
   \STATE choose $\alpha\in(0,1)$
   \WHILE{$\alpha < 100$}
 \STATE $\alpha \leftarrow \alpha + \alpha$
   \ENDWHILE
   \stopalgorithmic}

\stoptext

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] framed algorithm / float: problems with line break

2012-12-17 Thread Andreas Mang
Dear all,

Quick access: there is no line break in case algorithmic is used together with 
framed as a float.

I'd like to put some pseudocode in my document. I've used the algorithmic 
module. Since I'd like to refer to the algorithm in the text, I've defined a 
float environment. However, putting the pseudocode into my document, I've 
realised that it does not really stand out from the text. My first idea was to 
put some box around it. In the garden I've found some example for using framed 
together with floats:

http://wiki.contextgarden.net/Framed

However, this screws up the line break in the algorithmic environment. I could 
define manually the size of the box, but I think there might be better 
solutions. Any ideas or better ways for achieving this or a similar behaviour?!

Thanks in advance.

Cheers,
Andreas 

ConTeXt  ver: 2012.12.10 23:20 MKIV  fmt: 2012.12.14

%%% MINIMAL EXAMPLE %%%
\usemodule[algorithmic]


\definefloat[algorithm][algorithms] 

\setuplabeltext[de][algorithm=Algorithmus ]

\setupcaption[algorithm][
headstyle=bold,
location=top,
width=0.95\textwidth]


\starttext

\placealgorithm[top][alg:some-algorithm]{Some description of some algorithm.}{
\framed
  [background=color,backgroundcolor=darkblue,
   foreground=color,foregroundcolor=white,width=broad]{
\startalgorithmic
\STATE choose $\alpha\in(0,1)$
\WHILE{$\alpha < 100$}
\STATE $\alpha \leftarrow \alpha + \alpha$
\ENDWHILE
\stopalgorithmic
}
}

\stoptext
%%% MINIMAL EXAMPLE %%%

___
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] framed \\

2012-07-05 Thread Meer, H. van der
Thank you very much. That completely clarifies it.
Hans van der Meer

On 5 jul. 2012, at 12:55, Aditya Mahajan wrote:

On Thu, 5 Jul 2012, Meer, H. van der wrote:

Indeed, the align does the trick. But what is the raison d'être of coupling the 
behaviour of \\ to the align parameter? I wouldn't have known out but for your 
reply. Is it something to add to the wiki on framed? (sorry, I am not apt at 
these things myself, too old ;-). Or can it be done generally?

Without align={normal|middle|left|right}, \framed is equal to \hbox. You cannot 
have line breaks in a \hbox. With align=something, \framed is a \vbox, so you 
can have line breaks.

Aditya


___
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] framed \\

2012-07-05 Thread Henning Hraban Ramm
2012/7/5 Aditya Mahajan :
> Without align={normal|middle|left|right}, \framed is equal to \hbox. You
> cannot have line breaks in a \hbox. With align=something, \framed is a
> \vbox, so you can have line breaks.

Thank you, it’s wikified. (Command reference on \setupframed)

Greetlings, Hraban
___
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] framed \\

2012-07-05 Thread Aditya Mahajan

On Thu, 5 Jul 2012, Meer, H. van der wrote:

Indeed, the align does the trick. But what is the raison d'être of 
coupling the behaviour of \\ to the align parameter? I wouldn't have 
known out but for your reply. Is it something to add to the wiki on 
framed? (sorry, I am not apt at these things myself, too old ;-). Or can 
it be done generally?


Without align={normal|middle|left|right}, \framed is equal to \hbox. You 
cannot have line breaks in a \hbox. With align=something, \framed is a 
\vbox, so you can have line breaks.


Aditya___
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] framed \\

2012-07-05 Thread Meer, H. van der
Thanks.
Indeed, the align does the trick. But what is the raison d'être of coupling the 
behaviour of \\ to the align parameter? I wouldn't have known out but for your 
reply. Is it something to add to the wiki on framed? (sorry, I am not apt at 
these things myself, too old ;-). Or can it be done generally?

Hans van der Meer



On 5 jul. 2012, at 12:29, Wolfgang Schuster wrote:


Am 05.07.2012 um 11:01 schrieb Meer, H. van der:

Sorry, missed the inclusion of the output of the minimal example.

In the ConTeXT manual I see that a construct
\framed{A\\B\\C} should type set as three lines below each other:

A
B
C

But instead the \\'s disappear without a trace.
Did I miss some change on the use of \\'s in \framed?
Could it be a sideeffect of recent changes?

The \\ is converted to a space as you can see in the output, you have to set a 
align value to break the input into lines.

\starttext
\framed[align=middle]{A\\B\\C}
\stoptext

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] framed \\

2012-07-05 Thread Wolfgang Schuster

Am 05.07.2012 um 11:01 schrieb Meer, H. van der:

> Sorry, missed the inclusion of the output of the minimal example.
> 
> In the ConTeXT manual I see that a construct
> \framed{A\\B\\C} should type set as three lines below each other:
> 
> A
> B
> C
> 
> But instead the \\'s disappear without a trace. 
> Did I miss some change on the use of \\'s in \framed?
> Could it be a sideeffect of recent changes?

The \\ is converted to a space as you can see in the output, you have to set a 
align value to break the input into lines.

\starttext
\framed[align=middle]{A\\B\\C}
\stoptext

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] framed \\

2012-07-05 Thread Meer, H. van der
Sorry, missed the inclusion of the output of the minimal example.

In the ConTeXT manual I see that a construct
\framed{A\\B\\C} should type set as three lines below each other:

A
B
C

But instead the \\'s disappear without a trace.
Did I miss some change on the use of \\'s in \framed?
Could it be a sideeffect of recent changes?

Hans van der Meer

\starttext
\framed{A\\B\\C}
\stoptext




test.pdf
Description: test.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] framed \\

2012-07-05 Thread Meer, H. van der
In the ConTeXT manual I see that a construct
\framed{A\\B\\C} should type set as three lines below each other:

A
B
C

But instead the \\'s disappear without a trace.
Did I miss some change on the use of \\'s in \framed?
Could it be a sideeffect of recent changes?

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] Framed "environment"

2011-11-19 Thread Wolfgang Schuster

Am 19.11.2011 um 17:32 schrieb Aditya Mahajan:

> On Nov 18, 2011, at 2:23 PM, Troy Henderson  wrote:
> 
>> Is there an "environment" (i.e., like a \startframed ... \stopframed)
>> method for using \framed{ ... } on a block of text?  Certain \start ...
>> \stop combinations don't seem to play well with \framed{ ... }. 
> 
> Untested, but the most likely reason is that framed starts a hbox rather than 
> a vbox. Use 
> 
> \framed[align=normal]{...}
> 
> to start a vbox.  

Or \startframedtext[width=broad] … \stopframedtext.

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] Framed "environment"

2011-11-19 Thread Aditya Mahajan

On Nov 18, 2011, at 2:23 PM, Troy Henderson  wrote:

> Is there an "environment" (i.e., like a \startframed ... \stopframed)
> method for using \framed{ ... } on a block of text?  Certain \start ...
> \stop combinations don't seem to play well with \framed{ ... }.  For
> example,
> 
> \usemodule[amsl]

Please do not use the amsl module.  It has not been updated in years and 
context core provides almost all the functionality. 

> \starttext
>\framed{
>\startformula
>\startalign
>A=B
>\stopalign
>\stopformula
>}
> \stoptext
> 
> fails evidently because \framed{ ... } and the \startalign ...
> \stopalign don't like one another.

Untested, but the most likely reason is that framed starts a hbox rather than a 
vbox. Use 

\framed[align=normal]{...}

to start a vbox.  

Aditya
___
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] Framed "environment"

2011-11-18 Thread Troy Henderson
Is there an "environment" (i.e., like a \startframed ... \stopframed)
method for using \framed{ ... } on a block of text?  Certain \start ...
\stop combinations don't seem to play well with \framed{ ... }.  For
example,

\usemodule[amsl]
\starttext
\framed{
\startformula
\startalign
A=B
\stopalign
\stopformula
}
\stoptext

fails evidently because \framed{ ... } and the \startalign ...
\stopalign don't like one another.

--
Troy Henderson
___
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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Kip Warner
On Wed, 2011-10-05 at 18:30 -0400, Aditya Mahajan wrote:
> Are you using MkII or MkIV? Is metapost working?
> 
> \starttext
> \startMPcode
> draw fullcircle scaled 3cm ;
> \stopMPcode
> \stoptext

$ context --version
...
mtx-context | current version: 2011.06.27 23:49

It errors with that code you gave me. I can't seem to find the specific
error message as ConTeXt dumps tonnes and tonnes of pages of console
output that it's probably buried somewhere in.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Aditya Mahajan

On Wed, 5 Oct 2011, Kip Warner wrote:


On Wed, 2011-10-05 at 23:58 +0200, Hans Hagen wrote:

http://wiki.contextgarden.net/TextBackground


Thanks Hans. I saw it already, but I couldn't get the frame to appear
around the text.

Can you show me the textbackground equivalent that has page breaks to
the following that I have been using?


Are you using MkII or MkIV? Is metapost working?

\starttext
\startMPcode
draw fullcircle scaled 3cm ;
\stopMPcode
\stoptext

Aditya
___
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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Kip Warner
On Wed, 2011-10-05 at 23:58 +0200, Hans Hagen wrote:
> http://wiki.contextgarden.net/TextBackground

Thanks Hans. I saw it already, but I couldn't get the frame to appear
around the text.

Can you show me the textbackground equivalent that has page breaks to
the following that I have been using?

\definestartstop
[SomeFramedText]
[before={
\crlf
\setupbackground[frame=on,
 before=\blank,
 after=\blank,
 corner=round,
 topoffset=0.5cm,
 leftoffset=0.5cm,
 rightoffset=0.5cm,
 bottomoffset=0.5cm]
\startbackground
},
 after={
\stopbackground
\crlf
   },
 commands={\setupalign[yes]},
 style=italic]

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Hans Hagen

On 5-10-2011 23:52, Kip Warner wrote:

On Tue, 2011-10-04 at 20:54 -0400, Aditya Mahajan wrote:

Can you explain what you mean by inline pagebreak?

Aditya


Hey Aditya. I mean that I would like framed text to be split over
multiple pages whenever possible.


http://wiki.contextgarden.net/TextBackground

-
  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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Kip Warner
On Tue, 2011-10-04 at 20:54 -0400, Aditya Mahajan wrote:
> Can you explain what you mean by inline pagebreak?
> 
> Aditya

Hey Aditya. I mean that I would like framed text to be split over
multiple pages whenever possible.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Framed Text Split Over Multiple Pages

2011-10-05 Thread Hans Hagen

On 5-10-2011 02:20, Kip Warner wrote:

Hey list,

I'd like my framed text to be split over multiple pages rather than
leaving a big empty page before it starts so that it can fill its own
whole page when large enough.


you can search for 'textbackground' (which is another mechanism)

-
  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] Framed Text Split Over Multiple Pages

2011-10-04 Thread Aditya Mahajan

On Tue, 4 Oct 2011, Kip Warner wrote:


Hey list,

I'd like my framed text to be split over multiple pages rather than
leaving a big empty page before it starts so that it can fill its own
whole page when large enough.

This is what I am using and works fine, with the exception of no inline
page breaks:


Can you explain what you mean by inline pagebreak?

Aditya
___
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] Framed Text Split Over Multiple Pages

2011-10-04 Thread Kip Warner
Hey list,

I'd like my framed text to be split over multiple pages rather than
leaving a big empty page before it starts so that it can fill its own
whole page when large enough.

This is what I am using and works fine, with the exception of no inline
page breaks:

\definestartstop
[SubDocument]
[before={
\crlf
\setupbackground[frame=on,
 before=\blank,
 after=\blank,
 corner=round,
 topoffset=0.5cm,
 leftoffset=0.5cm,
 rightoffset=0.5cm,
 bottomoffset=0.5cm]
\startbackground
},
 after={
\stopbackground
\crlf
   },
 commands={\setupalign[yes]},
 style=italic]

Then used as such:

\startSubDocument
...
\stopSubDocument

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] \framed feature request

2011-08-29 Thread Marcin Borkowski
Dnia 2011-08-27, o godz. 13:14:14
Marcin Borkowski  napisał(a):

> Dnia 2011-08-27, o godz. 11:02:31
> Hans Hagen  napisał(a):
> > > \setupframed
> > > [loffset=\framedparameter{hoffset},
> > > roffset=\framedparameter{hoffset},
> > > hoffset=\zeropoint]
> > >
> > > \defineframed[test][hoffset=1cm]
> > >
> > > \starttext
> > > \test{test}
> > > \stoptext
> > 
> > a nice example for the wiki
> 
> Understood - I can add it (later today).

Done - maybe in a suboptimal way (I'm not a wiki markup expert;)), but
it's there.

> 
> But would it be a bad idea to add this to the ConTeXt core?
> 
> > 
> > Hans
> 

Best,

-- 
Marcin Borkowski
___
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] \framed feature request

2011-08-27 Thread Marcin Borkowski
Dnia 2011-08-27, o godz. 13:31:50
Hans Hagen  napisał(a):

> On 27-8-2011 13:14, Marcin Borkowski wrote:
> 
> > But would it be a bad idea to add this to the ConTeXt core?
> 
> yes, as it slows down one of the core macros, add more to the 
> documentation, and one never knows if we need hoffset some time later 
> for another purpose

I see, thanks for explanation.

> 
> Hans

-- 
Marcin Borkowski
___
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] \framed feature request

2011-08-27 Thread Hans Hagen

On 27-8-2011 13:14, Marcin Borkowski wrote:


But would it be a bad idea to add this to the ConTeXt core?


yes, as it slows down one of the core macros, add more to the 
documentation, and one never knows if we need hoffset some time later 
for another purpose


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] \framed feature request

2011-08-27 Thread Marcin Borkowski
Dnia 2011-08-27, o godz. 11:02:31
Hans Hagen  napisał(a):

> On 27-8-2011 09:34, Aditya Mahajan wrote:
> > On Sat, 27 Aug 2011, Marcin Borkowski wrote:
> >
> >> Hello Hans,
> >>
> >> there are toffset, boffset, loffset and roffset parameters to
> >> \framed, and an offset parameter which sets all four (if I get it
> >> right). Would it be a trouble to add also hoffset (setting
> >> [l|]offset) and voffset (setting [t|b]offset)?
> >
> > \setupframed
> > [loffset=\framedparameter{hoffset},
> > roffset=\framedparameter{hoffset},
> > hoffset=\zeropoint]
> >
> > \defineframed[test][hoffset=1cm]
> >
> > \starttext
> > \test{test}
> > \stoptext
> 
> a nice example for the wiki

Understood - I can add it (later today).

But would it be a bad idea to add this to the ConTeXt core?

> 
> Hans

-- 
Marcin Borkowski
___
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] \framed feature request

2011-08-27 Thread Hans Hagen

On 27-8-2011 09:34, Aditya Mahajan wrote:

On Sat, 27 Aug 2011, Marcin Borkowski wrote:


Hello Hans,

there are toffset, boffset, loffset and roffset parameters to \framed,
and an offset parameter which sets all four (if I get it right). Would
it be a trouble to add also hoffset (setting [l|]offset) and voffset
(setting [t|b]offset)?


\setupframed
[loffset=\framedparameter{hoffset},
roffset=\framedparameter{hoffset},
hoffset=\zeropoint]

\defineframed[test][hoffset=1cm]

\starttext
\test{test}
\stoptext


a nice example for the wiki

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] \framed feature request

2011-08-27 Thread Aditya Mahajan

On Sat, 27 Aug 2011, Marcin Borkowski wrote:


Hello Hans,

there are toffset, boffset, loffset and roffset parameters to \framed,
and an offset parameter which sets all four (if I get it right).  Would
it be a trouble to add also hoffset (setting [l|]offset) and voffset
(setting [t|b]offset)?


\setupframed
  [loffset=\framedparameter{hoffset},
   roffset=\framedparameter{hoffset},
   hoffset=\zeropoint]

\defineframed[test][hoffset=1cm]

\starttext
\test{test}
\stoptext

Aditya
___
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] \framed feature request

2011-08-27 Thread Marcin Borkowski
Hello Hans,

there are toffset, boffset, loffset and roffset parameters to \framed,
and an offset parameter which sets all four (if I get it right).  Would
it be a trouble to add also hoffset (setting [l|]offset) and voffset
(setting [t|b]offset)?

Best,

-- 
Marcin Borkowski
___
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] [framed] how to deal with big text?

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
2011/3/5 Wolfgang Schuster :
>

>
> Use textbackground.
>
> \definetextbackground
>  [myframe]
>  [location=paragraph,
>   framecolor=black,
>   background=]
>
> \starttext
> \startmyframe
> \dorecurse{20}{\input knuth\par}
> \stopmyframe
> \stoptext

thanks! it works like a charm :-)

-- 
Milton
___
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] [framed] how to deal with big text?

2011-03-05 Thread Wolfgang Schuster

Am 04.03.2011 um 21:47 schrieb Milton Galo Patricio Inostroza Aguilera:

> Hi,
> 
> I'm a new user of context.  I'm working with \framed and I have a
> problem when I try to fit a big text in it :-(.  The system cuts the
> text and it doesn't display in the next page. I read the manual but I
> can not find an argument of framed that can do this job.


Use textbackground.

\definetextbackground
  [myframe]
  [location=paragraph,
   framecolor=black,
   background=]

\starttext
\startmyframe
\dorecurse{20}{\input knuth\par}
\stopmyframe
\stoptext

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] [framed] how to deal with big text?

2011-03-05 Thread Milton Galo Patricio Inostroza Aguilera
Hi,

I'm a new user of context.  I'm working with \framed and I have a
problem when I try to fit a big text in it :-(.  The system cuts the
text and it doesn't display in the next page. I read the manual but I
can not find an argument of framed that can do this job.

An example of my code is the following:

\framed[align={stretch}]{

a big text..

}

Regards,

-- 
Milton
___
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] framed float with offset

2011-01-01 Thread Sanjoy Mahajan
Peter,

> \placefigure[right]{This is ok!}{\framed[offset=20pt,
> background=color,
> backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}}
> \input knuth


Ah, I had tried almost that recipe (of wrapping the \externalfigure in a
\framed) but had used backgroundoffset and frameoffset.  Yours works
perfectly.  I wikified the recipe at



-Sanjoy

`Until lions have their historians, tales of the hunt shall always
 glorify the hunters.'  --African Proverb
___
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] framed float with offset

2011-01-01 Thread Peter Münster
Sanjoy Mahajan  writes:

> \starttext
> \placefigure[right,none]{}%
> {\externalfigure[sample/cow.pdf]%
> [scale=500,
>  frame=on, frameoffset=20pt,
>  framecolor=black,
>  background=color, backgroundcolor=lightgray,
>  backgroundoffset=20pt]}
>
> \input knuth
> \stoptext
>
> But the frame and background bleed into the text.

Hello Sanjoy,

\starttext
\placefigure[right]{Problem: offset=20pt ignored here!}
{\externalfigure[sample/cow.pdf]
  [scale=500, frame=on, offset=20pt,
background=color, backgroundcolor=lightgray]}
\input knuth

\placefigure[right]{This is ok!}{\framed[offset=20pt, background=color,
backgroundcolor=lightgray]{\externalfigure[sample/cow.pdf][scale=500]}}
\input knuth
\stoptext

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] framed float with offset

2011-01-01 Thread Sanjoy Mahajan
Is there a way to have figures placed on a slightly larger colored
background and then have paragraph text flow around the enlarged area?

I tried the following (using ver 2009.11.26 16:28 MKII):

\setupcolors[state=start]
\starttext
\placefigure[right,none]{}%
{\externalfigure[sample/cow.pdf]%
[scale=500,
 frame=on, frameoffset=20pt,
 framecolor=black,
 background=color, backgroundcolor=lightgray,
 backgroundoffset=20pt]}

\input knuth
\stoptext

But the frame and background bleed into the text.

I tried wrapping the externalfigure in a \framed, and also wrapping that
in an \vbox or an \hbox (desperate measures, I admit).  But somehow the
\placefigure always knew exactly the size of the cow itself and used
only that information, rather than the size of the enlarged background.

Any suggestions appreciated.  (I'd wikify in the framed section.)

-Sanjoy

___
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] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 7:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


imagine how more better mkiv would have been if Mojca had been using it ...

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] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 8:11, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


I will believe that you are writing something when I see your thesis :-)
I have heard rumours that it exists.


We expect her to take a copy to the conference. At least we need to 
check if she used tex at all. Or maybe it was just excessive use of 
\fakewords and \fakeformula after page 10.


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] framed text over multiple pages

2010-08-30 Thread Hans Hagen

On 30-8-2010 7:42, Mojca Miklavec wrote:

On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


hey, these textbackgrounds have been in mkii for a long time ... 
actually I must see if I can make them better in mkiv


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] framed text over multiple pages

2010-08-30 Thread Aditya Mahajan

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.


I will believe that you are writing something when I see your thesis :-) I 
have heard rumours that it exists.



At the moment I have

\startframedtext
 [width=\textwidth,
 background=color,
 backgroundcolor=mycolor1,
 frame=off,
 leftframe=on,
 framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages.


backgrounds and textbackgrounds. IIRC, they are documented in the details
manual.


Oh, sure, thanks a lot. However ... \definetextbackground doesn't seem
to support leftframe=on. That means that I need to use metapost to
draw it ... (or just continue searching) ... or even better ... ignore
my idea to draw the left frame and just continue writing ...


Drawing a left frame using a metapost shouldn't be too hard.

draw leftboundary OverlayBox withpen pencircle scaled 1bp withcolor red ;

(or something like that).

Aditya___
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] framed text over multiple pages

2010-08-30 Thread Mojca Miklavec
On Mon, Aug 30, 2010 at 19:23, Aditya Mahajan wrote:
> On Mon, 30 Aug 2010, Mojca Miklavec wrote:
>
>> I'm trying to find the command (in manual, wiki or mailing list) that
>> enables using background behind text spanning over multiple pages.
>
> Hey, you are getting rusty :-)

I am. In past I used to spend much longer solving ConTeXt-related
issues than writing reports which turned out to be a very bad strategy
for the sake of writing speed. On top of that, I didn't manage to
follow the MKIV development anywhere closely ... and this is
definitely one of areas where much more is possible in MKIV than it
used to be possible in MKII.

If I spend too much time solving ConTeXt-related issues this week, I
will run out of time and won't be able to go to the ConTeXt conference
... :) :) :) I don't want to repeat the history this month.

>> At the moment I have
>>
>> \startframedtext
>>  [width=\textwidth,
>>  background=color,
>>  backgroundcolor=mycolor1,
>>  frame=off,
>>  leftframe=on,
>>  framecolor=mycolor2]
>>
>> but I remember that there used to be a command that allowed doing the
>> same, but spanning the text over multiple pages.
>
> backgrounds and textbackgrounds. IIRC, they are documented in the details
> manual.

Oh, sure, thanks a lot. However ... \definetextbackground doesn't seem
to support leftframe=on. That means that I need to use metapost to
draw it ... (or just continue searching) ... or even better ... ignore
my idea to draw the left frame and just continue writing ...

Thanks,
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] framed text over multiple pages

2010-08-30 Thread Aditya Mahajan

On Mon, 30 Aug 2010, Mojca Miklavec wrote:


Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.


Hey, you are getting rusty :-)


At the moment I have

\startframedtext
 [width=\textwidth,
  background=color,
  backgroundcolor=mycolor1,
  frame=off,
  leftframe=on,
  framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages.


backgrounds and textbackgrounds. IIRC, they are documented in the details 
manual.


Aditya
___
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] framed text over multiple pages

2010-08-30 Thread Mojca Miklavec
Dear list,

I'm trying to find the command (in manual, wiki or mailing list) that
enables using background behind text spanning over multiple pages.

At the moment I have

\startframedtext
  [width=\textwidth,
   background=color,
   backgroundcolor=mycolor1,
   frame=off,
   leftframe=on,
   framecolor=mycolor2]

but I remember that there used to be a command that allowed doing the
same, but spanning the text over multiple pages. I would be grateful
for any hint/pointer to the manual. I've found a document that does
underlining of words in paragraphs, but this seems like an easier
problem anyway.

Thank you very much,
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] \framed \placelist

2010-08-17 Thread Andreas Harder

Am 17.08.2010 um 00:49 schrieb taco:

> Andreas Harder wrote:
>> Hi all,
>> if I try to put \placelist in \framed an error (You can't use `\prevdepth' 
>> in restricted horizontal mode) occurs.
>> \starttext
>> \framed
>>  [background=color,backgroundcolor=gray]
>>  {\placelist[section]}
>> \dorecurse{10}{\section{test #1} \input tufte }
>> \stoptext
>> So what is the way to put a background behind the list?
> 
> putting it in a \vbox works, but \startframedtext ... \stopframedtext is 
> nicer:
> 
> \startframedtext
>  [background=color,width=\the\hsize,backgroundcolor=gray]
>  \placelist[section]
> \stopframedtext

Thanks Taco, this helps.

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
___


Re: [NTG-context] \framed \placelist

2010-08-16 Thread taco

Andreas Harder wrote:

Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?


putting it in a \vbox works, but \startframedtext ... \stopframedtext is 
nicer:


\startframedtext
  [background=color,width=\the\hsize,backgroundcolor=gray]
  \placelist[section]
\stopframedtext


Best wishes,
Taco
___
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] \framed \placelist

2010-08-16 Thread Andreas Harder
Hi all,

if I try to put \placelist in \framed an error (You can't use `\prevdepth' in 
restricted horizontal mode) occurs.

\starttext
\framed
  [background=color,backgroundcolor=gray]
  {\placelist[section]}
\dorecurse{10}{\section{test #1} \input tufte }
\stoptext

So what is the way to put a background behind the list?

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
___


Re: [NTG-context] \framed

2010-06-27 Thread Alan BRASLAU
On Sunday 27 June 2010 08:27:44 Peter Münster wrote:
> 
> You need \dontleavehmode (see also here, question 21:
> http://wiki.contextgarden.net/FAQ )
> 

Of course. I remembered this afterwords.
We need to explain this more clearly in the documentation
under \framed{} (which contains discussion on vertical spacing)

\dontleavehmode does not appear in the manual.
I will try to correct this...

The Gardien of the Main_Page should add
http://wiki.contextgarden.net/FAQ
(suggestion: just after Mailing Lists)

Alan
___
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] \framed[height=broad] vs \framed[height=fit]

2010-04-21 Thread Wolfgang Schuster

Am 21.04.10 05:34, schrieb Aditya Mahajan:

Hi,

I was updating the wiki page on \framed and realized that I do not 
know the difference between height=broad|fit in \framed. Reading 
pack-rul suggests that both should behave similarly. The following 
example from pack-rul also shows no difference.


as you can see here (pack-rul.mkiv) both values result in \boxhasheightfalse
   \ifx\localheight\v!fit
 \boxhasheightfalse % no longer: \boxhasstrutfalse
   \else\ifx\localheight\v!broad
 \boxhasheightfalse

Is there a difference between the two? If not, why do we have two 
values then?

I think we have both because you can 'fit' and 'broad' for width but when
width and height should follow the same rules i say 'width=broad' should
result in 'height=\vsize' because 'width=broad' is equal to 'width=\hsize'.

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] \framed[height=broad] vs \framed[height=fit]

2010-04-20 Thread Aditya Mahajan

Hi,

I was updating the wiki page on \framed and realized that I do not know 
the difference between height=broad|fit in \framed. Reading pack-rul 
suggests that both should behave similarly. The following example from 
pack-rul also shows no difference.


\starttext
\bgroup
\showstruts
\dontcomplain
\startlinecorrection
\halign{#\enskip&#\enskip&#\enskip&#\enskip&#\enskip&#\cr
  \framed[width=.2\hsize, height=.2\hsize, align=]  {a\par b\par c}&
  \framed[width=.2\hsize, height=broad,align=]  {a\par b\par c}&
  \framed[width=.2\hsize, height=fit,  align=]  {a\par b\par c}&
  \framed[width=fit,  height=.2\hsize, align=]  {a\par b\par c}&
  \framed[width=fit,  height=broad,align=]  {a\par b\par c}&
  \framed[width=fit,  height=fit,  align=]  {a\par b\par c}\cr
  \noalign{\vskip1em}
  \framed[width=.2\hsize, height=.2\hsize, align=yes]   {a\par b\par c}&
  \framed[width=.2\hsize, height=broad,align=yes]   {a\par b\par c}&
  \framed[width=.2\hsize, height=fit,  align=yes]   {a\par b\par c}&
  \framed[width=fit,  height=.2\hsize, align=yes]   {a\par b\par c}&
  \framed[width=fit,  height=broad,align=yes]   {a\par b\par c}&
  \framed[width=fit,  height=fit,  align=yes]   {a\par b\par c}\cr
  \noalign{\vskip1em}
  \framed[width=.2\hsize, height=.2\hsize, align=right] {a\par b\par c}&
  \framed[width=.2\hsize, height=broad,align=right] {a\par b\par c}&
  \framed[width=.2\hsize, height=fit,  align=right] {a\par b\par c}&
  \framed[width=fit,  height=.2\hsize, align=right] {a\par b\par c}&
  \framed[width=fit,  height=broad,align=right] {a\par b\par c}&
  \framed[width=fit,  height=fit,  align=right] {a\par b\par c}\cr
  \noalign{\vskip1em}
  \framed[width=.2\hsize, height=.2\hsize, align=left]  {a\par b\par c}&
  \framed[width=.2\hsize, height=broad,align=left]  {a\par b\par c}&
  \framed[width=.2\hsize, height=fit,  align=left]  {a\par b\par c}&
  \framed[width=fit,  height=.2\hsize, align=left]  {a\par b\par c}&
  \framed[width=fit,  height=broad,align=left]  {a\par b\par c}&
  \framed[width=fit,  height=fit,  align=left]  {a\par b\par c}\cr
  \noalign{\vskip1em}
  \framed[width=.2\hsize, height=.2\hsize, align=middle] {a\par b\par c}&
  \framed[width=.2\hsize, height=broad,align=middle] {a\par b\par c}&
  \framed[width=.2\hsize, height=fit,  align=middle] {a\par b\par c}&
  \framed[width=fit,  height=.2\hsize, align=middle] {a\par b\par c}&
  \framed[width=fit,  height=broad,align=middle] {a\par b\par c}&
  \framed[width=fit,  height=fit,  align=middle] {a\par b\par 
c}\cr}

\stoplinecorrection
\blank[2*big]
\egroup
\stoptext

Is there a difference between the two? If not, why do we have two values 
then?


Aditya
___
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] Framed text in paragraphs too wide

2010-04-06 Thread Hans Hagen

On 6-4-2010 5:11, Matthias Weber wrote:

Thanks Aditya,

that is what I need. I don't really understand the difference between
framedtext and textbackground, but all my framing and coloring
desires seem to be realizable with framedtext.


framedtext is the older mechanism, with some limitations but pure tex

textbackground is more advanced using metapost; it can nest backgrounds, 
have inline backgrounds, etc



-
  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] Framed text in paragraphs too wide

2010-04-05 Thread Matthias Weber

Thanks Aditya,

that is what I need. I don't really understand the difference between  
framedtext and textbackground, but all my framing and coloring

desires seem to be realizable with framedtext.

Matthias


On Apr 5, 2010, at 7:50 PM, Aditya Mahajan wrote:


On Mon, 5 Apr 2010, Matthias Weber wrote:


Dear all,

my problem with framed text persists in paragraphs: The frame  
extends over the entire page as soon as the

paragraph has more than one line. Problem exists in mkii and mkiv.
Minimal example below.


I have seen this before when trying to use textbacground to  
highlight stuff in tables. I don't know a solution, but if want to  
highlight whole paragrah, and do not want the ability to split  
across pages, you can use framed texts.


\setupcolors[state=start]
\setupcolor[rgb]


\defineframedtext
 [defbackground]
 [backgroundcolor=lightgray,
  background=color,
  width=broad,
  frame=on,
  location=paragraph]


\defineparagraphs
 [TwoThird][n=2]
\setupparagraphs
 [TwoThird]
 [1]
 [width=.66\textwidth]


\starttext

\startTwoThird
\startdefbackground
The frame is too wide.
The frame is too wide.
The frame is too wide.
\stopdefbackground
%
\nextTwoThird
\placefigure
[here]
[figure:cow]
{Mooh}
{\externalfigure[cow][width=.3\textwidth]}
\stopTwoThird

\stoptext

Aditya
___
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] Framed text in paragraphs too wide

2010-04-05 Thread Aditya Mahajan

On Mon, 5 Apr 2010, Matthias Weber wrote:


Dear all,

my problem with framed text persists in paragraphs: The frame extends over 
the entire page as soon as the

paragraph has more than one line. Problem exists in mkii and mkiv.
Minimal example below.


I have seen this before when trying to use textbacground to highlight 
stuff in tables. I don't know a solution, but if want to highlight whole 
paragrah, and do not want the ability to split across pages, you can use 
framed texts.


\setupcolors[state=start]
\setupcolor[rgb]


\defineframedtext
  [defbackground]
  [backgroundcolor=lightgray,
   background=color,
   width=broad,
   frame=on,
   location=paragraph]


\defineparagraphs
  [TwoThird][n=2]
\setupparagraphs
  [TwoThird]
  [1]
  [width=.66\textwidth]


\starttext

\startTwoThird
\startdefbackground
The frame is too wide.
The frame is too wide.
The frame is too wide.
\stopdefbackground
%
\nextTwoThird
\placefigure
[here]
[figure:cow]
{Mooh}
{\externalfigure[cow][width=.3\textwidth]}
\stopTwoThird

\stoptext

Aditya
___
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] Framed text in paragraphs too wide

2010-04-05 Thread Matthias Weber

Dear all,

my problem with framed text persists in paragraphs: The frame extends  
over the entire page as soon as the

paragraph has more than one line. Problem exists in mkii and mkiv.
Minimal example below.

Thanks,

Matthias


\setupcolors[state=start]
\setupcolor[rgb]


\definetextbackground   [defbackground]
[backgroundcolor=lightgray,
background=color,
frame=on,
location=paragraph]


\defineparagraphs   [TwoThird][n=2]
\setupparagraphs[TwoThird]
[1]
[width=.66\textwidth]


\starttext

\startTwoThird
\starttextbackground[defbackground]
The frame is too wide.
The frame is too wide.
The frame is too wide.
\stoptextbackground
%
\nextTwoThird
\placefigure
[here]
[figure:cow]
{Mooh}
{\externalfigure[cow][width=.3\textwidth]}
\stopTwoThird

\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] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
\setupinterlinespace without changing offset does the trick.

Many thanks,
Vianney

On Mon, Apr 5, 2010 at 14:13, Peter Münster  wrote:
> On Mon, Apr 05 2010, Vianney le Clément wrote:
>
>> \setupframed
>>   [frame=none,
>>    offset=0pt,
>>    location=top]
>
> Hello,
>
> I cannot explain why, but offset=overlay seems to be slightly better.
>
>
>> \blank\sl
>
> \setupinterlinespace
>
> Cheers, Peter
>
> --
> Contact information: http://pmrb.free.fr/contact/
>
>
> ___
> 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] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Peter Münster
On Mon, Apr 05 2010, Vianney le Clément wrote:

> \setupframed
>   [frame=none,
>offset=0pt,
>location=top]

Hello,

I cannot explain why, but offset=overlay seems to be slightly better.


> \blank\sl

\setupinterlinespace

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] \framed[location=top] and slanted tex gyre bonum

2010-04-05 Thread Vianney le Clément
Hello,

Yet another new ConTeXt user here. To briefly introduce myself, I am a
computer scientist interested in typography as a hobby. Up to now, I
did most things in LaTeX (sometimes resorting to ugly TeX hacking).
Recently I gave ConTeXt MkIV a try and am quite happy with it.

Now my question: I have some problems with the vertical alignment of
\framed and some slanted fonts. Using the latest beta, the test file
at the end of this message adds a slight whitespace in the two last
blocks (using a slanted font). This does not happen when using the
default Latin Modern font. Is this a bug or am I doing something
wrong?

Vianney

\showstruts
\usemodule[simplefonts]
\setmainfont[Tex Gyre Bonum]
\setupframed
  [frame=none,
   offset=0pt,
   location=top]
\defineoverlay[bg][]
\starttext
\strut First line\par
\strut Second line\par
\strut Third line\par

\blank

\strut First line\par
\framed{\strut Second line}\par
\strut Third line\par

\blank\sl

\strut First line\par
\strut Second line\par
\strut Third line\par

\blank

\strut First line\par
\framed{\strut Second line}\par
\strut Third line\par

\blank

\strut First line\par
\framed[background=bg]{\strut Second line}\par
\strut Third line\par
\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] Framed text with arrows

2010-02-19 Thread Xan

En/na Alan BRASLAU ha escrit:

On Friday 19 February 2010 14:16:39 Xan wrote:
  

How can we change the width, height and color of the second node
("chart") in this example:

\usemodule[chart]
\setupFLOWcharts[height=3\lineheight]

\startFLOWchart[example]
\startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [rl] {chart}
\stopFLOWcell
\startFLOWcell
  \name {chart}
  \location{2,1}
  \text {Charts}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[example]

PS: I cc mailing list, because I think it's general interest topic.



Yes, I am interested.

  


Great! ;-)

I do not see how one can change the width and height of a node
as I believe that the grid is defined through \setupFLOWcharts.

However, it could eventually be interesting to be able to modify
the frame size within a cell
\startFLOWcell [width=]
or
\startFLOWcell [scale=]
but this is not (yet) a feature...

I see no reason why one cannot set the color by FLOWcell,
but the obvious
\startFLOWcell [framecolor=red,backgroundcolor=yellow]
does not seem to work.
  

Yes, it's the natural way. I think the module could be improve in that way.

Xan.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   3   >