ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ntg-context Digest, Vol 16, Issue 60
       [not found] <20051029100003.D963912788@ronja.ntg.nl>
@ 2005-11-13 23:35 ` olivier Turlier
  0 siblings, 0 replies; only message in thread
From: olivier Turlier @ 2005-11-13 23:35 UTC (permalink / raw)


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

>    1. Re: learning path (Mojca Miklavec)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 29 Oct 2005 00:31:33 +0200
> From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
> Subject: Re: [NTG-context] learning path
> To: ntg <ntg-context@ntg.nl>
> Message-ID: <6faad9f00510281531u4c9884ees@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> olivier Turlier wrote:
> 
>>>>Hi everybody,
>>>>
>>>>I wish to set up kind of a "learning path" (= "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={ProgressBar A}]
> 
> \startuseMPgraphic{ProgressBarA}
> barW = 5cm;
> barH = .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 := 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.

Hi Mojca,

Thanks a lot for your mp code, I got what i want but rightnow, I don't 
know how to use it exactly, maybe as follows attached (try to display a 
general progression thru advancement of each courses, and show on the 
same "pane" (inner margin)), list of each chapters.

I'll try to cook a minimal but working example, as I got -- in a messy 
way -- almost everything for bring this new layout to life.



-- 
Olivier TURLIER

[-- Attachment #2: newlook-cours.png --]
[-- Type: image/png, Size: 6185 bytes --]

[-- Attachment #3: 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] only message in thread

only message in thread, other threads:[~2005-11-13 23:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20051029100003.D963912788@ronja.ntg.nl>
2005-11-13 23:35 ` ntg-context Digest, Vol 16, Issue 60 olivier Turlier

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