From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23156 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: learning path Date: Sat, 29 Oct 2005 00:31:33 +0200 Message-ID: <6faad9f00510281531u4c9884ees@mail.gmail.com> References: <43541065.3030500@free.fr> <6faad9f00510180324s4f4426b7t@mail.gmail.com> <4359428E.601@free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1130538798 16970 80.91.229.2 (28 Oct 2005 22:33:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2005 22:33:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 29 00:33:17 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVclI-0004rY-4Q for gctc-ntg-context-518@m.gmane.org; Sat, 29 Oct 2005 00:31:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A54131277E; Sat, 29 Oct 2005 00:31:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17159-04; Sat, 29 Oct 2005 00:31:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E2D4012793; Sat, 29 Oct 2005 00:31:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 12FD812793 for ; Sat, 29 Oct 2005 00:31:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17223-01 for ; Sat, 29 Oct 2005 00:31:33 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by ronja.ntg.nl (Postfix) with ESMTP id D4A0C1277E for ; Sat, 29 Oct 2005 00:31:33 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id x4so173294nfb for ; Fri, 28 Oct 2005 15:31:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LOjzWhqwVUQ++tOatIt6Hrw+u28xi/uPJe2ibYMrZpTWTdPn0EYCH3Z/KTVKpM8bGhnoF8rzHDSvF5ilirlBP0nu4uE9CiZmB/5PXKvZcVn0wmrOWTR0Sl7n7pAvyfSrW6zGh2zVFGTS3RDRHIeYR/cD6zsrcLUAoJWTLTC+KN0= Original-Received: by 10.48.80.18 with SMTP id d18mr272393nfb; Fri, 28 Oct 2005 15:31:33 -0700 (PDT) Original-Received: by 10.48.1.14 with HTTP; Fri, 28 Oct 2005 15:31:33 -0700 (PDT) Original-To: ntg In-Reply-To: <4359428E.601@free.fr> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:23156 Archived-At: olivier Turlier wrote: > > > >>Hi everybody, > >> > >>I wish to set up kind of a "learning path" (=3D "pedagogic" progression > >>bar, like in http://www.dokeos.com/scorm_compliant_course_content.php) /.../ > Sorry for not being clear enough. > > "learning path" is an acronym I've found while using Dokeos elearning > platform, as an equivalent to a course i guess. For creating a > course/learning path you assemble differents documents in a l.p.. When > the alumni/trainee reads this course, he will be able what he have to > read next after the fisrt doc, and so on. I've made a graphic capture of > the webpage for showing what elements are making a learning path in the > Dokeos vision : list of doc allready readen, docs to read, progression > bar, plus the breadcrumb trail; for lists of already learnt documents: you can make a list of chapters/sections/subsections somewhere on the page if you have enough place. If you would like to get the chapter/section/subsection name, you can get them with something like \getmarking[chapter] $>$ \getmarking[section] $>$ \getmarking[subsection] Perhaps some "if"s are missing to check if a section/subsection is defined, but someone else has to help you with it. > i don't want to put so much stuff in the pdfs made wit Context(apart > putting an A4 text on an A3 page!) because i keep a printable A4 format > for my courses, even i there interaction in it, for screen usage. I'm not sure if I understood it properly, but if you need two different versions of your documents with the same content, but different layout, you can use modes (http://wiki.contextgarden.net/Modes). > So i wish to have only vertical progression bars + percentage in the > inner margin. s-pre-01 "original" style show a bottom interaction bar > filled with pagenumbers drawn as little rectangles. Maybe it's possible > to draw a continuous bar with metapost, but for percentage ? > > Ideally, i wish to have 2 progression bars : one for project progression > and second for product prog. How would you calculate the project progression? The example below calculates the percentage out of the number of pages in the current document. Here's an example how to make an extremely simple and ugly progression bar at the bottom of the page. Take a look into the .mp file produced. You'll find many other variables thay you may use to position your progression bar properly. \defineoverlay [ProgressBar A] [\useMPgraphic{ProgressBarA}] \setupbackgrounds [text] [background=3D{ProgressBar A}] \startuseMPgraphic{ProgressBarA} barW =3D 5cm; barH =3D .7cm; StartPage; fill unitsquare xyscaled(barW*(PageNumber/NOfPages),barH) withcolor .625red; draw unitsquare xyscaled(barW,barH); label.rt(textext("$" & decimal(round(100*PageNumber/NOfPages)) & "\,\%$"), (barW,.5barH)); currentpicture :=3D currentpicture shifted (LeftMarginWidth+LeftMarginDistance,2cm); StopPage; \stopuseMPgraphic \starttext first page\page second page\page third page \stoptext I would suggest you to get familiar with metapost/metafun ("learning metapost by doing", "the metapost manual", "metafun manual", ...) if you aren't yet. It's a simple and great programming/drawing language and you can do amazing things with it. Mojca PS: just a note. Trying to execute the code written above under MikTeX (on the "old" ;) ConTeXt version, 2005.08.31) leads to distrous results and nothing worked as expected. It claims \loadfontfileoncetrue to be undefined command, it complains about file endings (it doesn't create .mpx files, so the label(textext ...) doesn't work) ... and so on. It may be that something is wrongly configured here, but I'm glad that I'm able to use the minimal ConTeXt distr. as an alternative when something fails under MikTeX.