ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: treat framed and externalfigure as characters
Date: Tue, 09 May 2006 21:22:09 +0200	[thread overview]
Message-ID: <4460EBE1.1050104@elvenkind.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0605091808540.9948@gaston.pm>

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.

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

For Hans: Peter would like an implicit \dontleavehmode added to
\framed and \externalfigure, so they behave more like characters
(not like \hboxes).

Cheers, Taco

  reply	other threads:[~2006-05-09 19:22 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 [this message]
2006-05-09 20:19   ` Peter Münster
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=4460EBE1.1050104@elvenkind.com \
    --to=taco@elvenkind.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).