Subject: mailing-list for TeXmacs Users
List archive
From : Joris van der Hoeven <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] texmacs databases ?
- Date: Tue, 10 Jul 2012 13:24:12 +0200
Hi Julien,
I am not sure to understand exactly what you want,
but I added an extra facility for removing or keeping
folded or unfolded structures. I assume that you enabled
the presentation tool with all actions on foldable markup.
Assuming that for each exercise you use a fold/unfold or
a summarize/detailed, you may select the exercises that
you want to enable in a master document, e.g. by unfolding them,
and then simply do "Dynamic -> Filter -> Remove folded".
This will remove all folded exercises from your document.
Of course, this feature may be combined with the expansion of
included exercises that you already use. It should also
work on nested folds.
The new functionality is on the SVN. If you want something else
or more, then I suggest to take a look at the 'dynamic-filter-buffer'
function in 'fold-edit.scm'. It is quite easy to write Scheme routines
that perform actions on a document, since TeXmacs documents are
naturally structured. In any case, this technique is probably
much easier than using external scripts.
Yet, I am not completely convinced that this way of doing things
is really the most natural. If we had a large common database with
exercises, then I would rather expect a simple query form for
finding certain exercises, and then copy and paste them in
a document to be handed out to students. Why is this not
exactly what you want?
Best wishes, --Joris
On Mon, Jul 09, 2012 at 11:28:09AM +0200, Julien Frontisi wrote:
> Hi, everyone,
> coming back to my old question of creating a database of my math exercises,
> here is my first approach :
> - putting each exercise in a separate file, files being sorted according to
> the chapters and sections of my course.
> - having a shell script called complet.sh (outside of TeXmacs) create a .tm
> file called XX-tout.tm assembling exercises from chapter XX (with XX = 00
> to 15) with include macros. (Script originally written for me by François
> Clément, thanks.)
> Above each exercise in the XX-tout.tm file, there is a hlink to the file of
> the actual exercise so I can modify it.
>
> In each exercise file, there are folds so I can hide parts I want to hide.
> If I want to distribute XX-tout.tm (or part of it) to students, I first
> select exercises I want to keep, expand inclusions (Tools->Project) then
> Fold All (Dynamic menu), then export to pdf. I wish I could script that too.
>
> -> The directory containing my first exercises is zipped there :
> http://my.texmacs.is.free.fr/
> If you want to use the files, you need the included exercices.ts package.
> Of course, the whole thing is in French because I use it in my class, so it
> will be I'm afraid quite useless for most.
> To use the script complet.sh, just type sh complet.sh in a terminal window
> after cd-ing to the correct directory.
> It won't do anything because the XX-tout.tm files are already created but
> if you modify or erase them or add exercises, run the script again.
> I'll try to be clearer (but in French) and more extensive in my
> explanations later when I explain it again in the texmacs-edu list.
> See you
> Julien
>
> Le 30 mai 2012 à 05:56, Aleksandr Dobkin a écrit :
>
> > I think there are several approaches.
> >
> > 1) You can put each problem in it's own TeXmacs file and include the ones
> > you want in the master document using Insert > Link > Include... .
> >
> > 2) If you want to define all the problems in the same document you can do
> > so in the preamble. If you put an assign tag in the preamble, e.g.
> > <assign|p1|My Problem Text>, you can include in the main document as <p1>.
> >
> > Numbering you get for free by inserting Question environments, for
> > example, using Insert > Enunciation > Question.
> >
> > Alex
> >
> > On Tue, May 29, 2012 at 1:02 PM, Julien Frontisi <address@hidden> wrote:
> > Hi,
> > does anyone know if there is a simple way to create exercise databases
> > with texmacs with the possibility
> > to select and extract some exercises out of the lot and then
> > automatically create a document with the chosen exercises ?
> > Hope that's clear.
> > More generally, select some items out of a collection and create a new
> > document listing the selected items. (Besides manually copy/pasting each,
> > of course...)
> > (Re-)numbering of the items would be great.
> > Thanks
> > Julien
> > ps : sorry for double-posting this on the texmacs-edu list and here, I'm
> > not sure if that one is working yet (no archive available).
> >
>
- Re: [TeXmacs] texmacs databases ?, Joris van der Hoeven, 07/01/2012
- <Possible follow-up(s)>
- Re: [TeXmacs] texmacs databases ?, Julien Frontisi, 07/09/2012
- Re: [TeXmacs] texmacs databases ?, Julien Frontisi, 07/09/2012
- Re: [TeXmacs] texmacs databases ?, Joris van der Hoeven, 07/10/2012
- Re: [TeXmacs] texmacs databases ?, Sam Liddicott, 07/10/2012
- Re: [TeXmacs] texmacs databases ?, Julien Frontisi, 07/10/2012
- Re: [TeXmacs] texmacs databases ?, Sam Liddicott, 07/10/2012
Archive powered by MHonArc 2.6.19.