How to get rounded corners and a thicker line with \startframedtext
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
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
On Fri, Mar 18, 2011 at 11:52 PM, Aditya Mahajan
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
2011/3/18 luigi scarso
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
On Sat, Mar 19, 2011 at 12:24 AM, Cecil Westerhof
2011/3/18 luigi scarso
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
2011/3/18 Aditya Mahajan
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
participants (3)
-
Aditya Mahajan
-
Cecil Westerhof
-
luigi scarso