mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] texmacs databases ?


Chronological Thread 
  • From: Julien Frontisi <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] texmacs databases ?
  • Date: Mon, 9 Jul 2012 11:28:09 +0200

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





Archive powered by MHonArc 2.6.19.

Top of page