From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95469 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: (no subject) Date: Sat, 16 Jul 2016 23:23:19 +0200 Message-ID: References: <5788C872.2000506@gmail.com> <56107AD9-DDDB-4745-ADF7-C6772CA9AA32@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2809469175097660452==" X-Trace: ger.gmane.org 1468704238 5702 80.91.229.3 (16 Jul 2016 21:23:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 21:23:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 16 23:23:47 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 1bOX3q-00026O-5A for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jul 2016 23:23:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5181C120A7; Sat, 16 Jul 2016 23:23:35 +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 h6kUvDdgXn7g; Sat, 16 Jul 2016 23:23:34 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7990E120B0; Sat, 16 Jul 2016 23:23:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 33ACE120A7 for ; Sat, 16 Jul 2016 23:23:33 +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 HGq5yxUOOdkF for ; Sat, 16 Jul 2016 23:23:32 +0200 (CEST) Original-Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) (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 E0BBA120A5 for ; Sat, 16 Jul 2016 23:23:21 +0200 (CEST) Original-Received: by mail-io0-f181.google.com with SMTP id q83so132297515iod.1 for ; Sat, 16 Jul 2016 14:23:21 -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=lrS1uOy85HtC7yy+FZK4BkHX8Hkdt8UEsYTIi5pJBsI=; b=TZqvU2EGmN2NxnBML+TzNnyhvbzCO+0TzW9uKR1fCc04rWX9tNXdcx3ewRMD+ZDKLJ VYptxLEKRHHCJLYWyCYExs13pqv5Dl/3DQU1gDjeBVdMmvlduIWRxFqvlUs9D5shVQ7a UiaFOarbvRzAQE8N4XN5gt0GDB+w9i8dsrSXwzeap5107iNZDXnG8RwRhun7q9mriC9D EZKkCQM/cIDcyhGygZ3aI4WJ7gWaXUmTOvOe467+r9/X3KLn8zAzVygUtbQylqp/Cp6U hrUEx71KTkwydYjUaIC6Y3SXnNsIxMPd6uMH5efNoUggdpzSAZzDDPK76qXWZjobBp7y 3lWQ== 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=lrS1uOy85HtC7yy+FZK4BkHX8Hkdt8UEsYTIi5pJBsI=; b=HMt+lh2YG4H/evnyxnORDkjmnKs+YA8nlN07EeCwz0zYwXtvNH3/M8rXTWpPzj2VVn 7dw9VByMO9K1mdNleHt3JVwqHZvV0wLl87Efj1r4VZqq3h2J7OaPUvWwvX/ItsXHCKoe mhgYzN+JM1P8pFioxiylUEHR4ePg9ivTguaqiXm7Vbx96/T7hB408CuEqZAdfPoFSev7 u6SR257L0FJwKaMdJs7830rQztDPmjynE8hWUfk/0LuAqzEbp2Vf4abR37coLcEVLW06 /+PLIHSiyMpCCfb7YPxMC2AnxIoTkroQf0pUP4fUzXHRK+Eb3lDZKyTZbiAOAo0r8w5z BMJQ== X-Gm-Message-State: ALyK8tJ0mOPhvlPfSLMuuDE39XWYabjNEOP8XcFHoHen0/vOj+8ShN1s4+sYey11K2wMY+HxdcW9elV17zUD/w== X-Received: by 10.107.9.42 with SMTP id j42mr26440622ioi.33.1468704200009; Sat, 16 Jul 2016 14:23:20 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Sat, 16 Jul 2016 14:23:19 -0700 (PDT) In-Reply-To: <56107AD9-DDDB-4745-ADF7-C6772CA9AA32@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:95469 Archived-At: --===============2809469175097660452== Content-Type: multipart/alternative; boundary=001a113df6ac1f2d460537c75852 --001a113df6ac1f2d460537c75852 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 in > 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 > 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 > > _________________________________________________________________________= __________ > --001a113df6ac1f2d460537c75852 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Kavian,
Okay, but I
do not understand why the top of the framed
can not be on the baseli= ne of the letter A.
Fa= brice

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 th= e example below, by using the keyword =C2=AB high =C2=BB.

Best regrads: Otared K.
% begin fabrice-inmargin.tex
\setuplayout
=C2=A0 [width=3D13cm,
=C2=A0 =C2=A0rightmargin=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 [frame=3Don,
=C2=A0 =C2=A0width=3D\rightmarginwidth,
=C2=A0 =C2=A0align=3Djustify,
=C2=A0 =C2=A0offset=3D2pt,
=C2=A0 =C2=A0location=3Dlow,
=C2=A0 =C2=A0rulethickness=3D1pt,
=C2=A0 =C2=A0framecolor=3Ddarkred,
=C2=A0 =C2=A0corner=3D00]

\showgrid
\showframe

\starttext

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

\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 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
>=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 tranquill= e !}}
>
>
>
> \stoptext

_______________________= ____________________________________________________________
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
___________________________________________________________________________= ________

--001a113df6ac1f2d460537c75852-- --===============2809469175097660452== 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= --===============2809469175097660452==--