* How to get rounded corners and a thicker line with \startframedtext
@ 2011-03-18 22:49 Cecil Westerhof
2011-03-18 22:52 ` Aditya Mahajan
0 siblings, 1 reply; 6+ messages in thread
From: Cecil Westerhof @ 2011-03-18 22:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 628 bytes --]
I am still dabbling with ConTeXt. There is a lot to learn, but it is worth
it. ;-}
At the moment I have (when finished I make a macro of it):
\startframedtext[middle]
\startalignment[middle]
{\bf A goal properly set is halfway reached.}
\stopalignment
\blank[small]
\startalignment[flushright]
{\it Abraham Lincoln}
\stopalignment
\stopframedtext
I want to use this to intersperse my document with citations. It is not bad,
but I like to change two things:
- I would like to use rounded corners
- I would like to use a slightly thicker line to draw the box
How could I accomplish this?
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 709 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 6+ messages in thread
* Re: How to get rounded corners and a thicker line with \startframedtext
2011-03-18 22:49 How to get rounded corners and a thicker line with \startframedtext Cecil Westerhof
@ 2011-03-18 22:52 ` Aditya Mahajan
2011-03-18 22:55 ` luigi scarso
2011-03-18 23:05 ` Cecil Westerhof
0 siblings, 2 replies; 6+ messages in thread
From: Aditya Mahajan @ 2011-03-18 22:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 18 Mar 2011, Cecil Westerhof wrote:
> I am still dabbling with ConTeXt. There is a lot to learn, but it is worth
> it. ;-}
>
> At the moment I have (when finished I make a macro of it):
> \startframedtext[middle]
> \startalignment[middle]
> {\bf A goal properly set is halfway reached.}
> \stopalignment
> \blank[small]
> \startalignment[flushright]
> {\it Abraham Lincoln}
> \stopalignment
> \stopframedtext
>
> I want to use this to intersperse my document with citations. It is not bad,
> but I like to change two things:
> - I would like to use rounded corners
\defineframedtext[...][corner=round]
> - I would like to use a slightly thicker line to draw the box
\defineframedtext[....][rulethickness=2bp]
Aditya
___________________________________________________________________________________
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] 6+ messages in thread
* Re: How to get rounded corners and a thicker line with \startframedtext
2011-03-18 22:52 ` Aditya Mahajan
@ 2011-03-18 22:55 ` luigi scarso
2011-03-18 23:24 ` Cecil Westerhof
2011-03-18 23:05 ` Cecil Westerhof
1 sibling, 1 reply; 6+ messages in thread
From: luigi scarso @ 2011-03-18 22:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Mar 18, 2011 at 11:52 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Fri, 18 Mar 2011, Cecil Westerhof wrote:
>
>> I am still dabbling with ConTeXt. There is a lot to learn, but it is worth
>> it. ;-}
>>
>> At the moment I have (when finished I make a macro of it):
>> \startframedtext[middle]
>> \startalignment[middle]
>> {\bf A goal properly set is halfway reached.}
>> \stopalignment
>> \blank[small]
>> \startalignment[flushright]
>> {\it Abraham Lincoln}
>> \stopalignment
>> \stopframedtext
>>
>> I want to use this to intersperse my document with citations. It is not
>> bad,
>> but I like to change two things:
>> - I would like to use rounded corners
>
> \defineframedtext[...][corner=round]
>
>> - I would like to use a slightly thicker line to draw the box
>
> \defineframedtext[....][rulethickness=2bp]
>
> Aditya
also
http://wiki.contextgarden.net/Framed
--
luigi
___________________________________________________________________________________
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] 6+ messages in thread
* Re: How to get rounded corners and a thicker line with \startframedtext
2011-03-18 22:52 ` Aditya Mahajan
2011-03-18 22:55 ` luigi scarso
@ 2011-03-18 23:05 ` Cecil Westerhof
1 sibling, 0 replies; 6+ messages in thread
From: Cecil Westerhof @ 2011-03-18 23:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]
2011/3/18 Aditya Mahajan <adityam@umich.edu>
> but I like to change two things:
>> - I would like to use rounded corners
>>
> I want to use this to intersperse my document with citations. It is not
> bad,
>
> \defineframedtext[...][corner=round]
>
>
> - I would like to use a slightly thicker line to draw the box
>>
>
> \defineframedtext[....][rulethickness=2bp]
>
Perfect. That looks much more slick.
I know have defined:
\define[2]\Citation{
\blank
\startframedtext[middle][align=middle,corner=round,rulethickness=2bp]
{\bf #2}
\blank[small]
\rightaligned{\it #1}
\stopframedtext
\blank
}
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 1214 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 6+ messages in thread
* Re: How to get rounded corners and a thicker line with \startframedtext
2011-03-18 22:55 ` luigi scarso
@ 2011-03-18 23:24 ` Cecil Westerhof
2011-03-18 23:27 ` luigi scarso
0 siblings, 1 reply; 6+ messages in thread
From: Cecil Westerhof @ 2011-03-18 23:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 492 bytes --]
2011/3/18 luigi scarso <luigi.scarso@gmail.com>
> also
> http://wiki.contextgarden.net/Framed
>
A very interesting read. I changed my macro to:
\define[2]\Citation{
\blank
\startframedtext[middle][
align=middle,
background=color,
backgroundcolor=lightgray,
corner=round,
rulethickness=2bp
]
{\bf #2}
\blank[small]
\rightaligned{\it #1}
\stopframedtext
\blank
}
This results in an even more pleasing effect. (In my opinion.)
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 868 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 6+ messages in thread
* Re: How to get rounded corners and a thicker line with \startframedtext
2011-03-18 23:24 ` Cecil Westerhof
@ 2011-03-18 23:27 ` luigi scarso
0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2011-03-18 23:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, Mar 19, 2011 at 12:24 AM, Cecil Westerhof
<cldwesterhof@gmail.com> wrote:
> 2011/3/18 luigi scarso <luigi.scarso@gmail.com>
>>
>> also
>> http://wiki.contextgarden.net/Framed
>
> A very interesting read. I changed my macro to:
> \define[2]\Citation{
> \blank
> \startframedtext[middle][
> align=middle,
> background=color,
> backgroundcolor=lightgray,
> corner=round,
> rulethickness=2bp
> ]
> {\bf #2}
> \blank[small]
> \rightaligned{\it #1}
> \stopframedtext
> \blank
> }
>
> This results in an even more pleasing effect. (In my opinion.)
You can also use metafun, which plays well with mkiv:
http://wiki.contextgarden.net/MetaFun
--
luigi
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2011-03-18 23:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 22:49 How to get rounded corners and a thicker line with \startframedtext Cecil Westerhof
2011-03-18 22:52 ` Aditya Mahajan
2011-03-18 22:55 ` luigi scarso
2011-03-18 23:24 ` Cecil Westerhof
2011-03-18 23:27 ` luigi scarso
2011-03-18 23:05 ` Cecil Westerhof
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).