[NTG-context] Re: framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
Forget this question: location=top did the trick.
Should have found earlier. Rest of the day contemplating over the fact it took 
me so long to find out đŸ„Č

yours sincerely
dr. Hans van der Meer



> On 31 May 2024, at 12:13, Hans van der Meer via ntg-context 
>  wrote:
> 
> 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
> ___

___
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 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] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
On Sat, Jan 27, 2024 at 19:12 (+0100), Pablo Rodriguez via ntg-context wrote:

> On 1/27/24 17:44, Jim wrote:
>> The wiki page for \setupexternalfigure says
>>  "Show frame around image. Most(?) options of \setupframed are usable!"

Hi Pablo,

> I’m afraid that this is a too generous statement.

I can't disagree with you!  ;-)

> https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=218 shows
> which keys and values \setupexternalfigure allows.

Thanks for that pointer.

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

> I would say, that the offset and frameoffset don’t seem to be available
> in \setupexternalfigure.

And yet, experiments suggest that frameoffset does indeed do something (in,
specifically, \externalfigure, I didn't yet try \setupexternalfigure).

Given that frameoffset does something and is not mentioned in setup-en.pdf,
I will add to my wonderment

(2') the summary in setup-en.pdf is incomplete.

>> (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.

> I hope it is clear now.

Well, given that (at least on my computer, with context updated a couple of
days ago) frameoffset does do something.  So I still see an inconsistency.

I would be happy to help out by editing the wiki to accurately describe
reality.  The problem is, I'm not sure what reality is supposed to be on
this point.  For example, if I edited the wiki to say that offset has no
effect in \setupexternalfigure, and it turns out that some (recent?) change
to something else broke 'offset=', then I wouldn't want to add
misinformation.

>> 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.)

> To get offset in the frame of the image, you need a different frame from
> the external figure itself (or so it seems).

As I mentioned, on my system I can get a frame offset from the image
without using \frame, but unfortunately it is the type of frame which is
"invisible" to the layout of the page.

> I hope it helps,

It does (a bit), thanks again for your time.

Jim
___
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] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
On 1/27/24 17:44, Jim wrote:
> The wiki page for \setupexternalfigure says
>  "Show frame around image. Most(?) options of \setupframed are usable!"

Hi Jim,

I’m afraid that this is a too generous statement.

https://www.pragma-ade.com/general/qrcs/setup-en.pdf#page=218 shows
which keys and values \setupexternalfigure allows.

> 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

I would say, that the offset and frameoffset don’t seem to be available
in \setupexternalfigure.

> (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.

I hope it is clear now.

> 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.)

To get offset in the frame of the image, you need a different frame from
the external figure itself (or so it seems).

I hope it helps,

Pablo
___
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] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't 
work in framed environment. > > This is a short code: > > 
\definefontfeature[default][default][expansion=quality,protrusion=quality] > > 
\setupalign[hz,hanging] > > \showframe > > \starttext > > \input tufte > > 
\blank > > \framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte 
}  \framed[...,align={normal,hz,hanging},...]{...}  Wolfgang  Thank you for the 
super fast answer!Another question related to my sample code:Why the right edge 
of the text hangs into the margin when I use this 
code:\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte 
}Thanks,bcsikos___
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] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin 
doesn't work in framed environment.This is a short 
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
 tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input 
tufte 
}\blank\setlocalhsize\framed[frame=off,location=top,align=normal,offset=0pt,width=local]{\input
 tufte }\stoptextThe compiled pdf is attached as protrusion-in-framed.pdf.Is is 
possible to make protrusion work in framed?I need to use framed in itemize to 
prevent splittinf of items between pages.Thanks,bcsikos

protrusion-in-framed.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 / 
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] Re: protrusion in framed

2023-10-20 Thread Wolfgang Schuster

Csikos Bela schrieb am 20.10.2023 um 14:53:

Hello:

Protrusioin doesn't work in framed environment.

This is a short code:

\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupalign[hz,hanging]

\showframe

\starttext

\input tufte

\blank

\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte }


\framed[...,align={normal,hz,hanging},...]{...}

Wolfgang

___
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] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short 
code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input
 tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input 
tufte 
}\blank\setlocalhsize\framed[frame=off,location=top,align=normal,offset=0pt,width=local]{\input
 tufte }\stoptextThe compiled pdf is attached as protrusion-in-framed.pdf.Is is 
possible to make protrusion work in framed?I need to use framed in itemize to 
prevent splittinf of items between pages.Thanks,bcsikos___
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] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster

Jeroen schrieb am 16.09.2023 um 22:28:
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:

[...]

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


\defineenumeration
  [Counter]
  [  title=yes,
   alternative=empty,
  text=Code Fragment,
   way=bychapter,
prefix=yes,
before=\startCountFramedText,
 after=\stopCountFramedText]

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

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

2023-09-17 Thread Jeroen
That works fine except that the following line does only issue the
sequential number and not the chapter number.

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

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);
  path a;
  a := (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner b,h);
  drawoptions (withpen pencircle scaled 1pt withcolor black);
  draw a;
  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}]

\defineenumeration
  [Code]
  [title=yes,
   alternative=empty,
   before=\startCountFramedText,
   after=\stopCountFramedText,
   left={\somenamedheadnumber{chapter}{current}.}]

\starttext

\startchapter
  [title=first]

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

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

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

\stopchapter

\startchapter
  [title=second]

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

\stopchapter

\stoptext

Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks :

>
>
> > On 16 Sep 2023, at 21:28, Jeroen  wrote:
> >
> > 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.
>
> Amemd the \defineenumeration as follows:
>
> \defineenumeration
>   [Counter]
>   [title=yes,
>alternative=empty,
>before=\startCountFramedText,
>after=\stopCountFramedText,
>left={\somenamedheadnumber{chapter}{current}:}]
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> 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
>
> ___
___
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
___

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

2023-09-17 Thread Bruce Horrocks


> On 16 Sep 2023, at 21:28, Jeroen  wrote:
> 
> 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.

Amemd the \defineenumeration as follows:

\defineenumeration
  [Counter]
  [title=yes,
   alternative=empty,
   before=\startCountFramedText,
   after=\stopCountFramedText,
   left={\somenamedheadnumber{chapter}{current}:}]

—
Bruce Horrocks
Hampshire, UK

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

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

[NTG-context] Re: depth of framed

2023-07-16 Thread Wolfgang Schuster

Hans van der Meer via ntg-context schrieb am 16.07.2023 um 12:14:
I cannot get rid of some depth in framed. Used various combinations of 
the depth and backgrounddepth setting, nothing helps.
What am I doing wrong? Or is something in \framed not working in the 
way I expected?


1. Include your MWE in the mail because attachments aren't available in 
the mail archive.


2. Add "strut=no" to your framed settings to get rid of the depth.

Wolfgang

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

[NTG-context] depth of framed

2023-07-16 Thread Hans van der Meer via ntg-context
I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps.What am I doing wrong? Or is something in \framed not working in the way I expected?See the accompanying MWE.
yours sincerelydr. Hans van der Meer






framedepth.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 / 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] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote:

> Many thanks. Is there a proper way to add some space (a couple of pt or em)
> to the left and the right of the text itself so the frame does not get so
> close to the text?

\framed[loffset=0.2ex, roffset=0.2ex]{...}

Also see: https://wiki.contextgarden.net/Command/setupframed

Aditya
___
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] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
Many thanks. Is there a proper way to add some space (a couple of pt or em)
to the left and the right of the text itself so the frame does not get so
close to the text?

Op vr 19 mei 2023 om 14:10 schreef Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl>:

> Jeroen via ntg-context schrieb am 19.05.2023 um 14:22:
> > In order to get some inline framed verbatim text, I have in the past
> > always used the following:
> >
> > \starttext
> >
> > This is an
> > \inframed
> >   [frame=on,
> >   corner=00,
> > radius=2mm,offset=-1.5pt]
> >   {\ttx \bf example}
> >
> > \stoptext
> >
> > Since this has come-up more and more often, I created the following:
> >
> > \define[1]\infr{
> > \inframed
> > [frame=on,
> >   corner=00,
> >   radius=2mm,offset=-1.5pt]{#1}}
> >
> > \starttext
> >
> > This is an \infr{example}
> >
> > \stoptext
> >
> > This works fine except that I cannot get the text in
> > verbatim/teletype. I have tried style=mono and style={\ttx \bf} but
> > nothing seems to work.
>
> \framed has no style key, you have to use the foregroundstyle to change
> font style, size etc.
>
> To create your own \framed (or \inframed when you add location=low) you
> can use the \defineframed command:
>
> \defineframed
>[infr]
>[location=low,
> frame=on,
> corner=00,
> radius=2mm,
> %offset=-1.5pt,
> foregroundstyle=\tt\bfx]
>
> \starttext
>
> This is an \infr{example}
>
> \stoptext
>
> Wolfgang
>
>
> ___
> 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
>
> ___
>
___
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] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context

Jeroen via ntg-context schrieb am 19.05.2023 um 14:22:
In order to get some inline framed verbatim text, I have in the past 
always used the following:


\starttext

This is an
\inframed
  [frame=on,
  corner=00,
radius=2mm,offset=-1.5pt]
  {\ttx \bf example}

\stoptext

Since this has come-up more and more often, I created the following:

\define[1]\infr{
\inframed
[frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]{#1}}

\starttext

This is an \infr{example}

\stoptext

This works fine except that I cannot get the text in 
verbatim/teletype. I have tried style=mono and style={\ttx \bf} but 
nothing seems to work.


\framed has no style key, you have to use the foregroundstyle to change 
font style, size etc.


To create your own \framed (or \inframed when you add location=low) you 
can use the \defineframed command:


\defineframed
  [infr]
  [location=low,
   frame=on,
   corner=00,
   radius=2mm,
   %offset=-1.5pt,
   foregroundstyle=\tt\bfx]

\starttext

This is an \infr{example}

\stoptext

Wolfgang

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


[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always
used the following:

\starttext

This is an
\inframed
  [frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]
  {\ttx \bf example}

\stoptext

Since this has come-up more and more often, I created the following:

\define[1]\infr{
\inframed
  [frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]{#1}}

\starttext

This is an \infr{example}

\stoptext

This works fine except that I cannot get the text in verbatim/teletype. I
have tried style=mono and style={\ttx \bf} but nothing seems to work.

Thanks
Jeroen
___
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] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread æŽć»¶ç‘ž
Gerben Wierda via ntg-context  äșŽ2023ćčŽ5月17æ—„ć‘šäž‰ 06:42ć†™é“ïŒš

> I did a simple thing, replace a \framed by \framedtext to get
> \placeinitial working but that doesn't seem to work automatically:
>
> %==
> \starttext
> \setupinitial[n=2,text=Knuth]\placeinitial\input knuth
>
> \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input 
> knuth
> }
>
> \framedtext[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input 
> knuth
> }
>
> \stoptext
> %==
>
>
There is a workaround:

\startframedtext
\starthanging[left,n=2]{\scale[lines=2]{\bf Knuth}}
\input knuth
\stophanging
\stopframedtext

-- 
Best regards,

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


[NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread Gerben Wierda via ntg-context
I did a simple thing, replace a \framed by \framedtext to get \placeinitial 
working but that doesn't seem to work automatically:

%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth

\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth 
}

\framedtext[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input 
knuth }

\stoptext
%==

Is there a way I can get a working \placeinitial inside a \framed or \frametext?

ConTeXt  ver: 2023.02.23 21:26 LMTX  fmt: 2023.2.25  int: english/english

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> On 15 May 2023, at 18:18, Gerben Wierda via ntg-context  
> wrote:
> 
> I'd like to use a drop cap inside a \framed, but it doesn't work.
> 
> Minimal example:
> 
> %==
> \starttext
> \setupinitial[n=2,text=Knuth]\placeinitial\input knuth
> 
> \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input 
> knuth }
> \stoptext
> %==
> 
> The first drop cap works, the second is empty.
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
> <https://newsie.social/@gctwnl>)
> R&A IT Strategy <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> ___
> 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
> ___

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


[NTG-context] \placeinitial inside \framed?

2023-05-15 Thread Gerben Wierda via ntg-context
I'd like to use a drop cap inside a \framed, but it doesn't work.

Minimal example:

%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth

\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth 
}
\stoptext
%==

The first drop cap works, the second is empty.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
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] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context

Oliver Sieber via ntg-context schrieb am 19.10.2022 um 11:31:

Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

[...]


You have to use the textbackground mechanism to create a block of text 
where floats work as expected.


\definetextbackground
  [Oliver]
  [ location=paragraph,
  corner=round,
   rulethickness=2pt,
  framecolor=black,
   topoffset=1em,
    bottomoffset=1em,
  leftoffset=1em,
 rightoffset=1em,
  before=\blank,
   after=\blank,
  background=]

\setupfloats
  [freeregion=no]

\definedescription
  [Definition]
  [alternative=top,
  text={Definition: },
 title=yes,
    before=\startOliver,
 after=\stopOliver,
 inbetween={\blank[medium]}]

\startbuffer[sampletext]
Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake 
sweet pastry. Tiramisu danish jelly tootsie roll tart gummi bears. 
Carrot cake chupa chups cake wafer lemon drops lemon drops tiramisu. 
Chocolate lemon drops sugar plum cheesecake jelly beans sugar plum. 
Tootsie roll cupcake jujubes pie chocolate bar bear claw chupa chups 
shortbread. Candy candy canes jelly-o jelly beans sugar plum muffin 
danish donut. Bonbon lemon drops powder jujubes marshmallow biscuit 
halvah. Powder carrot cake caramels chocolate cake carrot cake jelly-o. 
Topping danish tootsie roll gummi bears oat cake jujubes. Sweet candy 
canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon 
drops macaroon gummies lemon drops tiramisu chocolate cake. Cupcake 
sugar plum shortbread gummi bears tootsie roll. Chocolate cake sugar 
plum macaroon candy canes chocolate bar donut cake icing tootsie roll.

\stopbuffer

\starttext

\startOliver
{\bf Definition: Hello World}
\blank[medium]
\placefigure[right,none]{This is an example of a 
logo.}{\externalfigure[dummy]}

\getbuffer[sampletext]
\stopOliver

\startDefinition[title={Hello World}]
\placefigure[right,none]{This is an example of a 
logo.}{\externalfigure[dummy]}

\getbuffer[sampletext]
\stopDefinition

\stoptext

Wolfgang

___
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] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear Uschi

Thanks for the example. But unfortunately it behaves similiar. As soon as I 
want to place the figure to the right by using \placefigure
[right]
 with floating text to the left. The framed environment behaves 
strange, i.e. it seems to ignore the image.

Just using a centered image works perfectly. I included everything in this 
code, to show exactly, what is not working.

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Box with centered image} \blank[medium] 

\input khatt-en

\placefigure[none]{This is an example of a logo.}{\externalfigure[dummy]}
}

\blank[2cm]



\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Faulty box with floating text, image to the right} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

\input khatt-en
}

\blank[2cm]

{\bf Floating text with image to the right, without box} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

\input khatt-en
\stoptext

Any ideas? 

Thanks a lot in advance.



> Am 19.10.2022 um 13:52 schrieb Ursula Hermann via ntg-context - ntg-context 
> at ntg.nl :
> 
> Dear Oliver, 
> 
> maybe something like this? 
> This is my example: 
> \starttext
> 
> \setuppapersize
>  [A5]
> 
> \setupexternalfigures
>  [location=default]
> 
> \setupindenting
>  [yes, small]
> 
> \setupwhitespace
>  [small]
> 
> \defineframedtext
>  [prettyblock]
>  [width=10cm,
>   indenting={yes, small},
>   background=color, backgroundcolor=lightgreen,
>   foreground=color, foregroundcolor=black,
>   offset=2mm,
>   align=flushleft]
> 
> \starttext
> 
> \startprettyblock
> \setupindenting[next]
>  The Earth, as a habitat for animal life, is in old age and has a fatal
>  illness. Several, in fact.
> 
>  It would be happening whether humans had ever evolved or not.
> 
>  \placefigure
> [][fig:church]
> {Stephanus Church.}
> {\externalfigure[ma-cb-24][width=.4\textwidth]}
> 
> \stopprettyblock
> \setupindenting[next]
> Below, we have two separate columns; but up here, for the nonce, we have but
> the one.
> 
> \startcolumns [n=2]
>  Text, text, text \dots
>  all in the first column
> \column
>  Words, words, words \dots
>  all in the second column.
>  And look ye here! Even more words!
> \stopcolumns
> 
> \stoptext
> 
> Many regards
> Uschi 
> 
> -UrsprĂŒngliche Nachricht-
> Von: ntg-context  Im Auftrag von Oliver Sieber 
> via ntg-context
> Gesendet: Mittwoch, 19. Oktober 2022 11:31
> An: ntg-context@ntg.nl
> Cc: Oliver Sieber 
> Betreff: [NTG-context] Floating Figure in framed-environment
> 
> Dear ConTeXt Users
> 
> I am relatively new to context and I am suffering with a problem with the 
> framed environment.
> 
> I want to use a framed textbox for Definitions in my script. I also want to 
> use floating figures.  But this does not work and I haven’t found out why. 
> Maybe I totally use it the wrong way. I would appreciate if someone could 
> help me or has a tipp.
> 
> Here is an example code, where the figure does not behave as expected, i.e. 
> the figure is behind the text:
> 
> \starttext
> \framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
> offset=1em,background=color,framecolor=black]
> {{\bf Definition: Hello World} \blank[medium] 
> 
> \placefigure[right, none]{This is an example of a 
> logo.}{\externalfigure[dummy]}
> 
> Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
> pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake 
> chupa chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon 
> drops sugar plum cheesecake jelly beans sugar plum. Tootsie roll cupcake 
> jujubes pie chocolate bar bear claw chupa chups shortbread. Candy candy canes 
> jelly-o jelly beans sugar plum muffin danish donut. Bonbon lemon drops powder 
> jujubes marshmallow biscuit halvah. Powder carrot cake caramels chocolate 
> cake carrot cake jelly-o. Topping danish tootsie roll gummi bears oat cake 
> jujubes. Sweet candy canes cotton candy pie topping. Jelly-o carrot cake ice 
> cream lemon drops macaroon gummies lemon drops tiramisu chocolate cake. 
> Cupcake sugar plum shortbread gummi bears tootsie roll. Chocolate cake sugar 
> plum macaroon candy canes chocolate bar donut cake icing tootsie roll.
> }
> \stoptext
> 
> 
> Best regards
> Oli
> ___
> If your 

Re: [NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
Dear Oliver, 

maybe something like this? 
This is my example: 
\starttext

\setuppapersize
  [A5]

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock
\setupindenting[next]
  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

  \placefigure
[][fig:church]
{Stephanus Church.}
{\externalfigure[ma-cb-24][width=.4\textwidth]}

\stopprettyblock
\setupindenting[next]
Below, we have two separate columns; but up here, for the nonce, we have but
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!
\stopcolumns

\stoptext

Many regards
Uschi 

-UrsprĂŒngliche Nachricht-
Von: ntg-context  Im Auftrag von Oliver Sieber via 
ntg-context
Gesendet: Mittwoch, 19. Oktober 2022 11:31
An: ntg-context@ntg.nl
Cc: Oliver Sieber 
Betreff: [NTG-context] Floating Figure in framed-environment

Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Definition: Hello World} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa 
chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar 
plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie 
chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly 
beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes 
marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot 
cake jelly-o. Topping danish tootsie roll gummi bears oat cake jujubes. Sweet 
candy canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon drops 
macaroon gummies lemon drops tiramisu chocolate cake. Cupcake sugar plum 
shortbread gummi bears tootsie roll. Chocolate cake sugar plum macaroon candy 
canes chocolate bar donut cake icing tootsie roll.
}
\stoptext


Best regards
Oli
___
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
___
___
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
___


[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Definition: Hello World} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa 
chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar 
plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie 
chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly 
beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes 
marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot 
cake jelly-o. Topping danish tootsie roll gummi bears oat cake jujubes. Sweet 
candy canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon drops 
macaroon gummies lemon drops tiramisu chocolate cake. Cupcake sugar plum 
shortbread gummi bears tootsie roll. Chocolate cake sugar plum macaroon candy 
canes chocolate bar donut cake icing tootsie roll.
}
\stoptext


Best regards
Oli
___
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] How do I turn off indentation inside a \framed with align=?

2022-06-03 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 03.06.2022 um 00:57:
On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


You have to provide a minimal example, in the following the example 
the text within the frame isn't indented.


I cannot always provide a minimal example (how much I would like to) 
as my TeX is produced in a pipeline from 5600 lines of lua and 
METAPOST code.


But luckily, in this case I can, the one using \phrasetext is 
indented, the other one is not.:


\setuplanguage[en][patterns={en}]\mainlanguage[en]

\definelabelclass[phrase]

\setupphrasetext[en][metamodelexplanation=  {...}]


The space in your text comes from the space between the = and { when you 
set the text for metamodelexplanation.


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] How do I turn off indentation inside a \framed with align=?

2022-06-02 Thread Gerben Wierda via ntg-context
> On 19 May 2022, at 18:22, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> You have to provide a minimal example, in the following the example the text 
> within the frame isn't indented.

I cannot always provide a minimal example (how much I would like to) as my TeX 
is produced in a pipeline from 5600 lines of lua and METAPOST code.

But luckily, in this case I can, the one using \phrasetext is indented, the 
other one is not.:

\setuplanguage[en][patterns={en}]\mainlanguage[en]

\definelabelclass[phrase]

\setupphrasetext[en][metamodelexplanation=  {Only direct relations are shown. 
Abstract elements are expanded so only real meta­model elements are shown. Uses 
the Mastering ArchiMate 9-colour scheme to assist learning and quick reading.}]

\starttext
\setupindenting[none]
\setupindenting[no]

\definelayer[coremodel][width=\textwidth,height=\textheight]
\setlayer[coremodel][preset=lefttop,voffset=0.6cm]{\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}}
\setlayer[coremodel][preset=lefttop,voffset=6cm]{\framed[frame=off,align=flushleft,width=\textwidth]{Only
 direct relations are shown. Abstract elements are expanded so only real 
meta­model elements are shown. Uses the Mastering ArchiMate 9-colour scheme to 
assist learning and quick reading}}
\placelayer[coremodel]
\stoptext

G___
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] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 19.05.2022 um 17:27:

I have these kinds of statements

\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}

but the text inside the frame is typeset with indentation.

I tried \setupindenting both before and after \starttext, 
(none,no,never) but that doesn’t work.


How do I turn indenting off in all frameds with align=flushleft or 
otherwise *everywhere*?


You have to provide a minimal example, in the following the example the 
text within the frame isn't indented.


 begin example
\setupindenting[yes,medium]

\showframe[text][text]

\starttext

metamodelexplanation

\framed[frame=off,align=flushleft,width=\textwidth]{metamodelexplanation}

metamodelexplanation

\stoptext
 end example

Wolfgang

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

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


[NTG-context] How do I turn off indentation inside a \framed with align=?

2022-05-19 Thread Gerben Wierda via ntg-context
I have these kinds of statements

\framed[frame=off,align=flushleft,width=\textwidth]{\phrasetext{metamodelexplanation}}

but the text inside the frame is typeset with indentation.

I tried \setupindenting both before and after \starttext, (none,no,never) but 
that doesn’t work. 

How do I turn indenting off in all frameds with align=flushleft or otherwise 
*everywhere*?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

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

2022-04-25 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 25.04.2022 um 18:17:

On 4/24/22 21:13, Wolfgang Schuster via ntg-context wrote:

Pablo Rodriguez via ntg-context schrieb am 24.04.2022 um 20:56:

[...]
Using current LMTX (2022.04.20 19:18), I’m afraid no format from
\setupframedtext is applied to the backcover framed text.
[...]

While you can pass a instance to \starframed (e.g.
\startframed[backcover]) the same isn't possible with \startframedtext.

Many thanks for your reply, Wolfgang.

I thought I could do that, because
http://www.pragma-ade.com/general/qrcs/setup-en.pdf seems to allow it.


\startframedtext allow the following four keywords for the first 
optional argument


    - left
    - middle
    - right
    - none

These four keywords can be used to control the horizontal alignment of 
the frame but they aren't framedtext instances.


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] issue with framed texts

2022-04-25 Thread Pablo Rodriguez via ntg-context
On 4/24/22 21:13, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 24.04.2022 um 20:56:
>> [...]
>> Using current LMTX (2022.04.20 19:18), I’m afraid no format from
>> \setupframedtext is applied to the backcover framed text.
>> [...]
> While you can pass a instance to \starframed (e.g.
> \startframed[backcover]) the same isn't possible with \startframedtext.

Many thanks for your reply, Wolfgang.

I thought I could do that, because
http://www.pragma-ade.com/general/qrcs/setup-en.pdf seems to allow it.

Many thanks for your help,

Pablo
___
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] issue with framed texts

2022-04-24 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 24.04.2022 um 20:56:

Dear list,

I have the following sample:

   \defineframedtext[backcover]
   \setupframedtext[backcover]
   [frame=off,
offset=overlay,
width=\textwidth]
   \starttext
   \startframedtext[backcover]
   \input zapf
   \stopframedtext
   \stoptext

Using current LMTX (2022.04.20 19:18), I’m afraid no format from
\setupframedtext is applied to the backcover framed text.

Can anyone confirm the issue or explain what I’m doing wrong?


You have to use

\startbackcover
...
\stopbackcover

in your document.

While you can pass a instance to \starframed (e.g. 
\startframed[backcover]) the same isn't possible with \startframedtext.


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] issue with framed texts

2022-04-24 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \defineframedtext[backcover]
  \setupframedtext[backcover]
  [frame=off,
   offset=overlay,
   width=\textwidth]
  \starttext
  \startframedtext[backcover]
  \input zapf
  \stopframedtext
  \stoptext

Using current LMTX (2022.04.20 19:18), I’m afraid no format from
\setupframedtext is applied to the backcover framed text.

Can anyone confirm the issue or explain what I’m doing wrong?

Just in case it may be relevant, I’m on Linux 64bit.

Many thanks for your help,

Pablo
___
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] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Oh, I should have thought of that. Thanks (again) Wolfgang!

/Mikael

On Tue, Jan 4, 2022 at 5:22 PM Wolfgang Schuster
 wrote:
>
> Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:
> > Oh, thanks!
> >
> > I can simply wrap my table in a framed environment, then. If it is
> > still possible to solve without the surrounding framed I'm interested
> > to hear how.
>
> You have to put the table in a box to change the vertical position.
>
> \starttext
>
> a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b
>
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Wolfgang Schuster via ntg-context

Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21:

Oh, thanks!

I can simply wrap my table in a framed environment, then. If it is
still possible to solve without the surrounding framed I'm interested
to hear how.


You have to put the table in a box to change the vertical position.

\starttext

a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b

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


Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Oh, thanks!

I can simply wrap my table in a framed environment, then. If it is
still possible to solve without the surrounding framed I'm interested
to hear how.

/Mikael

On Tue, Jan 4, 2022 at 12:12 PM kauƛika  wrote:
>
> On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context
> wrote:
> > What is the correct way to get the last line, "The last foo",
> > to automatically be placed below the second table?
>
> There is only one table in your example.
>
> > I still want the first line of the table to align vertically with the text
> > Bar.
>
> If you don't need a table, the following achieves the same:
>
> \starttext
> Foofoo
>
> Bar
> \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par
> The last foo
> \stoptext
>
> Best,
> kauƛika
>
>
___
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] Align table (framed) top

2022-01-04 Thread kauƛika via ntg-context
On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context 
wrote:
> What is the correct way to get the last line, "The last foo",
> to automatically be placed below the second table?

There is only one table in your example.

> I still want the first line of the table to align vertically with the text
> Bar.

If you don't need a table, the following achieves the same:

\starttext
Foofoo

Bar
\framed[width=2cm,align=normal,location=top]{this is a long sentence}\par
The last foo
\stoptext

Best,
kauƛika


___
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] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Hi,

This is probably simple, but I cannot combine the right keys to get it
to work. What is the correct way to get the last line, "The last foo",
to automatically be placed below the second table?
I still want the first line of the table to align vertically with the text Bar.

/Mikael

\starttext
Foofoo

Bar\bTABLE[width=2cm,location=top]
\bTR \bTD This is a long sentence \eTD \eTR
\eTABLE

The last foo
\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] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
FV / Massi / Hans,

Thank you so much for the valuable tips.

I will find a suitable place in the Wiki and add this information / nugget.

best regards,
Ramkumar

On Thu, Oct 21, 2021 at 5:10 PM Hans Hagen  wrote:

> On 10/21/2021 10:32 AM, Ramkumar KB via ntg-context wrote:
> > Hello,
> >
> > I have this nagging issue of indentation (in the 1st line) showing up
> > inside \framed in spite of all the commands to skip indentation (see
> > attached PDF).
> >
> > It appears that *\setupindenting[no]* is not playing any role here and
> > some other parameter is overriding  this.
> >
> > Any tips would be appreciated.
> >
> > best regards,
> > Ramkumar
> >
> > \definepapersize[a4-portrait][A4][A4]
> > \setuppapersize[a4-portrait]
> >
> \setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]
> >
> > \starttext
> >
> > \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
> > {\framed[frame=on,offset=none,align=flushleft]
> > {
> > % \startparagraph[align=high]
> > \setupindenting[no]
> > Chief Vitalstatistix\\
> > Getafix\\
> > Dogmatix\\
> > Asterix\\
> > Obelix\\
> > }
> > }
> > \stoptext
> you get what you ask for: spaces
>
> {\framed[frame=on,offset=none,align=flushleft]
> {%
> \setupindenting[no]%
> Chief Vitalstatistix\\
>
> or
>
> \offset[x=11mm,y=23mm] \bgroup
>  \framed[frame=on,offset=none,align=flushleft] \bgroup
>  \setupindenting[no]%
>  Chief Vitalstatistix\\
>  Getafix\\
>  Dogmatix\\
>  Asterix\\
>  Obelix\\
>  \egroup
> \egroup
>
>
>
> -
>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
___


Re: [NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread Hans Hagen via ntg-context

On 10/21/2021 10:32 AM, Ramkumar KB via ntg-context wrote:

Hello,

I have this nagging issue of indentation (in the 1st line) showing up 
inside \framed in spite of all the commands to skip indentation (see 
attached PDF).


It appears that *\setupindenting[no]* is not playing any role here and 
some other parameter is overriding  this.


Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext

you get what you ask for: spaces

{\framed[frame=on,offset=none,align=flushleft]
{%
\setupindenting[no]%
Chief Vitalstatistix\\

or

\offset[x=11mm,y=23mm] \bgroup
\framed[frame=on,offset=none,align=flushleft] \bgroup
\setupindenting[no]%
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
\egroup
\egroup



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


Re: [NTG-context] Indentation inside \framed won't go away

2021-10-21 Thread mf via ntg-context

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{% percent sign here, otherwise you get a space
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext

Massi

Il 21/10/21 10:32, Ramkumar KB via ntg-context ha scritto:

Hello,

I have this nagging issue of indentation (in the 1st line) showing up 
inside \framed in spite of all the commands to skip indentation (see 
attached PDF).


It appears that *\setupindenting[no]* is not playing any role here and 
some other parameter is overriding  this.


Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\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
___


___
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] Indentation inside \framed won't go away

2021-10-21 Thread fv leung via ntg-context
I use

\removeunwantedspaces

in this case.

Ramkumar KB via ntg-context  æ–Œ 2021ćčŽ10月21æ—„ 週曛 例捈4:32ćŻ«é“ïŒš

> Hello,
>
> I have this nagging issue of indentation (in the 1st line) showing up
> inside \framed in spite of all the commands to skip indentation (see
> attached PDF).
>
> It appears that *\setupindenting[no]* is not playing any role here and
> some other parameter is overriding  this.
>
> Any tips would be appreciated.
>
> best regards,
> Ramkumar
>
> \definepapersize[a4-portrait][A4][A4]
> \setuppapersize[a4-portrait]
> \setuplayout
> [topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]
>
> \starttext
>
> \offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
> {\framed[frame=on,offset=none,align=flushleft]
> {
> % \startparagraph[align=high]
> \setupindenting[no]
> Chief Vitalstatistix\\
> Getafix\\
> Dogmatix\\
> Asterix\\
> Obelix\\
> }
> }
> \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
>
> ___
>
___
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] Indentation inside \framed won't go away

2021-10-21 Thread Ramkumar KB via ntg-context
Hello,

I have this nagging issue of indentation (in the 1st line) showing up
inside \framed in spite of all the commands to skip indentation (see
attached PDF).

It appears that *\setupindenting[no]* is not playing any role here and some
other parameter is overriding  this.

Any tips would be appreciated.

best regards,
Ramkumar

\definepapersize[a4-portrait][A4][A4]
\setuppapersize[a4-portrait]
\setuplayout
[topspace=10mm,backspace=15mm,header=50pt,footer=50pt,textwidth=165mm,height=middle,width=middle]

\starttext

\offset[x=\dimexpr11mm\relax,y=\dimexpr23mm\relax]
{\framed[frame=on,offset=none,align=flushleft]
{
% \startparagraph[align=high]
\setupindenting[no]
Chief Vitalstatistix\\
Getafix\\
Dogmatix\\
Asterix\\
Obelix\\
}
}
\stoptext


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


[NTG-context] solved problem of footnote in framed text

2021-07-26 Thread jbf via ntg-context
I solved my own problem of the footnote not appearing. Discovered 
\startpostponingnotes! That solved the problem.


Julian

___
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] Bug in \framed and \inframed

2021-05-06 Thread Aditya Mahajan
On Thu, 6 May 2021, Johann Birnick wrote:

> There is a bug with \framed and related commands: If this is the first object 
> in
> a line, a linebreak is inserted! See the following example:
> 
> 
> \starttext
>  
> 
> This \inframed{works} fine.
> 
> \inframed{But} this not.
> 
> \stoptext

https://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F

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] Bug in \framed and \inframed

2021-05-06 Thread Johann Birnick
There is a bug with \framed and related commands: If this is the first object in
a line, a linebreak is inserted! See the following example:


\starttext 

This \inframed{works} fine.

\inframed{But} this not.

\stoptext


Thank you,
Johann

___
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] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
Wow, both \maxaligned and "paragraph" are new (and useful) to me. Thank you
again.

Jairo

El vie, 26 de feb. de 2021 a la(s) 17:24, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribiĂł:

> Jairo A. del Rio schrieb am 26.02.2021 um 23:09:
> > Nice, but it also adds spacing between characters inside a word. So,
> > what I was asking is if I can stretch only spaces between words via
> > key-value pairs in \framed, if possible, of course. Thank you very much.
>
> \starttext
>
> \framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}}
>
> \framed[width=10cm,align=paragraph]{Uno dos tres}
>
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 26.02.2021 um 23:09:
Nice, but it also adds spacing between characters inside a word. So, 
what I was asking is if I can stretch only spaces between words via 
key-value pairs in \framed, if possible, of course. Thank you very much.


\starttext

\framed[width=10cm,align=normal]{\maxaligned{Uno dos tres}}

\framed[width=10cm,align=paragraph]{Uno dos tres}

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


Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
Nice, but it also adds spacing between characters inside a word. So, what I
was asking is if I can stretch only spaces between words via key-value
pairs in \framed, if possible, of course. Thank you very much.

Jairo :)

El vie, 26 de feb. de 2021 a la(s) 17:06, Wolfgang Schuster (
wolfgang.schuster.li...@gmail.com) escribiĂł:

> Jairo A. del Rio schrieb am 26.02.2021 um 22:38:
> > Hi list.
> >
> > Is there an interface for \hbox to  via framed? I think it's not
> > the ConTeXt spirit to do something like
> >
> > \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}
> >
> > where spacing is stretched so all the available space is filled, so I
> > want to know about a better way. Thank you beforehand.
>
> \starttext
>
> \framed{Uno dos tres}
>
> \framed{\stretched[width=10cm]{Uno dos tres}}
>
> \framed[width=10cm,align=normal]{\stretched{Uno dos tres}}
>
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 26.02.2021 um 22:38:

Hi list.

Is there an interface for \hbox to  via framed? I think it's not 
the ConTeXt spirit to do something like


\framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}

where spacing is stretched so all the available space is filled, so I 
want to know about a better way. Thank you beforehand.


\starttext

\framed{Uno dos tres}

\framed{\stretched[width=10cm]{Uno dos tres}}

\framed[width=10cm,align=normal]{\stretched{Uno dos tres}}

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


Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Aditya Mahajan
On Fri, 26 Feb 2021, Jairo A. del Rio wrote:

> Hi list.
> 
> Is there an interface for \hbox to  via framed? I think it's not the
> ConTeXt spirit to do something like
> 
> \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}

\framed[width=10cm]{}

and

\framed[height=3cm, width=10cm]{...}

if you want a box with a specified width and height. 

> where spacing is stretched so all the available space is filled, so I want
> to know about a better way. Thank you beforehand.

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] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
Hi list.

Is there an interface for \hbox to  via framed? I think it's not the
ConTeXt spirit to do something like

\framed[offset=0cm]{\hbox to 10cm{Uno dos tres}}

where spacing is stretched so all the available space is filled, so I want
to know about a better way. Thank you beforehand.

Cordially,

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


Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hi Marco,

thank you! :-)

Willi

> On 16 Jun 2020, at 14:44, Marco Patzer  wrote:
> 
> On Tue, 16 Jun 2020 14:37:17 +0200
> Marco Patzer  wrote:
> 
>> On Tue, 16 Jun 2020 14:17:09 +0200
>> Willi Egger  wrote:
>> 
>>> I try to use a Metapost drawing as a background to a framed text. —
>>> I can not make it working though

>>> 
>>> \startuniqueMPgraphic{Markings}
>>> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
>>> 5mm withcolor blue; \stopuniqueMPgraphic
>>> 
>>> \defineoverlay[Marks]{\useMPgraphic{Markings}}  
>> 
>> \defineoverlay[Marks][{\useMPgraphic{Markings}}]
> 
> Better:
> 
> \defineoverlay[Marks][\useMPgraphic{Markings}]
> 
> Marco
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:37:17 +0200
Marco Patzer  wrote:

> On Tue, 16 Jun 2020 14:17:09 +0200
> Willi Egger  wrote:
> 
> > I try to use a Metapost drawing as a background to a framed text. —
> > I can not make it working though

> > 
> > \startuniqueMPgraphic{Markings}
> > %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged
> > 5mm withcolor blue; \stopuniqueMPgraphic
> > 
> > \defineoverlay[Marks]{\useMPgraphic{Markings}}  
> 
> \defineoverlay[Marks][{\useMPgraphic{Markings}}]

Better:

\defineoverlay[Marks][\useMPgraphic{Markings}]

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

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


Re: [NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Marco Patzer
On Tue, 16 Jun 2020 14:17:09 +0200
Willi Egger  wrote:

> I try to use a Metapost drawing as a background to a framed text. — I
> can not make it working though

> 
> \startuniqueMPgraphic{Markings}
> %{Markings:\overlaywidth:\overlayheight} fill OverlayBox enlarged 5mm
> withcolor blue; \stopuniqueMPgraphic
> 
> \defineoverlay[Marks]{\useMPgraphic{Markings}}

\defineoverlay[Marks][{\useMPgraphic{Markings}}]

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

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


[NTG-context] Using \defineoverlay for a framed text

2020-06-16 Thread Willi Egger
Hello listmembers,


I try to use a Metapost drawing as a background to a framed text. — I can not 
make it working though


\startuniqueMPgraphic{Markings} %{Markings:\overlaywidth:\overlayheight}
fill OverlayBox enlarged 5mm withcolor blue;
\stopuniqueMPgraphic

\defineoverlay[Marks]{\useMPgraphic{Markings}}

\setupframed[background=Marks]

\setupframedtexts
[frame=on,
 background=Marks]  

\starttext
\framedtext{Hello World!}
\blank
\framed{Hello World!}
\stoptext

What is wrong with this code?

Kind regards

Willi
___
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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda


> On 1 May 2020, at 13:28, Hans Hagen  wrote:
> 
> On 5/1/2020 10:21 AM, Gerben Wierda wrote:
>> code it back to a \ ? E.g. something like
>>{ ‘\U{XXX}', '\' },
> \utfchar{100}
> \Uchar 100

Yes, but the question was: how do I code this in the XML and get it through my 
XML-lua-METAPOST-textext() path so that e.g.  or  in the XML end up 
as \ in my textext() string?

E.g. a 
 in XML becomes a \n when lmtx XML handling has read the XML (so 
gets transformed on read). I’ve been thinking about the route 
 -> \r -> \ 
(so, misusing \r to code a TeX-\ in the XML, but that would probably not robust.

The question is more: what is a good UTF8 character to use (the first 32 would 
be good candidates if they would work and end in the strings that xml.foo() of 
lmtx produces).

G

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


Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Gerben Wierda


> On 1 May 2020, at 09:38, Hans Hagen  wrote:
> 
> On 5/1/2020 1:44 AM, Gerben Wierda wrote:
>>{ ‘\n', ‘\\strut' },
> often a \zwj or \zwno also works ok (has zero dimensions, contraty to strut; 
> you could also try \crlf

I tried \crlf{} and that worked too (the “{}” because I do not know what comes 
after even if I think any whitespace is eaten and to influence any catcode 
trickery, just feels it is more robust than a space).

Hans, an additional question about lmtx’s XML interface. As I want the TeX 
special characters to be able to be part of a label, I replace all of them. 
That works. But what if I would like a way to introduce TeX commands again by 
using some other UTF8 character, would there be a character that curvies the 
pass through lmtx, can be used in a lua table so that I can  (in a preferred 
order) get unescaped characters passed that flow?

E.g. code a \ as some weird UTF8 character in the XML file, and in that table I 
use

  local rep = lpeg.replacer {
   { '\n', '\\crlf{}' },
   { '{', '{\\textbraceleft}' },
   { '}', '{\\textbraceright}' },
   { '#', '{\\texthash}' },
   { '$', '{\\textdollar}' },
   { '&', '{\\textampersand}' },
   { '%', '{\\textpercent}' },
   { '\\','{\\textbackslash}' },
   { '|', '{\\textbar}' },
   { '_', '{\\textunderscore}' },
   { '~', '{\\textasciitilde}' },
   { '^', '{\\textasciicircum}' },
   { '"', "\"&ditto&\"" },
  }

code it back to a \ ? E.g. something like

   { ‘\U{XXX}', '\' },


> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

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

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


Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen

On 5/1/2020 1:45 PM, Gerben Wierda wrote:




On 1 May 2020, at 13:28, Hans Hagen  wrote:

On 5/1/2020 10:21 AM, Gerben Wierda wrote:

code it back to a \ ? E.g. something like
{ ‘\U{XXX}', '\' },

\utfchar{100}
\Uchar 100


Yes, but the question was: how do I code this in the XML and get it through my 
XML-lua-METAPOST-textext() path so that e.g.  or  in the XML end up 
as \ in my textext() string?

E.g. a 
 in XML becomes a \n when lmtx XML handling has read the XML (so gets 
transformed on read). I’ve been thinking about the route 
 -> \r -> \ (so, 
misusing \r to code a TeX-\ in the XML, but that would probably not robust.

The question is more: what is a good UTF8 character to use (the first 32 would 
be good candidates if they would work and end in the strings that xml.foo() of 
lmtx produces).

you could try

\xmltexentity{foo}{[overloaded foo]}



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


Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen

On 5/1/2020 1:45 PM, Gerben Wierda wrote:




On 1 May 2020, at 13:28, Hans Hagen  wrote:

On 5/1/2020 10:21 AM, Gerben Wierda wrote:

code it back to a \ ? E.g. something like
{ ‘\U{XXX}', '\' },

\utfchar{100}
\Uchar 100


Yes, but the question was: how do I code this in the XML and get it through my 
XML-lua-METAPOST-textext() path so that e.g.  or  in the XML end up 
as \ in my textext() string?

E.g. a 
 in XML becomes a \n when lmtx XML handling has read the XML (so gets 
transformed on read). I’ve been thinking about the route 
 -> \r -> \ (so, 
misusing \r to code a TeX-\ in the XML, but that would probably not robust.

The question is more: what is a good UTF8 character to use (the first 32 would 
be good candidates if they would work and end in the strings that xml.foo() of 
lmtx produces).

did you try the attached approach? (a recent lmtx)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


strings-001.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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen

On 5/1/2020 10:21 AM, Gerben Wierda wrote:

code it back to a \ ? E.g. something like

    { ‘\U{XXX}', '\' },

\utfchar{100}
\Uchar 100

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


Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-05-01 Thread Hans Hagen

On 5/1/2020 1:44 AM, Gerben Wierda wrote:

    { ‘\n', ‘\\strut' },
often a \zwj or \zwno also works ok (has zero dimensions, contraty to 
strut; you could also try \crlf


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda

> On 30 Apr 2020, at 22:54, Wolfgang Schuster 
>  wrote:
> 
> Gerben Wierda schrieb am 30.04.2020 um 22:47:
>> In normal TeX, when I type
>> AapAap
>> I get something like
>> Aap
>> Aap
>> But inside a \framed[align=]{} the empty line disappears. How do I get it 
>> back?
>> Minimal example:
>> \starttext
>> TestingTesting
>> \page
>> \framed[align=flushleft]{TestingTesting}
>> \stoptext
> 
> Use \blank

Too happy too soon. And I recall I ran into this earlier a while ago in another 
setting ago. But I thought of a solution.

Background:

I am automatically converting input from an XML file to METAPOST/ConTeXt. The 
input may contain one or more newlines.The text must end up in 
\framed[align=??, width=??] to be typeset.

I use lua to convert and make it safe to pass to METAPOST as a string argument 
that METAPOST can pass on to textext(), using the following function:

function doubleQuotableEscapedConTeXtString( str)
  local rep = lpeg.replacer {
   { '\n', '\\blank ' },
   { '{', '{\\textbraceleft}' },
   { '}', '{\\textbraceright}' },
   { '#', '{\\texthash}' },
   { '$', '{\\textdollar}' },
   { '&', '{\\textampersand}' },
   { '%', '{\\textpercent}' },
   { '\\','{\\textbackslash}' },
   { '|', '{\\textbar}' },
   { '_', '{\\textunderscore}' },
   { '~', '{\\textasciitilde}' },
   { '^', '{\\textasciicircum}' },
   { '"', "\"&ditto&\"" },
  }
  return rep:match(str)
end

Where it now says \\blank, it used to say .

Problem

 gets me what I want if there is one \n (it turns into one new line), but 
with two \n in succession it still gets me only a single ’newline'
\\blank gets me what I want if there are multiple newlines, but gets me an 
extra empty line when I only want ’next line’ and multiple \blanks do not work 

But I found the solution by using \strut\\ instead of \blank. In the above 
table:

   { ‘\n', ‘\\strut' },

This fools ConTeXt in thinking there actually is something on that line and so 
multiple \\ will work.

G___
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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda


> On 30 Apr 2020, at 22:51, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 30.04.2020 um 22:47 schrieb Gerben Wierda :
>> 
>> In normal TeX, when I type 
>> 
>> AapAap
>> 
>> I get something like 
>> 
>> Aap
>> 
>> Aap
>> 
>> But inside a \framed[align=]{} the empty line disappears. How do I get it 
>> back?
> 
> Try \framedtext instead; multi line text needs a \vbox, and \framedtext does 
> that. (If I understood correctly.)
> 
> Maybe you need to set the align option.

I did set the align option to get a vbox.

G

> 
> Best, 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://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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
Brilliant! Thank you!

> On 30 Apr 2020, at 22:54, Wolfgang Schuster 
>  wrote:
> 
> Gerben Wierda schrieb am 30.04.2020 um 22:47:
>> In normal TeX, when I type
>> AapAap
>> I get something like
>> Aap
>> Aap
>> But inside a \framed[align=]{} the empty line disappears. How do I get it 
>> back?
>> Minimal example:
>> \starttext
>> TestingTesting
>> \page
>> \framed[align=flushleft]{TestingTesting}
>> \stoptext
> 
> Use \blank
> 
> 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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Wolfgang Schuster

Gerben Wierda schrieb am 30.04.2020 um 22:47:

In normal TeX, when I type

AapAap

I get something like

Aap

Aap

But inside a \framed[align=]{} the empty line disappears. How do I get 
it back?


Minimal example:

\starttext

TestingTesting
\page

\framed[align=flushleft]{TestingTesting}
\stoptext


Use \blank

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] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Henning Hraban Ramm


> Am 30.04.2020 um 22:47 schrieb Gerben Wierda :
> 
> In normal TeX, when I type 
> 
> AapAap
> 
> I get something like 
> 
> Aap
> 
> Aap
> 
> But inside a \framed[align=]{} the empty line disappears. How do I get it 
> back?

Try \framedtext instead; multi line text needs a \vbox, and \framedtext does 
that. (If I understood correctly.)

Maybe you need to set the align option.

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


[NTG-context] How do I get an empty line in a \framed[align=flushleft]{} item?

2020-04-30 Thread Gerben Wierda
In normal TeX, when I type 

AapAap

I get something like 

Aap

Aap

But inside a \framed[align=]{} the empty line disappears. How do I get it back?

Minimal example:

\starttext

TestingTesting
\page

\framed[align=flushleft]{TestingTesting}
\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] Solution: METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-25 Thread Gerben Wierda
On a hunch, I found a solution. I added \\ instead of \par at the end and goit 
exactly what I wanted.

\enabletrackers[context.trace]
\starttext

%\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
%b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}

\startMPpage[instance=doublefun]
draw 
textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}\par}");
draw 
(textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\\}}") shifted (200,0));
\stopMPpage


\stoptext


G

> On 25 Apr 2020, at 00:51, Gerben Wierda  wrote:
> 
>> On 24 Apr 2020, at 18:40, Thomas A. Schmitz > <mailto:thomas.schm...@uni-bonn.de>> wrote:
>> 
>> 
>> 
>>> On 24. Apr 2020, at 18:19, Gerben Wierda >> <mailto:gerben.wie...@rna.nl>> wrote:
>>> 
>>> \starttext
>>> 
>>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>>  g=0.000,
>>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>>> [My]\\Application\\(Component)}}
>>> 
>>> \stoptext
>>> 
>>> and if I change the value to 0.6, only the first line break gets packed 
>>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>>> played around with the placing of setupinterlinespace in that snippet 
>>> above, but nothing really works so far.
>>> 
>> 
>> At the end of your frame, you need an explicit \par to make the change of 
>> linespacing work:
>> 
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
>> [My]\\Application\\(Component)\par }}
> 
> Thank you, that works. (Can’t put in the images to show, as this gets my 
> message over 100k)
> 
> But it turns out, I have an additional problem because I am doing this inside 
> a textext() from METAPOST and that seems to strip the \pars again. Tracking 
> ConTeXt:
> 
> cld > tex > f : 8 : picture pic; x:=33.000; y:=53.000; 
> w:=133.000; h:=53.000;pic := ApplicationComponentLogo( w, h, 
> (0.686,1.000,1.000), 0.200, 1.000, (0.000,0.000,0.000), 1.000, 0.700, 
> (0.000,0.000,0.000), 1.000, 
> "\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
> [My]\\Application\\(Component)\par}}\par") shifted (x, -y); draw pic;path 
> AllNodeIds_idIC;  AllNodeIds_idIC := pathpart pic; pair AllNodeCenters_idIC; 
> AllNodeCenters_idIC := center pic;
> 
> which looks OK (this is lmtx passing the string to ConTeXt using the lua 
> context() call). The \pars are still there.
> 
> Then later, when METAPOST is at it and that same string is used to put into 
> textext(), it results in:
> 
> cld > tex > w : - : \MPLIBsetNtextX{3}{\framed 
> [align=flushright,frame=on,offset=none,width=106.400bp]{\colored [r=0.000, 
> g=0.000, b=0.000]{\switchtobodyfont [11.0pt]\setupinterlinespace [11.5pt] \rm 
> [My]\\Application\\(Component)}}}
> 
> 
> Minimal example:
> 
> \enabletrackers[context.trace]
> \starttext
> 
> % Works OK:
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
> [My]\\Application\\(Component)\par}}
> 
> % Doesn’t work:
> \startMPpage[instance=doublefun]
> draw 
> textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
> [My]\\Application\\(Component)\par}}\par");
> \stopMPpage
> 
> 
> \stoptext
> 
> So, now I’m looking for a way to prevent textext() to eat my \pars
> 
> G
> 
> ___
> 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] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
> On 24 Apr 2020, at 18:40, Thomas A. Schmitz  <mailto:thomas.schm...@uni-bonn.de>> wrote:
> 
> 
> 
>> On 24. Apr 2020, at 18:19, Gerben Wierda > <mailto:gerben.wie...@rna.nl>> wrote:
>> 
>> \starttext
>> 
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>> [My]\\Application\\(Component)}}
>> 
>> \stoptext
>> 
>> and if I change the value to 0.6, only the first line break gets packed 
>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>> played around with the placing of setupinterlinespace in that snippet above, 
>> but nothing really works so far.
>> 
> 
> At the end of your frame, you need an explicit \par to make the change of 
> linespacing work:
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
> [My]\\Application\\(Component)\par }}

Thank you, that works. (Can’t put in the images to show, as this gets my 
message over 100k)

But it turns out, I have an additional problem because I am doing this inside a 
textext() from METAPOST and that seems to strip the \pars again. Tracking 
ConTeXt:

cld > tex > f : 8 : picture pic; x:=33.000; y:=53.000; w:=133.000; 
h:=53.000;pic := ApplicationComponentLogo( w, h, (0.686,1.000,1.000), 0.200, 
1.000, (0.000,0.000,0.000), 1.000, 0.700, (0.000,0.000,0.000), 1.000, 
"\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par") shifted (x, -y); draw pic;path 
AllNodeIds_idIC;  AllNodeIds_idIC := pathpart pic; pair AllNodeCenters_idIC; 
AllNodeCenters_idIC := center pic;

which looks OK (this is lmtx passing the string to ConTeXt using the lua 
context() call). The \pars are still there.

Then later, when METAPOST is at it and that same string is used to put into 
textext(), it results in:

cld > tex > w : - : \MPLIBsetNtextX{3}{\framed 
[align=flushright,frame=on,offset=none,width=106.400bp]{\colored [r=0.000, 
g=0.000, b=0.000]{\switchtobodyfont [11.0pt]\setupinterlinespace [11.5pt] \rm 
[My]\\Application\\(Component)}}}


Minimal example:

\enabletrackers[context.trace]
\starttext

% Works OK:
\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}

% Doesn’t work:
\startMPpage[instance=doublefun]
draw 
textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par");
\stopMPpage


\stoptext

So, now I’m looking for a way to prevent textext() to eat my \pars

G

___
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] METAPOST textext() eats my \pars. Was: Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda


> On 24 Apr 2020, at 18:40, Thomas A. Schmitz  <mailto:thomas.schm...@uni-bonn.de>> wrote:
> 
> 
> 
>> On 24. Apr 2020, at 18:19, Gerben Wierda > <mailto:gerben.wie...@rna.nl>> wrote:
>> 
>> \starttext
>> 
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>> [My]\\Application\\(Component)}}
>> 
>> \stoptext
>> 
>> and if I change the value to 0.6, only the first line break gets packed 
>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>> played around with the placing of setupinterlinespace in that snippet above, 
>> but nothing really works so far.
>> 
> 
> At the end of your frame, you need an explicit \par to make the change of 
> linespacing work:
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
> [My]\\Application\\(Component)\par }}

Thank you, that works: 



But it turns out, I have an additional problem because I am doing this inside a 
textext() from METAPOST and that seems to strip the \pars again. Tracking 
ConTeXt:

cld > tex > f : 8 : picture pic; x:=33.000; y:=53.000; w:=133.000; 
h:=53.000;pic := ApplicationComponentLogo( w, h, (0.686,1.000,1.000), 0.200, 
1.000, (0.000,0.000,0.000), 1.000, 0.700, (0.000,0.000,0.000), 1.000, 
"\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par") shifted (x, -y); draw pic;path 
AllNodeIds_idIC;  AllNodeIds_idIC := pathpart pic; pair AllNodeCenters_idIC; 
AllNodeCenters_idIC := center pic;

which looks OK (this is lmtx passing the string to ConTeXt using the lua 
context() call). The \pars are still there.

Then later, when METAPOST is at it and that same string is used to put into 
textext(), it results in:

cld > tex > w : - : \MPLIBsetNtextX{3}{\framed 
[align=flushright,frame=on,offset=none,width=106.400bp]{\colored [r=0.000, 
g=0.000, b=0.000]{\switchtobodyfont [11.0pt]\setupinterlinespace [11.5pt] \rm 
[My]\\Application\\(Component)}}}

The result of which is



Minimal example:

\enabletrackers[context.trace]
\starttext

% Works OK:
\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}

% Doesn’t work:
\startMPpage[instance=doublefun]
draw 
textext("\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000, b=0.000]{\switchtobodyfont[11.0pt]\setupinterlinespace[11.5pt] \rm 
[My]\\Application\\(Component)\par}}\par");
\stopMPpage


\stoptext

So, now I’m looking for a way to prevent textext() to eat my \pars

G___
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] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
Not possible in my case, unless I redefine them for each use (my code is 
generated from data with unpredictable colors), hut thanks anyway


Gerben Wierda
Chess and the Art of Enterprise Architecture
Mastering ArchiMate
Architecture for Real Enterprises at InfoWorld
On Slippery Ice at EAPJ

> On 24 Apr 2020, at 19:32, Wolfgang Schuster 
>  wrote:
> 
> ï»żThomas A. Schmitz schrieb am 24.04.2020 um 18:40:
>>>> On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:
>>> 
>>> \starttext
>>> 
>>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>>  g=0.000,
>>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
>>> [My]\\Application\\(Component)}}
>>> 
>>> \stoptext
>>> 
>>> and if I change the value to 0.6, only the first line break gets packed 
>>> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
>>> played around with the placing of setupinterlinespace in that snippet 
>>> above, but nothing really works so far.
>> At the end of your frame, you need an explicit \par to make the change of 
>> linespacing work:
>> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>>  g=0.000,
>> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
>> [My]\\Application\\(Component)\par }}
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html
> 
> Use style/color keys when possible.
> 
> \starttext
> 
> \framed
>  [align=flushright,
>   offset=none,
>   width=106.400bp,
>   foregroundcolor=black,
> foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}]
>  {[My]\par Application\par (Component)\par}
> 
> \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://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] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

Thomas A. Schmitz schrieb am 24.04.2020 um 18:40:



On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
[My]\\Application\\(Component)}}

\stoptext

and if I change the value to 0.6, only the first line break gets packed 
somewhat. But I can’t get the entire paragraph inside the frame packed. I 
played around with the placing of setupinterlinespace in that snippet above, 
but nothing really works so far.


At the end of your frame, you need an explicit \par to make the change of 
linespacing work:

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
[My]\\Application\\(Component)\par }}

https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html


Use style/color keys when possible.

\starttext

\framed
  [align=flushright,
   offset=none,
   width=106.400bp,
   foregroundcolor=black,

foregroundstyle={\switchtobodyfont[11.0pt]\setupinterlinespace[line=2.4ex]}]
  {[My]\par Application\par (Component)\par}

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


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Thomas A. Schmitz


> On 24. Apr 2020, at 18:19, Gerben Wierda  wrote:
> 
> \starttext
> 
> \framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
>  g=0.000,
> b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
> [My]\\Application\\(Component)}}
> 
> \stoptext
> 
> and if I change the value to 0.6, only the first line break gets packed 
> somewhat. But I can’t get the entire paragraph inside the frame packed. I 
> played around with the placing of setupinterlinespace in that snippet above, 
> but nothing really works so far.
> 

At the end of your frame, you need an explicit \par to make the change of 
linespacing work:

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[14pt] \rm 
[My]\\Application\\(Component)\par }}

https://www.mail-archive.com/ntg-context@ntg.nl/msg45676.html

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
___


Re: [NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I want the lines in this frame packed more closely together:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\setupinterlinespace[0.9]\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \rm [My]\\Application\\(Component)}}

\stoptext

I tried a bit of fiddling, and the following changes the height of the first 
line only:

\starttext

\framed[align=flushright,frame=on,offset=none,width=106.400bp]{\colored[r=0.000,
 g=0.000,
b=0.000]{\switchtobodyfont[11.0pt] \setupinterlinespace[20pt] \rm 
[My]\\Application\\(Component)}}

\stoptext

and if I change the value to 0.6, only the first line break gets packed 
somewhat. But I can’t get the entire paragraph inside the frame packed. I 
played around with the placing of setupinterlinespace in that snippet above, 
but nothing really works so far.

I left the \colored etc in, because I also need to do all of those, so I need a 
solution that works in the above setting.

Gerben Wierda
Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
Architecture for Real Enterprises 
<https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld
On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ

> On 24 Apr 2020, at 17:54, Wolfgang Schuster 
>  wrote:
> 
> Gerben Wierda schrieb am 24.04.2020 um 17:38:
>> I have been experimenting with \startpacked..\stoppacked but it doesn’t seem 
>> to work. What is the preferred way of getting lines in a normal paragraph 
>> (actually, we’re talking about a \framed with align, so a full paragraph in 
>> a TeX \vbox)
> 
> Do you want to have a linebreak at the end of the frame
> 
> \starttext
> 
> \startframed
> \samplefile{knuth}
> \stopframed
> 
> \startframed[width=max,align=normal]
> \samplefile{knuth}
> \stopframed
> 
> \stoptext
> 
> or do you want to change to change the spacing
> 
> \starttext
> 
> \startframedtext[width=max,style={\setupinterlinespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
> 
> \startframedtext[width=max,style={\setupwhitespace[medium]}]
> \samplefile{knuth}
> \stopframedtext
> 
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Gerben Wierda
I have been experimenting with \startpacked..\stoppacked but it doesn’t seem to 
work. What is the preferred way of getting lines in a normal paragraph 
(actually, we’re talking about a \framed with align, so a full paragraph in a 
TeX \vbox)

(In addition, I try to find this kind of information first, in the manuals and 
in ConTeXtgarden, but I am failing. E.g. I look it up in the manual, do not 
really find it, then look it up in ConTeXt garden but it isn’t really 
documentend, then click ‘look in source’ and th elink doesn’t work. So, I have 
to bother people on the list for a basic question like this. I must be doing 
something wrong and looking in the wrong place)

Gerben Wierda
Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
Architecture for Real Enterprises 
<https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld
On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ

___
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] Setting vertical spacing of lines inside a \framed[align=]

2020-04-24 Thread Wolfgang Schuster

Gerben Wierda schrieb am 24.04.2020 um 17:38:
I have been experimenting with \startpacked..\stoppacked but it doesn’t 
seem to work. What is the preferred way of getting lines in a normal 
paragraph (actually, we’re talking about a \framed with align, so a full 
paragraph in a TeX \vbox)


Do you want to have a linebreak at the end of the frame

\starttext

\startframed
\samplefile{knuth}
\stopframed

\startframed[width=max,align=normal]
\samplefile{knuth}
\stopframed

\stoptext

or do you want to change to change the spacing

\starttext

\startframedtext[width=max,style={\setupinterlinespace[medium]}]
\samplefile{knuth}
\stopframedtext

\startframedtext[width=max,style={\setupwhitespace[medium]}]
\samplefile{knuth}
\stopframedtext

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


Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Aditya Mahajan

On Sun, 19 Apr 2020, Jairo A. del Rio wrote:


I've seen the following solution in Stack Exchange to add referenceable
enumeration labels to a framed enumeration environment:

https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay

It uses \wrappedcurrentconstruction. However, it only prints the counter
label and the counter name. What if I need the text enclosed by braces in
the frame header too? E. g. \starttheorem[thm1]{Residue theorem} so the
framed title includes "Residue theorem" also. Thank you in advance.


It works out of the box but you have to enable enumeration titles using 
`title=yes` key while defining the enumeration...


\startuseMPgraphic{FunnyFrame}
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 .625red) ;
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner b,h) ;
draw b;

setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic

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

\defineframedtext
  [FunnyFramedText]
  [
frame=off,
background=FunnyFrame,
offset=\bodyfontsize,
width=\textwidth,
  ]

\defineenumeration[Counter]
  [
title=yes,
alternative=empty,
before=\startFunnyFramedText,
after=\stopFunnyFramedText,
  ]

\starttext
\startCounter[title={Residue Theorem}]
  Coming back to the use of typefaces in electronic
  publishing: many of the new typographers receive their
  knowledge and information about the rules of typography from
  books, from computer magazines or the instruction manuals
  which they get with the purchase of a PC or software.
\stopCounter

\startCounter
  Coming back to the use of typefaces in electronic
  publishing: many of the new typographers receive their
  knowledge and information about the rules of typography from
  books, from computer magazines or the instruction manuals
  which they get with the purchase of a PC or software.
\stopCounter
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Jairo A. del Rio
Sorry, I resend my question because I forgot the subject

-- Forwarded message -
De: Jairo A. del Rio 
Date: sĂĄb., 18 de abr. de 2020 a la(s) 23:53
Subject:
To: mailing list for ConTeXt users 


I've seen the following solution in Stack Exchange to add referenceable
enumeration labels to a framed enumeration environment:

https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay

It uses \wrappedcurrentconstruction. However, it only prints the counter
label and the counter name. What if I need the text enclosed by braces in
the frame header too? E. g. \starttheorem[thm1]{Residue theorem} so the
framed title includes "Residue theorem" also. Thank you in advance.
___
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] Sidefloats inside framed

2019-09-15 Thread Wolfgang Schuster

Henri Menke schrieb am 15.09.2019 um 05:05:

Dear list,

Is there a way to get sidefloats working inside a frame?  I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats.  MWE is
below.

Cheers, Henri

---

\starttext

\startplacefigure[location={none,right}]
   \externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem}

\startframed
   [height=20\lineheight,
width=\hsize,
offset=0pt,
align=width]
   \startplacefigure[location={none,right}]
 \externalfigure[cow][width=.5\hsize]
   \stopplacefigure
   \samplefile{lorem}
\stopframed

\stoptext

\starttext

\startframed[align={width,tolerant},width=max,lines=20,offset=0pt]
    \starthanging{\externalfigure[dummy][width=.5\hsize]}
    \samplefile{lorem}
    \stophanging
\stopframed

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


Re: [NTG-context] Sidefloats inside framed

2019-09-14 Thread Aditya Mahajan

On Sun, 15 Sep 2019, Henri Menke wrote:


Dear list,

Is there a way to get sidefloats working inside a frame?  I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats.  MWE is
below.


You could use background instead of framed.

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] Sidefloats inside framed

2019-09-14 Thread Henri Menke
Dear list,

Is there a way to get sidefloats working inside a frame?  I'm currently
designing a conference poster and I'm manually placing blocks using
\setlayerframed where inside those blocks I'd like to have sidefloats.  MWE is
below.

Cheers, Henri

---

\starttext

\startplacefigure[location={none,right}]
  \externalfigure[cow][width=.5\hsize]
\stopplacefigure
\samplefile{lorem}

\startframed
  [height=20\lineheight,
   width=\hsize,
   offset=0pt,
   align=width]
  \startplacefigure[location={none,right}]
\externalfigure[cow][width=.5\hsize]
  \stopplacefigure
  \samplefile{lorem}
\stopframed

\stoptext





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


Re: [NTG-context] Bugs in \framed

2019-09-06 Thread Hans Hagen

On 9/6/2019 10:02 PM, Henning Hraban Ramm wrote:

In
ConTeXt  ver: 2019.08.24 22:42 MKIV beta  fmt: 2019.9.6
LuaTeX, Version 1.10.1
(i.e. today’s beta)

* framecorner doesn’t work any more (all the same)


typo .. i'll fix it


* backgroundoffset is shifted downwards (used to be centered, but is wrong for 
a while)


hm


\framed[
 frame=on, corner=round,
 frameoffset=0.5em, framecolor=black,
 background=color, backgroundcolor=darkgreen,
 backgroundoffset=1em,
 foreground=color,color=white,
]{{\color[white]{\ss\bf I wanted Center Green!}}}

btw, use

foregroundcolor=white

so

>  backgroundoffset=1em,
>  foregroundcolor=white]
> {\ss\bf I wanted Center Green!}

will do

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Bugs in \framed

2019-09-06 Thread Henning Hraban Ramm
In
ConTeXt  ver: 2019.08.24 22:42 MKIV beta  fmt: 2019.9.6
LuaTeX, Version 1.10.1
(i.e. today’s beta)

* framecorner doesn’t work any more (all the same)

* backgroundoffset is shifted downwards (used to be centered, but is wrong for 
a while)

examples:


\starttext

{\setupframed[foregroundstyle=mono,rulethickness=1pt,offset=0.5em,framecolor=darkgreen]
\startcombination[3*10]
  {\framed[framecorner=00]{framecorner=00}}{}
{\framed[framecorner=01]{framecorner=01}}{}
{\framed[framecorner=02]{framecorner=02}}{}
{\framed[framecorner=03]{framecorner=03}}{}
{\framed[framecorner=04]{framecorner=04}}{}
{\framed[framecorner=05]{framecorner=05}}{}
{\framed[framecorner=06]{framecorner=06}}{}
{\framed[framecorner=07]{framecorner=07}}{}
{\framed[framecorner=08]{framecorner=08}}{}
{\framed[framecorner=09]{framecorner=09}}{}
{\framed[framecorner=10]{framecorner=10}}{}
{\framed[framecorner=11]{framecorner=11}}{}
{\framed[framecorner=12]{framecorner=12}}{}
{\framed[framecorner=13]{framecorner=13}}{}
{\framed[framecorner=14]{framecorner=14}}{}
{\framed[framecorner=15]{framecorner=15}}{}
{\framed[framecorner=16]{framecorner=16}}{}
{\framed[framecorner=17]{framecorner=17}}{}
{\framed[framecorner=18]{framecorner=18}}{}
{\framed[framecorner=19]{framecorner=19}}{}
{\framed[framecorner=20]{framecorner=20}}{}
{\framed[framecorner=21]{framecorner=21}}{}
{\framed[framecorner=22]{framecorner=22}}{}
{\framed[framecorner=23]{framecorner=23}}{}
{\framed[framecorner=24]{framecorner=24}}{}
{\framed[framecorner=25]{framecorner=25}}{}
{\framed[framecorner=26]{framecorner=26}}{}
{\framed[framecorner=27]{framecorner=27}}{}
{\framed[framecorner=28]{framecorner=28}}{}
  {}{}
\stopcombination
% I had no idea how to do that with recursion
}

\framed[frame=off,
background=color,backgroundcolor=yellow,
]{Textmarker}

\framed[
background=color,backgroundcolor=red,
foreground=color,color=white,
]{{\color[white]{Pommes Rot-Weiß}}}

\framed[
frame=on, corner=round,
frameoffset=0.5em, framecolor=black,
background=color, backgroundcolor=darkgreen,
backgroundoffset=1em,
foreground=color,color=white,
]{{\color[white]{\ss\bf I wanted Center Green!}}}

\stoptext



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] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

I’m so so sorry for yet another message in this thread. I’ve solved it, but 
still don’t quite understand why it works. I post the solution here so that 
nobody has to spend any time crafting the solution. But I still have 1 key 
question.

Key question: Why does \setwhitespace[line] prevent \blank[-0.5em] from working 
after a \framed?

(Ok. I better sleep before I pollute the mailing list further.)

Apparent Solution:

\usecolors[xwi]
\setupwhitespace[line]

\starttext
\definetextbackground[secondary][
  location=always,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.5\bodyfontsize,
  rightoffset=.5\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]

\input knuth

{

\blank[line]

\setupwhitespace[none]

\startnarrower
  \dontleavehmode\framed[
width=local, corner=03, background=color, backgroundcolor=cyan,
frame=off
  ]{My header!}

  \blank[-0.5em]

  \startsecondary
  {

  \setupwhitespace[line]

\input knuth

  }
  \stopsecondary
\stopnarrower

}

\input knuth
\stoptext


> On Aug 21, 2019, at 10:21 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Ok, last message in this topic, I promise. I’ve crafted a MWE.
> 
> If I \setupwhitespace[line], the \blank[-0.5em] stops working. I’m sure I 
> need to revise my TeX notes. For now, can somebody give me a little 
> encouragement and tell me the answer? :-P
> 
> \usecolors[xwi]
> % \setupwhitespace[line]
> 
> \starttext
> \definetextbackground[secondary][
>   location=always,
>   background=color,
>   backgroundcolor=lightgray,
>   leftoffset=.5\bodyfontsize,
>   rightoffset=.5\bodyfontsize,
>   topoffset=.5\bodyfontsize,
>   bottomoffset=.5\bodyfontsize,
>   frame=off,]
> 
> \input knuth
> 
> \startnarrower
>   \dontleavehmode\framed[
> width=local, corner=03, background=color, backgroundcolor=cyan,
> frame=off
>   ]{My header!}
> 
>   \blank[-0.5em]
> 
>   \startsecondary
> \input knuth
>   \stopsecondary
> \stopnarrower
> 
> \input knuth
> \stoptext
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 9:37 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote:
>> 
>> Hi all,
>> 
>> Ah, found the solution in TextBackground. At here: 
>> https://www.contextgarden.net/TextBackground 
>> <https://www.contextgarden.net/TextBackground>
>> 
>> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
>> TextBackgrounds, zero vspace between them)?
>> 
>> For the top segment, I want rounded corners only for top corners (corner=03 
>> with \framed).
>> 
>> Seems I really should dig into MetaFun and TextBackground. Looks really fun 
>> and useful.
>> 
>> Sorry for the noise. Am a little carried away exploring the Garden. :-P
>> 
>> Regards
>> Jon
>> 
>> 
>>> On Aug 21, 2019, at 9:25 PM, Jon Wong >> <mailto:jhannw...@gmail.com>> wrote:
>>> 
>>> Hi all,
>>> 
>>> Sorry, my solution didn’t work.
>>> 
>>> My purpose of using \startnarrower is to have some paragraphs of text 
>>> inside the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
>>> 
>>> \startframedtext doesn’t have as many border options as \framed.
>>> 
>>> Should I use overlays? Or layers? It seems layers require absolutely 
>>> positioning, and can’t be logically contained inside a \startnarrower?
>>> 
>>> Regards
>>> Jon
>>> 
>>> 
>>>> On Aug 21, 2019, at 8:53 PM, Jon Wong >>> <mailto:jhannw...@gmail.com>> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I got some progress!
>>>> 
>>>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>>>> \startnarrower
>>>> \dontleavehmode\framed[width=local]{testing}
>>>> 
>>>> Since this works for left offset: \framed[width=local]{testing}
>>>> \endnarrower
>>>> 
>>>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>>>> MetaPost and MetaFun some time. Is that where the solution is?
>>>> 
>>>> Regards
>>>> Jon
>>>> 
>>>>> On Aug 21, 2019, at 8:14 PM, Jon Wong >>>> <mailto:jhannw...@gmail.com>> wrote:
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I want to have a \startnarrower effect. But I also want that segment to 
>>>>> have a border (hopefully a gradient background color too!).
>>>>> 
>>>>> I tried:
>>>>> 
>>>>> \startnarrower
>>>>> \framed{testing}
>>>>> 
>>>>> Seems framed doesn’t observe startnarrower commands.
>>>>> \endnarrower
>>>>> 
>>>>> How do I achieve that?
>>>>> 
>>>>> Regards
>>>>> Jon
>>>> 
>>> 
>> 
> 

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

2019-08-21 Thread Jon Wong
Hi all,

Ok, last message in this topic, I promise. I’ve crafted a MWE.

If I \setupwhitespace[line], the \blank[-0.5em] stops working. I’m sure I need 
to revise my TeX notes. For now, can somebody give me a little encouragement 
and tell me the answer? :-P

\usecolors[xwi]
% \setupwhitespace[line]

\starttext
\definetextbackground[secondary][
  location=always,
  background=color,
  backgroundcolor=lightgray,
  leftoffset=.5\bodyfontsize,
  rightoffset=.5\bodyfontsize,
  topoffset=.5\bodyfontsize,
  bottomoffset=.5\bodyfontsize,
  frame=off,]

\input knuth

\startnarrower
  \dontleavehmode\framed[
width=local, corner=03, background=color, backgroundcolor=cyan,
frame=off
  ]{My header!}

  \blank[-0.5em]

  \startsecondary
\input knuth
  \stopsecondary
\stopnarrower

\input knuth
\stoptext

Regards
Jon


> On Aug 21, 2019, at 9:37 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Ah, found the solution in TextBackground. At here: 
> https://www.contextgarden.net/TextBackground 
> <https://www.contextgarden.net/TextBackground>
> 
> Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
> TextBackgrounds, zero vspace between them)?
> 
> For the top segment, I want rounded corners only for top corners (corner=03 
> with \framed).
> 
> Seems I really should dig into MetaFun and TextBackground. Looks really fun 
> and useful.
> 
> Sorry for the noise. Am a little carried away exploring the Garden. :-P
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 9:25 PM, Jon Wong > <mailto:jhannw...@gmail.com>> wrote:
>> 
>> Hi all,
>> 
>> Sorry, my solution didn’t work.
>> 
>> My purpose of using \startnarrower is to have some paragraphs of text inside 
>> the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
>> 
>> \startframedtext doesn’t have as many border options as \framed.
>> 
>> Should I use overlays? Or layers? It seems layers require absolutely 
>> positioning, and can’t be logically contained inside a \startnarrower?
>> 
>> Regards
>> Jon
>> 
>> 
>>> On Aug 21, 2019, at 8:53 PM, Jon Wong >> <mailto:jhannw...@gmail.com>> wrote:
>>> 
>>> Hi all,
>>> 
>>> I got some progress!
>>> 
>>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>>> \startnarrower
>>> \dontleavehmode\framed[width=local]{testing}
>>> 
>>> Since this works for left offset: \framed[width=local]{testing}
>>> \endnarrower
>>> 
>>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>>> MetaPost and MetaFun some time. Is that where the solution is?
>>> 
>>> Regards
>>> Jon
>>> 
>>>> On Aug 21, 2019, at 8:14 PM, Jon Wong >>> <mailto:jhannw...@gmail.com>> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I want to have a \startnarrower effect. But I also want that segment to 
>>>> have a border (hopefully a gradient background color too!).
>>>> 
>>>> I tried:
>>>> 
>>>> \startnarrower
>>>> \framed{testing}
>>>> 
>>>> Seems framed doesn’t observe startnarrower commands.
>>>> \endnarrower
>>>> 
>>>> How do I achieve that?
>>>> 
>>>> Regards
>>>> Jon
>>> 
>> 
> 

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

2019-08-21 Thread Jon Wong
Hi all,

Ah, found the solution in TextBackground. At here: 
https://www.contextgarden.net/TextBackground 
<https://www.contextgarden.net/TextBackground>

Can I have a 2-segment (2 vboxes) TextBackground (presumably with 2 
TextBackgrounds, zero vspace between them)?

For the top segment, I want rounded corners only for top corners (corner=03 
with \framed).

Seems I really should dig into MetaFun and TextBackground. Looks really fun and 
useful.

Sorry for the noise. Am a little carried away exploring the Garden. :-P

Regards
Jon


> On Aug 21, 2019, at 9:25 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Sorry, my solution didn’t work.
> 
> My purpose of using \startnarrower is to have some paragraphs of text inside 
> the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.
> 
> \startframedtext doesn’t have as many border options as \framed.
> 
> Should I use overlays? Or layers? It seems layers require absolutely 
> positioning, and can’t be logically contained inside a \startnarrower?
> 
> Regards
> Jon
> 
> 
>> On Aug 21, 2019, at 8:53 PM, Jon Wong  wrote:
>> 
>> Hi all,
>> 
>> I got some progress!
>> 
>> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
>> \startnarrower
>> \dontleavehmode\framed[width=local]{testing}
>> 
>> Since this works for left offset: \framed[width=local]{testing}
>> \endnarrower
>> 
>> So, how do I do a gradient background? Yeah, I know I have to dive into 
>> MetaPost and MetaFun some time. Is that where the solution is?
>> 
>> Regards
>> Jon
>> 
>>> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
>>> 
>>> Hi all,
>>> 
>>> I want to have a \startnarrower effect. But I also want that segment to 
>>> have a border (hopefully a gradient background color too!).
>>> 
>>> I tried:
>>> 
>>> \startnarrower
>>> \framed{testing}
>>> 
>>> Seems framed doesn’t observe startnarrower commands.
>>> \endnarrower
>>> 
>>> How do I achieve that?
>>> 
>>> Regards
>>> Jon
>> 
> 

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

2019-08-21 Thread Jon Wong
Hi all,

Sorry, my solution didn’t work.

My purpose of using \startnarrower is to have some paragraphs of text inside 
the \framed. Unfortunately, it seems \framed doesn’t take paragraphs.

\startframedtext doesn’t have as many border options as \framed.

Should I use overlays? Or layers? It seems layers require absolutely 
positioning, and can’t be logically contained inside a \startnarrower?

Regards
Jon


> On Aug 21, 2019, at 8:53 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> I got some progress!
> 
> \setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
> \startnarrower
>  \dontleavehmode\framed[width=local]{testing}
> 
>  Since this works for left offset: \framed[width=local]{testing}
> \endnarrower
> 
> So, how do I do a gradient background? Yeah, I know I have to dive into 
> MetaPost and MetaFun some time. Is that where the solution is?
> 
> Regards
> Jon
> 
>> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
>> 
>> Hi all,
>> 
>> I want to have a \startnarrower effect. But I also want that segment to have 
>> a border (hopefully a gradient background color too!).
>> 
>> I tried:
>> 
>> \startnarrower
>> \framed{testing}
>> 
>> Seems framed doesn’t observe startnarrower commands.
>> \endnarrower
>> 
>> How do I achieve that?
>> 
>> Regards
>> Jon
> 

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

2019-08-21 Thread Jon Wong
Hi all,

I got some progress!

\setupnarrower[left=2cm, right=2cm] % what does middle do, actually?
\startnarrower
  \dontleavehmode\framed[width=local]{testing}

  Since this works for left offset: \framed[width=local]{testing}
\endnarrower

So, how do I do a gradient background? Yeah, I know I have to dive into 
MetaPost and MetaFun some time. Is that where the solution is?

Regards
Jon

> On Aug 21, 2019, at 8:14 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> I want to have a \startnarrower effect. But I also want that segment to have 
> a border (hopefully a gradient background color too!).
> 
> I tried:
> 
> \startnarrower
>  \framed{testing}
> 
>  Seems framed doesn’t observe startnarrower commands.
> \endnarrower
> 
> How do I achieve that?
> 
> Regards
> Jon

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

2019-08-21 Thread Hans Hagen

On 8/21/2019 2:14 PM, Jon Wong wrote:

\startnarrower
   \framed{testing}

   Seems framed doesn’t observe startnarrower commands.
\endnarrower

\starttext

Seems framed doesn’t observe startnarrower commands.

\startnarrower
\dontleavehmode \framed{testing}

Seems framed doesn’t observe startnarrower commands.

\startlinecorrection
\dontleavehmode \framed{testing}
\stoplinecorrection
\stopnarrower

\stoptext

for gradients, see metafun and example sin test suite

--

-
  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] startnarrower and framed?

2019-08-21 Thread Jon Wong
Hi all,

I want to have a \startnarrower effect. But I also want that segment to have a 
border (hopefully a gradient background color too!).

I tried:

\startnarrower
  \framed{testing}

  Seems framed doesn’t observe startnarrower commands.
\endnarrower

How do I achieve that?

Regards
Jon
___
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] Small pages and large framed texts

2019-03-21 Thread Willi Egger
Gosh Wolfgang! Thank you so much for your piece of code! — It starts to look 
nicer and nicer in my little project :-)

Kindest regards

Willi

> On 20 Mar 2019, at 22:31, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 20.03.19 um 22:11:
>> It’s me again

>> I appears that I was not clear enough, though I am happy about the 
>> possibility of using textbackground.
>> What I must do is to prepare a list of ConTeXt commands on a very small 
>> page. So the specific question is, how I can influence the 
>> \placelistofsorts[texcommand] in such a way, that the framed pieces break 
>> over the page.
> 
> \usemodule [setups]
> 
> \setuppapersize [A6] [A6]
> 
> \setupbodyfont [pagella,9pt]
> 
> \definetextbackground
>  [SetupsParameter]
>  [before=\blank,
>   after=\blank,
>   topoffset=10pt,
>   leftoffset=10pt,
>   location=paragraph,
>   frame=on]
> 
> \startsetups [xml:setups:start]
>  \starttextbackground [SetupsParameter]
> \stopsetups
> 
> \startsetups [xml:setups:stop]
>  \stoptextbackground
> \stopsetups
> 
> \starttext
> 
> \startsection[title={Short Version of the Command}]
> 
>  \cmdshortsetup [setupframed]
>  \cmdshortsetup [setupinteraction]
> 
> \stopsection
> 
> \startsection[title={\TEX-commands}]
> 
>  \placesetup
> 
> \stopsection
> 
> \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://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] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster

Willi Egger schrieb am 20.03.19 um 22:11:

It’s me again


I appears that I was not clear enough, though I am happy about the possibility 
of using textbackground.

What I must do is to prepare a list of ConTeXt commands on a very small page. 
So the specific question is, how I can influence the 
\placelistofsorts[texcommand] in such a way, that the framed pieces break over 
the page.


\usemodule [setups]

\setuppapersize [A6] [A6]

\setupbodyfont [pagella,9pt]

\definetextbackground
  [SetupsParameter]
  [before=\blank,
   after=\blank,
   topoffset=10pt,
   leftoffset=10pt,
   location=paragraph,
   frame=on]

\startsetups [xml:setups:start]
  \starttextbackground [SetupsParameter]
\stopsetups

\startsetups [xml:setups:stop]
  \stoptextbackground
\stopsetups

\starttext

\startsection[title={Short Version of the Command}]

  \cmdshortsetup [setupframed]
  \cmdshortsetup [setupinteraction]

\stopsection

\startsection[title={\TEX-commands}]

  \placesetup

\stopsection

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


Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
It’s me again


I appears that I was not clear enough, though I am happy about the possibility 
of using textbackground.

What I must do is to prepare a list of ConTeXt commands on a very small page. 
So the specific question is, how I can influence the 
\placelistofsorts[texcommand] in such a way, that the framed pieces break over 
the page.

\usemodule[x][set-11]
\loadsetups[i-context]

\setuppapersize[A6][A6]

\setupbodyfont[pagella,rm,10pt]


\starttext

\startsection[title=hSort Version of the Command]

\shortsetup{setupframed}
\shortsetup{setupinteraction}

\stopsection

\startsection[title=\TEX -commands]

\placelistofsorts[texcommand]

\stopsection

\stoptext


Willi

> On 20 Mar 2019, at 20:48, Willi Egger  wrote:
> 
> Thank you Wolfgang, I will try this!
> 
> Willi
> 
>> On 20 Mar 2019, at 18:26, Willi Egger  wrote:
>> 
>> Hi,
>> 
>> I deal with a small project, in which I should be able to make a framed text 
>> break over the page. — Does anyone have an idea how to achieve this?
>> 
>> \setuppapersize[A6][A6]
>> 
>> \setupbodyfont[pagella,rm,10pt]
>> 
>> 
>> \starttext
>>  \framedtext
>>  {\dorecurse{3}{\input ward\blank}}
>> \stoptext
>> 
>> 
>> Any hints would be welcome
>> 
>> Willi
>> ___
>> 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] Small pages and large framed texts

2019-03-20 Thread Willi Egger
Thank you Wolfgang, I will try this!

Willi

> On 20 Mar 2019, at 18:26, Willi Egger  wrote:
> 
> Hi,
> 
> I deal with a small project, in which I should be able to make a framed text 
> break over the page. — Does anyone have an idea how to achieve this?
> 
> \setuppapersize[A6][A6]
> 
> \setupbodyfont[pagella,rm,10pt]
> 
> 
> \starttext
>   \framedtext
>   {\dorecurse{3}{\input ward\blank}}
> \stoptext
> 
> 
> Any hints would be welcome
> 
> Willi
> ___
> 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
___


  1   2   3   4   5   6   7   >