From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95479 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: (no subject) Date: Mon, 18 Jul 2016 10:36:37 +0200 Message-ID: References: <5788C872.2000506@gmail.com> <56107AD9-DDDB-4745-ADF7-C6772CA9AA32@gmail.com> <4B4448D5-7BA7-4065-AB4A-337D36374E25@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2193537559537968989==" X-Trace: ger.gmane.org 1468831062 15747 80.91.229.3 (18 Jul 2016 08:37:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2016 08:37:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 18 10:37:32 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bP43N-0000Wb-G0 for gctc-ntg-context-518@m.gmane.org; Mon, 18 Jul 2016 10:37:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 16A9812187; Mon, 18 Jul 2016 10:36:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h0NACk28a9zA; Mon, 18 Jul 2016 10:36:53 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2247212182; Mon, 18 Jul 2016 10:36:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 666A612182 for ; Mon, 18 Jul 2016 10:36:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30J0oFkNFHCT for ; Mon, 18 Jul 2016 10:36:50 +0200 (CEST) Original-Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D345712181 for ; Mon, 18 Jul 2016 10:36:39 +0200 (CEST) Original-Received: by mail-it0-f43.google.com with SMTP id f6so62750163ith.1 for ; Mon, 18 Jul 2016 01:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YWDMIAH5x+rYa98G5xdzD9aMoJZ2hQlEVscEqqKd5J0=; b=xUyp5xK2CU7t1Q9omvsAE3/SfTgVf2rHrH/d9N+t879OFN5jEzbj8F2NgQ6BYT8u9b M1wzAAsh1zjHoVet/o4q74SXNzgoaEakaI5sSl+HCtFG2zzlMDyx2RZcMsJZYROh5Nrv dxhegpR9l2KgKRtz+UpFkCXntdSCayaWNU7Lq8mNz1+291ufkyXdIeChliWp9tqnMlFW K6TNvhBME5T0/b3c/WCvPzv5UbtZxwp/8AoL38U5982fNVuwsHd4koSr0JOMfnRMy2EZ W4wC1ekJ0X7Icx6bp5LSCAEUnRaimGsvGtIZv3bmlKOQcRtbr7HPUmYDaxbLak40OfzM G0FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YWDMIAH5x+rYa98G5xdzD9aMoJZ2hQlEVscEqqKd5J0=; b=HLgMG5YVb70xfNJS1EelzsHU5VzumRRtrXDbPlc9yzwQt7YWoo339DNG6ni+d9utQf 7mAI5AkVaUa+je49isqPgYxJmxuroTWluY7Ej2WqzDYmESGR/1pr5ZaCkDBqW7O/9fcE inB8WTLCFpCQ8b3ciJW3f5dqrH43GSbIaDXx+92H0ooLGxzDhgwoGziCtlO5/UTKsXNV 3nSt2ghxduhDTIrxb8dXd5oHYPTgZYsMqNT6KEW8nbQ3a+QWwVRHV+YZJBwOXdvyLMBl sIwqQm0skfYcW10BbsWseKkIT4RMEZqH2M061mxOjOtUEOHFldAc54UwAHK9FeJTbxWZ krXw== X-Gm-Message-State: ALyK8tK0+a4KSzp18KojI/CvmVRYvCYcp2/oJvnnI+38ld/71aXgQS/4fwVKd00hGmrw6PJtgbC8sj1PmD9r6g== X-Received: by 10.36.1.12 with SMTP id 12mr13251624itk.30.1468830998083; Mon, 18 Jul 2016 01:36:38 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Mon, 18 Jul 2016 01:36:37 -0700 (PDT) In-Reply-To: <4B4448D5-7BA7-4065-AB4A-337D36374E25@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95479 Archived-At: --===============2193537559537968989== Content-Type: multipart/alternative; boundary=001a1134f6a6e079520537e4dd9f --001a1134f6a6e079520537e4dd9f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Otared, thanks, in fact, the placement of the \placerecipe{}{} in the text determin= es the placement of the framed in the right margin if I understand. Fabrice 2016-07-17 10:46 GMT+02:00 Otared Kavian : > Hi Fabrice, > > If you want the framed box to be placed on the same baseline as the lette= r > A, in the example, then you have to tell ConTeXt to place a margin materi= al > right after A, as in > > > A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille != }} > B \\ C > > and you can play with setupframed by choosing an option =C2=AB low =C2=BB= or =C2=BB high > =C2=BB according to your desire. > > Best regards: Otared > > > > On 16 Jul 2016, at 23:23, Fabrice Couvreur > wrote: > > > > Hi Kavian, > > Okay, but I do not understand why the top of the framed can not be on > the baseline of the letter A. > > Fabrice > > > > 2016-07-16 11:28 GMT+02:00 Otared Kavian : > > Hi Fabrice, > > > > Indeed you can place your float a little bit higher in th emargin, as i= n > the example below, by using the keyword =C2=AB high =C2=BB. > > > > Best regrads: Otared K. > > % begin fabrice-inmargin.tex > > \setuplayout > > [width=3D13cm, > > rightmargin=3D5cm] > > > > \setupbodyfont[pagella,11pt] > > > > \definefloat > > [recipe] > > [figure] > > > > \setupfloat > > [recipe] > > [default=3D{rightmargin,none,high}] > > > > \setupframed > > [frame=3Don, > > width=3D\rightmarginwidth, > > align=3Djustify, > > offset=3D2pt, > > location=3Dlow, > > rulethickness=3D1pt, > > framecolor=3Ddarkred, > > corner=3D00] > > > > \showgrid > > \showframe > > > > \starttext > > > > A\\ B \\ C > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > \input ward.tex > > > > \setupfloat > > [recipe] > > [default=3D{rightmargin,none,low}] > > > > A\\ B \\ C > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > \stoptext > > % end fabrice-inmargin.tex > > > > > On 16 Jul 2016, at 00:44, Fabrice Couvreur < > fabrice1.couvreur@gmail.com> wrote: > > > > > > Hi Kavian (your first name ?) > > > Thank you for your suggestion but it is still a little problem: why > the baseline of the framed is the thirdA and not the first ? > > > thank you, > > > Fabrice > > > > > > \useMPlibrary [dum] > > > > > > \setuplayout > > > [width=3D13cm, > > > rightmargin=3D5cm] > > > > > > > > > \setupbodyfont[pagella,11pt] > > > > > > \definefloat > > > [recipe] > > > [figure] > > > > > > \setupfloat > > > [recipe] > > > [default=3D{rightmargin,none}] > > > > > > \setupframed > > > [frame=3Don, > > > width=3D\rightmarginwidth, > > > align=3Djustify, > > > offset=3D2pt, > > > location=3Dlow, > > > rulethickness=3D1pt, > > > framecolor=3Ddarkred, > > > corner=3D00] > > > > > > \starttext > > > > > > \showframe > > > > > > > > > A\\A\\A > > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille != }} > > > > > > > > > > > > \stoptext > > > > > _________________________________________________________________________= __________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > > > _________________________________________________________________________= __________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --001a1134f6a6e079520537e4dd9f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Otared= ,
thanks, in fact, the= placement of the \plac= erecipe{}{} in the text d= etermines the placement of the framed
in = the right margin if I understand.
Fabrice

2016-07-17 10:46 GMT+0= 2:00 Otared Kavian <otared@gmail.com>:
Hi Fabrice,

If you want the framed box to be placed on the same baseline as the letter = A, in the example, then you have to tell ConTeXt to place a margin material= right after A, as in


A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille= !}}
B \\ C

and you can play with setupframed by choosing an option =C2=AB low =C2=BB o= r =C2=BB high =C2=BB according to your desire.

Best regards: Otared


> On 16 Jul 2016, at 23:23, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
>
> Hi Kavian,
> Okay, but I do not understand why the top of the framed can not be on = the baseline of the letter A.
> Fabrice
>
> 2016-07-16 11:28 GMT+02:00 Otared Kavian <otared@gmail.com>:
> Hi Fabrice,
>
> Indeed you can place your float a little bit higher in th emargin, as = in the example below, by using the keyword =C2=AB high =C2=BB.
>
> Best regrads: Otared K.
> % begin fabrice-inmargin.tex
> \setuplayout
>=C2=A0 =C2=A0[width=3D13cm,
>=C2=A0 =C2=A0 rightmargin=3D5cm]
>
> \setupbodyfont[pagella,11pt]
>
> \definefloat
>=C2=A0 =C2=A0 [recipe]
>=C2=A0 =C2=A0 [figure]
>
> \setupfloat
>=C2=A0 =C2=A0 [recipe]
>=C2=A0 =C2=A0 [default=3D{rightmargin,none,high}]
>
> \setupframed
>=C2=A0 =C2=A0[frame=3Don,
>=C2=A0 =C2=A0 width=3D\rightmarginwidth,
>=C2=A0 =C2=A0 align=3Djustify,
>=C2=A0 =C2=A0 offset=3D2pt,
>=C2=A0 =C2=A0 location=3Dlow,
>=C2=A0 =C2=A0 rulethickness=3D1pt,
>=C2=A0 =C2=A0 framecolor=3Ddarkred,
>=C2=A0 =C2=A0 corner=3D00]
>
> \showgrid
> \showframe
>
> \starttext
>
> A\\ B \\ C
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquill= e !}}
>
> \input ward.tex
>
> \setupfloat
>=C2=A0 =C2=A0 [recipe]
>=C2=A0 =C2=A0 [default=3D{rightmargin,none,low}]
>
> A\\ B \\ C
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquill= e !}}
>
> \stoptext
> % end fabrice-inmargin.tex
>
> > On 16 Jul 2016, at 00:44, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
> >
> > Hi Kavian (your first name ?)
> > Thank you for your suggestion but it is still a little problem: w= hy the baseline of the framed is the thirdA and not the first ?
> > thank you,
> > Fabrice
> >
> > \useMPlibrary [dum]
> >
> > \setuplayout
> >=C2=A0 =C2=A0[width=3D13cm,
> >=C2=A0 =C2=A0 rightmargin=3D5cm]
> >
> >
> > \setupbodyfont[pagella,11pt]
> >
> > \definefloat
> >=C2=A0 =C2=A0 [recipe]
> >=C2=A0 =C2=A0 [figure]
> >
> > \setupfloat
> >=C2=A0 =C2=A0 [recipe]
> >=C2=A0 =C2=A0 [default=3D{rightmargin,none}]
> >
> > \setupframed
> >=C2=A0 =C2=A0[frame=3Don,
> >=C2=A0 =C2=A0 width=3D\rightmarginwidth,
> >=C2=A0 =C2=A0 align=3Djustify,
> >=C2=A0 =C2=A0 offset=3D2pt,
> >=C2=A0 =C2=A0 location=3Dlow,
> >=C2=A0 =C2=A0 rulethickness=3D1pt,
> >=C2=A0 =C2=A0 framecolor=3Ddarkred,
> >=C2=A0 =C2=A0 corner=3D00]
> >
> > \starttext
> >
> > \showframe
> >
> >
> > A\\A\\A
> > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tran= quille !}}
> >
> >
> >
> > \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=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: 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=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net > archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a1134f6a6e079520537e4dd9f-- --===============2193537559537968989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2193537559537968989==--