I have the following test file: -- \setupoutput[pdftex]\setupcolor[rgb]\starttext \items[symbol=none,location=top]{{\inframed[frame=on,corner=round,radius=3mm ,offset=1mm]{demand-pull inflation}},{\inframed[frame=on,corner=round,radius=3mm,offset=1mm]{in comparison}},capital-intensive} \items[symbol=none,location=top]{fixed assets,entrepreneurs,as a result,implementation} \items[symbol=none,location=top]{situation,monetary,system,arbitrage,stable} \stoptext -- The idea is to have certain of the items in the lists highlighted with a frame. Although I don't get an error in the log, the output I get is broken. I have attached the tiny pdf file. Can this be made to work somehow? Alternatively is it possible to get "horizontal" lists any other way? Thanks! Duncan dh@capdm.com
Hi Duncan,
I have the following test file:
-- \setupoutput[pdftex]\setupcolor[rgb]\starttext
\items[symbol=none,location=top]{{\inframed[frame=on,corner=round,radius=3mm
,offset=1mm]{demand-pull inflation}},{\inframed[frame=on,corner=round,radius=3mm,offset=1mm]{in comparison}},capital-intensive}
\items[symbol=none,location=top]{fixed assets,entrepreneurs,as a result,implementation}
\items[symbol=none,location=top]{situation,monetary,system,arbitrage,stable}
\stoptext --
I have tried your code. If you setup framed then it works. Please refer to the attached inframed.tex Willi
Hi Willi, thanks very much. My problem is that I really need to set up multiple types of frames - especially the two defined ones - the "circled" style shown and a "highlighted" style which puts a background with no frame and normal corners - and be able to call them anywhere in the document. If I \setupframed with just the definition of one of them then all my \inframed will come out one way. Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands? Thanks again! Duncan dh@capdm.com
\items[symbol=none,location=top]{{\inframed[frame=on,corner=round, radius=3mm
,offset=1mm]{demand-pull inflation}},{\inframed[frame=on,corner=round,radius=3mm,offset=1mm]{in comparison}},capital-intensive}
\items[symbol=none,location=top]{fixed assets,entrepreneurs,as a result,implementation}
\items[symbol=none,location=top]{situation,monetary,system,arbitra ge,stable}
\stoptext --
I have tried your code. If you setup framed then it works. Please refer to the attached inframed.tex
Willi
Hi Duncan,
Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands?
Yopu can always define your own commands e.g. \define[1]\CircleFramed{% \inframed[linecorrection=on,frame=on,corner=round,radius=3mm,offset=1mm,widt h=fit]{#1}} \define[1]\HighlightFramed{% \inframed[linecorrection=on, frame=on, width=fit, corner=rectangular, background=color, backgroundcolor=green]{#1}} \items[symbol=none,location=top]{% {\CircleFramed {demand-pull inflation}}, {\HighlightFramed {in comparison}},capital-intensive } \items[symbol=none,location=top]{% fixed assets,entrepreneurs,as a result,implementation} \items[symbol=none,location=top]{% situation,monetary,system,arbitrage,stable} So ... Willi
At 16:21 23/07/2003 +0200, you wrote:
Hi Duncan,
Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands?
Yopu can always define your own commands e.g.
\define[1]\CircleFramed{% \inframed[linecorrection=on,frame=on,corner=round,radius=3mm,offset=1mm,widt h=fit]{#1}}
or adaptive: offset=.1ex,radius=.25ex or so 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
At 14:22 23/07/2003 +0100, you wrote:
Hi Willi, thanks very much.
My problem is that I really need to set up multiple types of frames - especially the two defined ones - the "circled" style shown and a "highlighted" style which puts a background with no frame and normal corners - and be able to call them anywhere in the document. If I \setupframed with just the definition of one of them then all my \inframed will come out one way.
Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands?
\starttext \setupcolors[state=start] \startuniqueMPgraphic{circled-x}{circlecolor,alternative} path p ; if \MPvar{alternative} = 1 : p := OverlayBox ; elseif \MPvar{alternative} = 2 : p := fullcircle xyscaled (OverlayWidth,OverlayHeight) ; elseif \MPvar{alternative} = 3 : p := fullcircle xyscaled (OverlayWidth,OverlayHeight) smoothed .25ExHeight ; fi ; draw p withcolor \MPvar{circlecolor} ; \stopuniqueMPgraphic \defineoverlay[circled-x][\uniqueMPgraphic{circled-x}] \defineframed [circleframed] [frame=off, background=circled-x, circled-x:alternative=3, circled-x:circlecolor=red] \circleframed{test} \stoptext 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
At 02:55 18/07/2003 +0100, you wrote:
Alternatively is it possible to get "horizontal" lists any other way?
\startitemize[text] \item test \item test \stopitemize 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (3)
-
Duncan Hothersall
-
Hans Hagen
-
Willi Egger