ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
Subject: Re: treat framed and externalfigure as characters
Date: Tue, 9 May 2006 22:19:20 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0605092156370.18271@gaston.pm> (raw)
In-Reply-To: <4460EBE1.1050104@elvenkind.com>

On Tue, 9 May 2006, Taco Hoekwater wrote:

> Peter Münster wrote:
> > Hello Taco and Hans,
> > 
> > in http://context.literatesolutions.com/collector/89
> > you write
> >    "Both Hans and me have documents that depend on \framed staying in
> >     vertical mode."
> > 
> > Could you give me an example please?
> 
> For instance in a recipe booklet, where one of the macros
> goes like this:
> 
>    \def\startrecipe[#1]%
>      {\getparameters[Recipe]
>         [Title=,Summary=,Image=none,#1]% ..
>       \framed{\tfd \RecipeTitle}%
>       \externalfigure[\RecipeImage]%
>       {\bf\RecipeSummary}%
>       \blank }
> 
> I am not saying that that is the best way to write macros (and I 
> certainly do not do it like that anymore) but changing the behaviour
> would break quite a lot of my existing documents, including some
> I have been payed for to do.

Hello Taco,
I understand and accept your arguments. Even for me, it's no more problem
to add here and there a \dontleavehmode, since I know it now. But for a
beginner and a user without ambition to become a ConTeXt expert, the actual
behaviour is annoying. He just sees a line break, where he does not expect
it. There is a fundamental difference between
                     bla \framed{bla} bla
and
                     \framed{bla} bla bla
that is not understandable.

It's much more straightforward and clear to add a \par (and perhaps
\noindentation) if you really want this line break (for example in your
macro \startrecipe).

> Maybe Hans is willing to add a global switch that you can set at
> the top of your document(s).

Perhaps one day, I would like to convert some of my colleagues from M$-Word
to ConTeXt, but if I have to teach them about things like \dontleavehmode
there is no need for further efforts. So, such a switch would be very
welcome (I would put it into cont-sys.tex)!

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

  reply	other threads:[~2006-05-09 20:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09 16:11 Peter Münster
2006-05-09 19:22 ` Taco Hoekwater
2006-05-09 20:19   ` Peter Münster [this message]
2006-05-09 21:07     ` Hans Hagen
2006-05-10 15:37       ` Peter Münster
2006-05-10 18:35         ` Hans Hagen
2006-05-09 20:53   ` Hans Hagen

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=Pine.LNX.4.58.0605092156370.18271@gaston.pm \
    --to=pmlists@free.fr \
    --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).