Hi,
With latest stable minimals version I don't get correct output of the
metapost article (I attach it)
But with the texlive package with ubuntu 8.04 (and only with 8.04; with
10.10 I have the same problem), it works. I think it's a bug
Thanks,
Xan.
PS: Please Ccme
% Choose a font
\setupbodyfont [cmr,11pt]
% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]
% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]
% Page number
\setuppagenumbering [location={footer}]
% Paper size
\setuppapersize [A4]
% Margins
%\setuplayout [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfb}, header=nomarking]
\setuphead[subsection][style={\bfa}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]
% Bibliography options
% BIBTEX
%\usemodule[bib]
%\usemodule[bibltx]
%\setupbibtex[database=funcions,sort=author]
%\setuppublications [alternative=ams,numbering=yes, sorttype=bbl,
criterium=all]%
%\setupheadtext[ca][pubs=Referències]
%\setuppublicationlist[authoretallimit=3]
%\setuppublicationlist[authoretaltext={\it\ et al.}]
%\setuppublicationlist[authoretaldisplay=1]
%Indentation
\setupheads[indentnext=yes]
\setupindenting[yes,small,first]
% Vertical spaces between paragraphs
\setupwhitespace[none]
%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
% Mathematical packets
%\usemodule[newmat]
% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]
% AMSTHM
\defineenumeration
[exercici]
[text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]
% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c]
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm]
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Ãndex like Ãndex de continguts
\setupheadtext [ca] [content=Ãndex]
% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx IES Binissalem. Dpt. Orientació}][{\tfx 3r DIV}]
% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria-bles}
% em = bf italic
\setupbodyfontenvironment[default][em=italic]
% underline
\setupunderbar[alternative=b]
% Virgueries
%% Quadres de text
%% Per usar-ho:
\startframedtext[width=\textwidth,background=QuadreBasic,frame=off]
\startuseMPgraphic{QuadreBasic}
picture p ; numeric w, h, o ;
p := textext.rt(\MPstring{QuadreBasic}) ;
w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ;
p := p shifted (2o,h-ypart center p) ; draw p ;
drawoptions (withpen pencircle scaled 2pt withcolor .625red) ;
draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;
draw boundingbox p ;
draw (0,0) -- (0,-5pt) ;
draw (-5pt,0) -- (0,0);
draw (w, h) -- (w, h+5pt);
draw (w,h) -- (w+5pt,h);
setbounds currentpicture to unitsquare xyscaled(w,h) ;
\stopuseMPgraphic
\defineoverlay[QuadreBasic][\useMPgraphic{QuadreBasic}]
% interface=en output=pdftex
% Regime
\enableregime[utf]
\input capcalera.contex
\setupheadertexts[{\tfx 3r DIV. T4 - MAT}][{\tfx {\bf FULL 1}. \currentdate}]
% Start the text
\starttext
\bigskip
\startframedtext[width=broad, location=middle]
\startalignment[middle]
{\sca Full de problemes d'equacions de 1r grau}
\stopalignment
\stopframedtext
\section{Traducció d'enunciats}
% PÃ gina 132 del manual de de MetaFun
\startuniqueMPgraphic{lions a}
path p ; p := fullsquare
xyscaled (\overlaywidth,\overlayheight) superellipsed .85 ;
pickup pencircle scaled 1pt ;
fill p withcolor .850white ; draw p withcolor .625yellow ;
\stopuniqueMPgraphic
\defineoverlay[lions][\uniqueMPgraphic{lions a}]
\def\processword#1%