ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupframed and \externalfigure influence each other
@ 2001-06-09 16:40 Berend de Boer
  2001-06-10 20:18 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Berend de Boer @ 2001-06-09 16:40 UTC (permalink / raw)


Hello Hans,

It seems that \setupframed incluences \externalfigure.

For example

\setupframed
        [frame=off,
         bottomframe=on]

\useexternalfigure
        [test]  
        [test.png]

\starttext

\test

\stoptext

gives an underlined figure. Certainly unexpected, although I can
explain it. I think \setupframed should only influence \framed.

Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \setupframed and \externalfigure influence each other
  2001-06-09 16:40 \setupframed and \externalfigure influence each other Berend de Boer
@ 2001-06-10 20:18 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-06-10 20:18 UTC (permalink / raw)
  Cc: ntg-context

At 06:40 PM 6/9/01 +0200, Berend de Boer wrote:
>Hello Hans,
>
>It seems that \setupframed incluences \externalfigure.
>
>For example
>
>\setupframed
>        [frame=off,
>         bottomframe=on]
>
>\useexternalfigure
>        [test]  
>        [test.png]
>
>\starttext
>
>\test
>
>\stoptext
>
>gives an underlined figure. Certainly unexpected, although I can
>explain it. I think \setupframed should only influence \framed.

many commands use the low level \framed macro, but normally using their own
namespace, but \externalfigure *was* an exception. I changed that when
writing the metafun manual where this problem showed up. So, newer versions
suffer less from this dependency. Even better, since there can be nested
\externalfigure's [don't even start thinking about why, since it took me
days to uncover and untangle that mess], from now on \externalfigure has a
couple of more framed/size related features [reset=yes|no] being one of them. 
However, for normal usage, you may forget those. 

So, if things are right, the beta (and coming versions) behave more well. 

BTW, \setupframed is typically not a command you will use globally, for
specific situations it's better to use \defineframed to create an instance
to play with. 

Hans 
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-10 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-09 16:40 \setupframed and \externalfigure influence each other Berend de Boer
2001-06-10 20:18 ` Hans Hagen

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).