ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \defineframedtext take precedence over \defineframed and add "extra padding"
@ 2014-01-13 18:55 Elspeth McGullicuddy
  2014-01-13 19:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Elspeth McGullicuddy @ 2014-01-13 18:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

In the following example \defineframedtext take precedence over
\defineframed, and also I don't know how I can get rid of the "extra
padding" (looks like a good \baselineskip before the text).
(What I want is the first output, but with the readability of \startXY \stopXY)

As for the "take precedence", I can change the name; But for the extra
padding I don't know how to remove it.
I could add a \vskip-\baselineskip at the beginning, but there is
probably a better solution.

(By the way, the construction \blueframed{\startformula
hello\stopformula \input knuth} behave badly.)


%%%%%%%%%%%%%%%%%
\starttext

\setupcolor[x11]

\defineframed [blueframed]
              [width=local,frame=off,rulethickness=2mm,backgroundoffset=1mm,%
                align=yes,background=color,backgroundcolor=lightblue,%
                corner=round,radius=1.5mm]

\blueframed{\input{knuth}}

\defineframedtext [blueframed]
              [width=local,frame=on,%rulethickness=2mm,backgroundoffset=1mm,%
                margin=no,
                align=yes,background=color,backgroundcolor=lightblue,%
                corner=round,radius=1.5mm]

\blueframed{\input{knuth}}

\startblueframed
  \input{knuth}
\stopblueframed

\stoptext
%%%%%%%%%%%%%


Regards,
Chris
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2014-01-13 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 18:55 \defineframedtext take precedence over \defineframed and add "extra padding" Elspeth McGullicuddy
2014-01-13 19:39 ` Wolfgang Schuster
2014-01-13 20:12   ` Elspeth McGullicuddy

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