ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Xan <dxpublica@telefonica.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Flowchart module--> height proportional to text
Date: Thu, 18 Feb 2010 21:38:40 +0100	[thread overview]
Message-ID: <4B7DA550.8030307@telefonica.net> (raw)

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

Hi,

I use flowchart module for doing a simple chart (see attach files) but 
the text is over the node ("Fonts"). Is there anyway for doing node 
ocupies all text?

And is there any way for align the itemize within to left?

Thanks in advance,
Xan,

PS; I use MKII. And please, CCme.


\section{Tectònica de plaques}

\subsection{Com es formen els relleus?}

\setupFLOWcharts[nx=2,ny=1,width=.4\textwidth]

\startFLOWchart[fixistes]
\startFLOWcell
  \name {Fonts}
  \location {1,1}
  \text {{\bf Fonts}

\startitemize[1]
\item Algunes teories es basaven en relats bíblics.  Atribuïen al diluvi 
universal la causa d'alguns relleus i la presència de fòssils marins a 
les muntanyes.
\item Altres suposaven que la Terra s'ha anat arrugat progressivament en 
refredar-se i que els relleus són arrugues provocades per l'escorça en 
contracció.
\stopitemize
}
  \connection [rl] {fixistes}
  \shape{loop}
\stopFLOWcell
\startFLOWcell
  \name {fixistes}
  \location{2,1}
  \text {Teories fixistes: Els continents i els oceans han ocupat les 
mateixes posicions des de l'origen de la Terra.}
\stopFLOWcell
\stopFLOWchart



\defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText][frame=off,background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame {\stopFunnyText }
\def\FrameTitle#1%
  {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{} % initialize the text variable

\startuseMPgraphic{FunnyFrame}
  picture p ; numeric o ; path a, b ; pair c ;
  p := textext.rt(\MPstring{FunnyFrame}) ;
  o := BodyFontSize ;
  a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
  p := p shifted (2o,OverlayHeight-ypart center p) ;
  pickup pencircle scaled OverlayLineWidth ;
  b := a superellipsed .95 ;
  fill b withcolor OverlayColor ;
  draw b withcolor OverlayLineColor ;
  b := (boundingbox p) superellipsed .95 ;
  fill b withcolor OverlayColor ;
  draw b withcolor OverlayLineColor ;
  draw p withcolor black ;
  setbounds currentpicture to a ;
\stopuseMPgraphic

\setupframedtexts
  [FunnyText]
  [backgroundcolor=lightgray,
   framecolor=darkred,
   rulethickness=2pt,
   offset=\bodyfontsize,
   before={\blank[big,medium]},
   after={\blank[big]},
   width=\textwidth]



\FrameTitle{Teories fixistes}
\StartFrame
Al llarg del segle XIX i el començament del XX, es crearen diverses 
teories que intentaven explicar l'origen de les serrelades i el 
plegament dels estrats, que no podem explicar fàcilment.

Totes aquestes teories tenen com a {\bf principi} que els continents i 
els oceans han ocupat les {\em mateixes posicions} des de l'origen de la 
Terra fins ara.
\StopFrame

\FLOWchart[fixistes]




[-- Attachment #2: sortida pdf --]
[-- Type: application/pdf, Size: 36625 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

                 reply	other threads:[~2010-02-18 20:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7DA550.8030307@telefonica.net \
    --to=dxpublica@telefonica.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).