From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1500 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: itemize + fill-in lines, (fancy and normal) lines, statistics output object Date: Fri, 07 Jan 2000 13:57:06 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000107135706.007c5100@pop.wxs.nl> References: <3874DBE8.572DD24D@gmx.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392320 762 80.91.224.250 (23 Oct 2002 16:58:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:58:40 +0000 (UTC) Cc: NTG-ConTeXt Original-To: Tobias Burnus In-Reply-To: <3874DBE8.572DD24D@gmx.de> Xref: main.gmane.org gmane.comp.tex.context:1500 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1500 >Second: I know there is somewhere a \command to draw lines (in the hight of the >base line) with a certain length. {as substitution for \MinDauer} take a look in core-rul.tex >Is it possible to created something like a ``Englische Line'' (sorry I don't >know the English term); it is a line, which is thicker in the middle than on the >edges: > > --------------- >------------========---------------========------------ > --------------- I suppose you're joking? So, let's make it into a small lesson on MP integration. Pretty efficient btw, if you use pdftex. % interface=en output=pdftex \def\EnglishHRule% {\setlocalhsize \startreusableMPgraphic{EnglishLine:\the\localhsize} height = \the\linewidth ; x1 = 0 ; x3 = \the\localhsize ; x2 = x4 = .5x3 ; y1 = y3 = 0 ; y2 = -y4 = 2.5height ; pickup pencircle scaled height ; fill z1..z2..z3 & z3..z4..z1 & cycle ; \stopreusableMPgraphic \noindent\reuseMPgraphic{EnglishLine:\the\localhsize}} \def\EnglishRule% {\startlinecorrection \EnglishHRule \stoplinecorrection} \starttext This kind of fancy stuff is not that hard to do in \CONTEXT, given that you know a bit about \METAPOST\ support. \EnglishRule Why is this called an english line? \startnarrower \EnglishRule Is it because they cannot draw a straight one? \par \EnglishRule \stopnarrower Then, how do germans draw a line? \EnglishRule \stoptext Anyhow, it makes a nice example for the manual. I can package such things in a mp archive file. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------