From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: (no subject)
Date: Sun, 17 Jul 2016 10:46:07 +0200 [thread overview]
Message-ID: <4B4448D5-7BA7-4065-AB4A-337D36374E25@gmail.com> (raw)
In-Reply-To: <CACyK-eo45214M61UBzPTZ09GYjGnoMrhLADM_uzk-2RYedzwMg@mail.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 « low » or » high » 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 « high ».
>
> Best regrads: Otared K.
> % begin fabrice-inmargin.tex
> \setuplayout
> [width=13cm,
> rightmargin=5cm]
>
> \setupbodyfont[pagella,11pt]
>
> \definefloat
> [recipe]
> [figure]
>
> \setupfloat
> [recipe]
> [default={rightmargin,none,high}]
>
> \setupframed
> [frame=on,
> width=\rightmarginwidth,
> align=justify,
> offset=2pt,
> location=low,
> rulethickness=1pt,
> framecolor=darkred,
> corner=00]
>
> \showgrid
> \showframe
>
> \starttext
>
> A\\ B \\ C
> \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}}
>
> \input ward.tex
>
> \setupfloat
> [recipe]
> [default={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=13cm,
> > rightmargin=5cm]
> >
> >
> > \setupbodyfont[pagella,11pt]
> >
> > \definefloat
> > [recipe]
> > [figure]
> >
> > \setupfloat
> > [recipe]
> > [default={rightmargin,none}]
> >
> > \setupframed
> > [frame=on,
> > width=\rightmarginwidth,
> > align=justify,
> > offset=2pt,
> > location=low,
> > rulethickness=1pt,
> > framecolor=darkred,
> > corner=00]
> >
> > \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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-07-17 8:46 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 11:17 Fabrice Couvreur
2016-07-15 11:26 ` Wolfgang Schuster
2016-07-15 14:19 ` Fabrice Couvreur
2016-07-15 16:51 ` Otared Kavian
2016-07-15 22:44 ` Fabrice Couvreur
2016-07-16 9:28 ` Otared Kavian
2016-07-16 21:23 ` Fabrice Couvreur
2016-07-17 8:46 ` Otared Kavian [this message]
2016-07-18 8:36 ` Fabrice Couvreur
-- strict thread matches above, loose matches on Subject: below --
2021-09-08 12:26 Marcus Vinicius Mesquita via ntg-context
2021-07-17 6:38 T. Kurt Bond
2021-07-18 16:49 ` Pablo Rodriguez
2021-07-18 17:08 ` Wolfgang Schuster
2021-03-20 22:43 Adam Reviczky
2021-03-13 17:08 Jeroen
2021-03-13 17:16 ` Jano Kula
2020-06-18 6:33 Malte Frank Gerdes
2020-06-17 11:31 Malte Frank Gerdes
2020-06-17 13:46 ` Taco Hoekwater
2020-06-17 16:50 ` Hans Hagen
2020-04-19 4:53 Jairo A. del Rio
2019-07-23 14:16 Denis Maier
2019-05-18 6:13 Dmitry Starostin
2019-04-04 19:30 Dmitry Starostin
2019-04-04 22:37 ` Hans Hagen
2019-03-22 15:22 Dmitry Starostin
2019-03-22 11:34 dstarostin
2019-03-22 15:14 ` Alan Braslau
2019-01-04 0:39 Lars
2019-01-04 18:40 ` Hans Hagen
2014-10-13 16:21 Fabrice Couvreur
2014-01-28 21:54 DesdeChaves
2013-10-11 7:50 Xan
2013-03-20 2:22 non-null
2013-03-20 8:43 ` Wolfgang Schuster
2013-03-20 11:35 ` Sietse Brouwer
2013-03-20 12:09 ` Marcin Borkowski
2013-03-20 14:37 ` Sietse Brouwer
2013-01-24 0:59 Alfredo Catalina
2013-01-24 7:45 ` Taco hoekwater
2012-12-03 9:34 Peter Fiets
2012-12-03 9:38 ` Taco Hoekwater
2012-03-18 15:38 Alan Bowen
2011-09-10 13:35 Honza Hejzl
2011-03-27 11:12 David Abdurachmanov
2011-03-21 18:03 David Abdurachmanov
2011-03-02 3:40 Tom
2010-04-19 0:11 Tom
2010-02-22 14:25 Roger Mason
2008-04-24 13:10 richard.stephens
2008-03-25 18:27 Horacio Suarez
2008-03-25 19:32 ` Peter Rolf
2008-03-26 7:14 ` Wolfgang Schuster
2008-03-26 12:15 ` Horacio Suarez
2007-01-28 0:16 박내엽(NY Park)
2007-01-29 14:23 ` Mojca Miklavec
2005-11-18 10:44 Hans van der Meer
2005-03-14 4:42 wei jm
2004-07-24 15:28 Matt Gushee
2004-03-09 13:47 Adam Tee
2004-02-25 15:40 Mike Aizatsky
2004-02-05 6:15 Vit Zyka
2004-02-08 11:46 ` Hans Hagen
2004-02-01 4:43 Vit Zyka
2004-02-02 11:50 ` Giuseppe Bilotta
2004-02-03 21:49 ` Vit Zyka
2004-01-21 8:54 hl590we
2004-01-25 5:06 ` Nigel King
2003-12-09 17:28 David Arnold
2003-12-01 19:11 Severin Obertuefer
2003-09-22 19:26 Thomas A.Schmitz
2003-09-21 19:24 Severin Obertuefer
2003-09-22 7:45 ` Jens-Uwe Morawski
2003-09-20 21:28 Jean-Pierre Le Narzul
2003-09-19 12:37 Steffen Wolfrum
2003-06-16 8:31 Tim t Hart
2003-03-14 1:06 Coydell Rivers
2003-03-14 8:15 ` Hans Hagen
2003-03-15 3:44 ` Coydell Rivers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B4448D5-7BA7-4065-AB4A-337D36374E25@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).