Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Fabrice Couvreur
Hi Hans,
It's great and with alternative =serried, that's exactly what I'm trying to
do !
Thanks.
Fabrice

PS : @Pablo Thanks for your help.

Le dim. 19 août 2018 à 12:40, Hans Hagen  a écrit :

> On 8/19/2018 11:47 AM, Pablo Rodriguez wrote:
> > On 08/18/2018 11:51 PM, Fabrice Couvreur wrote:
> >> Hi Palbo,
> >> In fact I want the text '' Coming back ... '' to start on the same
> >> baseline as the title of the ornament as in the photo.
> >
> > Hi Fabrice,
> >
> > I’m afraid I don’t know how to do that (if that is possible with frames).
> \definecolor[MyColorA][s=0.8784]
> \definecolor[MyColorB][m=0.27,y=1]
>
> \defineframed
>[FrameTitle]
>[frame=off,
> foregroundstyle=\bfx\ss,
> foregroundcolor=white,
> background=color,
> backgroundcolor=MyColorB,
> location=depth]
>
> \defineframedtext
>[FramedText]
>[offset=0.6em,
> style=\ss,
> toffset=.25\lineheight,
> background=color,
> backgroundcolor=MyColorA,
> oregroundstyle={\switchtobodyfont[10pt]},
> align={right, broad},
> frame=off,
> corner=round,
> radius=1.5em,
> width=10cm]
>
> \definedescription
>[Info]
>[before=,
> after=,
> text=Info,
> title=no,
> width=fit,
> distance=1em,
> headcommand=\FrameTitle,
> alternative=hanging]
>
> \showframe
>
> \starttext
> \startFramedText
>\startInfo
>  \input zapf
>\stopInfo
>  \stopFramedText
> \stoptext
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an 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] Text wrapped with an ornement

2018-08-19 Thread Hans Hagen

On 8/19/2018 11:47 AM, Pablo Rodriguez wrote:

On 08/18/2018 11:51 PM, Fabrice Couvreur wrote:

Hi Palbo,
In fact I want the text '' Coming back ... '' to start on the same
baseline as the title of the ornament as in the photo.


Hi Fabrice,

I’m afraid I don’t know how to do that (if that is possible with frames).

\definecolor[MyColorA][s=0.8784]
\definecolor[MyColorB][m=0.27,y=1]

\defineframed
  [FrameTitle]
  [frame=off,
   foregroundstyle=\bfx\ss,
   foregroundcolor=white,
   background=color,
   backgroundcolor=MyColorB,
   location=depth]

\defineframedtext
  [FramedText]
  [offset=0.6em,
   style=\ss,
   toffset=.25\lineheight,
   background=color,
   backgroundcolor=MyColorA,
   oregroundstyle={\switchtobodyfont[10pt]},
   align={right, broad},
   frame=off,
   corner=round,
   radius=1.5em,
   width=10cm]

\definedescription
  [Info]
  [before=,
   after=,
   text=Info,
   title=no,
   width=fit,
   distance=1em,
   headcommand=\FrameTitle,
   alternative=hanging]

\showframe

\starttext
   \startFramedText
  \startInfo
\input zapf
  \stopInfo
\stopFramedText
\stoptext


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

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

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Pablo Rodriguez
On 08/18/2018 11:51 PM, Fabrice Couvreur wrote:
> Hi Palbo,
> In fact I want the text '' Coming back ... '' to start on the same
> baseline as the title of the ornament as in the photo.

Hi Fabrice,

I’m afraid I don’t know how to do that (if that is possible with frames).

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Fabrice Couvreur
Hi Palbo,
In fact I want the text '' Coming back ... '' to start on the same baseline
as the title of the ornament as in the photo.
Thanks.
Fabrice

Info  Coming back ...
blablablablabla

Le sam. 18 août 2018 à 13:26, Pablo Rodriguez  a écrit :

> On 08/18/2018 11:11 AM, Fabrice Couvreur wrote:
> > Hi Pablo,
> > These options are to be added to \defineframedtext [] [] ?
> > Without success at home !
>
> Hi Fabrice,
>
> your sample should read:
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
> \defineornament
> [FrameTitle]
> [preset=lefttop]
> [
>   frame=off,
>   foregroundstyle=\bfx\ss,
>   foregroundcolor=white,
>   background=color,
>   backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
>   [FramedText]
>   [
> offset=0.6em,
> style=\ss,
> toffset=\lineheight,
> background=color,
> backgroundcolor=MyColorA,
> foregroundstyle={\switchtobodyfont[10pt]},
> align={right, broad},
> frame=off,
> corner=round,
> radius=1.5em,
> width=10cm,
>   ]
>
> \showframe
>
> \starttext
>
>\FrameTitle{Info}{%
>\startFramedText%
>   \input zapf
> \stopFramedText}
>
> \stoptext
>
> The width option works now, because I didn’t realize that your sample
> had it right after the "\startFramedText" command.
>
> I hope it helps now. If anything is not working as you expect, please
> explain what should be different.
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an 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] Text wrapped with an ornement

2018-08-18 Thread Pablo Rodriguez
On 08/18/2018 11:11 AM, Fabrice Couvreur wrote:
> Hi Pablo,
> These options are to be added to \defineframedtext [] [] ?
> Without success at home !

Hi Fabrice,

your sample should read:

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

\defineornament
[FrameTitle]
[preset=lefttop]
[
  frame=off,
  foregroundstyle=\bfx\ss,
  foregroundcolor=white,
  background=color,
  backgroundcolor=MyColorB,
]

\defineframedtext
  [FramedText]
  [
offset=0.6em,
style=\ss,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align={right, broad},
frame=off,
corner=round,
radius=1.5em,
width=10cm,
  ]

\showframe

\starttext

   \FrameTitle{Info}{%
   \startFramedText%
  \input zapf
\stopFramedText}

\stoptext

The width option works now, because I didn’t realize that your sample
had it right after the "\startFramedText" command.

I hope it helps now. If anything is not working as you expect, please
explain what should be different.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Fabrice Couvreur
Hi Pablo,
These options are to be added to \defineframedtext [] [] ?
Without success at home !
Fabrice

Le sam. 18 août 2018 à 10:17, Pablo Rodriguez  a écrit :

> On 08/18/2018 01:08 AM, Fabrice Couvreur wrote:
> > Hello,
> > That's true Wolfgang, I just checked right now, sorry!
> > What I would like to do is on the image below.
>
> Hi Fabrice,
>
> you should use the following commands:
>
>align={right, broad},
>radius=2em,
>
> And I don’t know why the width option doesn’t work here.
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an 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] Text wrapped with an ornement

2018-08-18 Thread Pablo Rodriguez
On 08/18/2018 01:08 AM, Fabrice Couvreur wrote:
> Hello,
> That's true Wolfgang, I just checked right now, sorry!
> What I would like to do is on the image below.

Hi Fabrice,

you should use the following commands:

   align={right, broad},
   radius=2em,

And I don’t know why the width option doesn’t work here.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text wrapped with an ornement

2018-08-17 Thread Fabrice Couvreur
Hello,
That's true Wolfgang, I just checked right now, sorry!
What I would like to do is on the image below.
Fabrice

[image: IMG_0690.JPG]

Le ven. 17 août 2018 à 17:31, Pablo Rodriguez  a écrit :

> On 08/17/2018 11:24 AM, Fabrice Couvreur wrote:
> > Hello,
> > Aditya offered me the following code to insert comments with an
> > ornament. I notice that the option alternative= serried does not seem to
> > work.
>
> Hi Fabrice,
>
> I think it is not clear what do you intend to do with the frame.
>
> If text inside isn’t broken in lines is because of the lack of spaces
> (use "\dorecurse{100}{blabla }" instead).
>
> If I miss your point, could you explain what you need?
>
> Just in case it might help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an 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] Text wrapped with an ornement

2018-08-17 Thread Pablo Rodriguez
On 08/17/2018 11:24 AM, Fabrice Couvreur wrote:
> Hello,
> Aditya offered me the following code to insert comments with an
> ornament. I notice that the option alternative= serried does not seem to
> work.

Hi Fabrice,

I think it is not clear what do you intend to do with the frame.

If text inside isn’t broken in lines is because of the lack of spaces
(use "\dorecurse{100}{blabla }" instead).

If I miss your point, could you explain what you need?

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text wrapped with an ornement

2018-08-17 Thread Wolfgang Schuster
Neither framedtext nor framed have a alternative key. You can check this 
very easy by looking into setup-en.pdf.


Wolfgang


Fabrice Couvreur schrieb am 17.08.18 um 11:24:

Hello,
Aditya offered me the following code to insert comments with an 
ornament. I notice that the option alternative= serried does not seem 
to work.

Thank you.
Fabrice

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

\defineornament
[FrameTitle]
[preset=lefttop]
[
  frame=off,
  foregroundstyle=\bfx,
foregroundcolor=white,
  background=color,
backgroundcolor=MyColorB,
]


\defineframedtext
[FramedText]
  [
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant,
alternative=serried, % text wrapped
frame=off,
corner=round,
  ]

\showframe

\starttext

\FrameTitle{Info}{\startFramedText[width=\textwidth]
\dorecurse{100}{blabla}
\stopFramedText}

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