* \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
* Re: \defineframedtext take precedence over \defineframed and add "extra padding"
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
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-01-13 19:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy <elspethmcgullicuddy@gmail.com>:
> 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.
\usemodule[annotation]
\defineannotation
[blueframed]
[alternative=command,
command=\BlueFramedCommand]
\define[2]\BlueFramedCommand
{\BlueFramed{#2}}
\defineframed
[BlueFramed]
[width=local,
frame=off,
rulethickness=2mm,
backgroundoffset=1mm,
align=yes,
background=color,
backgroundcolor=lightblue,
corner=round,
radius=1.5mm]
\setupcolor[x11]
\starttext
\blueframed{\input{knuth}}
\startblueframed
\input{knuth}
\stopblueframed
\stoptext
Wolfgang
___________________________________________________________________________________
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
* Re: \defineframedtext take precedence over \defineframed and add "extra padding"
2014-01-13 19:39 ` Wolfgang Schuster
@ 2014-01-13 20:12 ` Elspeth McGullicuddy
0 siblings, 0 replies; 3+ messages in thread
From: Elspeth McGullicuddy @ 2014-01-13 20:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jan 13, 2014 at 8:39 PM, Wolfgang Schuster
<schuster.wolfgang@gmail.com> wrote:
>
> Am 13.01.2014 um 19:55 schrieb Elspeth McGullicuddy <elspethmcgullicuddy@gmail.com>:
>
>> 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.
>
> \usemodule[annotation]
>
> \defineannotation
> [blueframed]
> [alternative=command,
> command=\BlueFramedCommand]
>
> \define[2]\BlueFramedCommand
> {\BlueFramed{#2}}
>
> \defineframed
> [BlueFramed]
> [width=local,
> frame=off,
> rulethickness=2mm,
> backgroundoffset=1mm,
> align=yes,
> background=color,
> backgroundcolor=lightblue,
> corner=round,
> radius=1.5mm]
>
> \setupcolor[x11]
>
> \starttext
>
> \blueframed{\input{knuth}}
>
> \startblueframed
> \input{knuth}
> \stopblueframed
>
> \stoptext
Thanks, it works.
Chris
>
> Wolfgang
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
^ 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).