ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt, Charts, and transparency
@ 2006-07-12  0:40 Idris Samawi Hamid
  2006-07-12  8:56 ` Taco Hoekwater
  2006-07-12 18:11 ` Idris Samawi Hamid
  0 siblings, 2 replies; 19+ messages in thread
From: Idris Samawi Hamid @ 2006-07-12  0:40 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2513 bytes --]

Dear fellow gangsters,

2 questions:

QUESTION 1) Does ConTeXt have a graphical charts module, a la flowcharts  
module? If not, are there some examples of graphical charts done in  
ConTeXt anywhere? Please see the attached png for what I have in mind.

I did find a module m-steps, but the enclosed example crashes, so I'm not  
sure if this is what I'm looking for...

=============================
% output=pdf interface=en

\usemodule[m-steps]

% A simple paragraph-flow test:

\starttext

\startbuffer
\startSTEPchart
\cells {A}     {B}
\cells {one}   {five}  \texts{$+2$}{$-2$}
\cells {two}   {four}  \texts{$+3$}{$-3$}
\cells {three} {three} \texts{$+4$}{$-4$}
\cells {four}  {two}   \texts{$+5$}{$-5$}
\cells {five}  {one}
\stopSTEPchart
\stopbuffer

\getbuffer

\startnarrower \getbuffer \stopnarrower

\placefigure[left]{}{} \getbuffer

\stoptext
=============================

log file:

=============================
(chart-test-mpgraph.mp  
(c:\ConTeXt\tex\texmf-local/metapost/context/base/mp-step
.mp)
>> (0.5,0.5,0.5)
>> 2.5
! Not implemented: (color)scaled(known numeric).
<to be read again>
                    ;
pen_size->...epath(top.origin--bot.origin)(TEXT2);
                                                   (ypart.urcorner.p-ypart.lr...
set_ahlength->...:=(ahfactor*pen_size(_op_(TEXT0))
                                                   );
arrowheadonpath->...;set_ahlength(scaled.ahfactor)
                                                   ;arrowhead(EXPR2)if(EXPR3)...
drawline->...R2)=1:draw.arrowheadonpath((EXPR3),1)
                                                   ;elseif(EXPR2)=2:draw.arro...
image->...ture;currentpicture:=nullpicture;(TEXT2)
                                                   ;currentpicture.endgroup
l.145 ...e(2,2), 1.79993pt, (scaledgray(.5,1)) ) )
                                                   ; lines[b][2][2] :=  
image(...
?
=============================

QUESTION 2) Not really a direct context question but is needed for a  
context document: how can I convert the attached pdf to a transparent  
background without loosing the image (bitmap in origin). ImageMagick does  
not work well at all. I need it in a document with a colored background.

Thnx in advance

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

[-- Attachment #2: cash-flow.PNG --]
[-- Type: image/png, Size: 5195 bytes --]

[-- Attachment #3: vowel-print.pdf --]
[-- Type: application/pdf, Size: 7004 bytes --]

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-07-19 20:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-12  0:40 ConTeXt, Charts, and transparency Idris Samawi Hamid
2006-07-12  8:56 ` Taco Hoekwater
2006-07-12 16:08   ` Idris Samawi Hamid
2006-07-12 18:11 ` Idris Samawi Hamid
2006-07-13  6:35   ` Taco Hoekwater
2006-07-14 15:34     ` Hans Hagen
     [not found]       ` <op.tcori6bunx1yh1@walayah-main>
2006-07-14 17:05         ` Hans Hagen
2006-07-14 15:33   ` Hans Hagen
2006-07-14 15:53     ` Idris Samawi Hamid
2006-07-14 17:06       ` Hans Hagen
2006-07-15 22:48         ` Adam Lindsay
2006-07-18 17:30           ` Aditya Mahajan
2006-07-18 18:14             ` Idris Samawi Hamid
2006-07-18 18:44               ` Aditya Mahajan
2006-07-18 18:55             ` Aditya Mahajan
2006-07-19  8:07               ` Johan Sandblom
2006-07-19 14:58                 ` Idris Samawi Hamid
2006-07-19 20:33                   ` Mojca Miklavec
2006-07-19 14:55               ` Idris Samawi Hamid

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